mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-07 04:35:58 -10:00
13 lines
282 B
Python
13 lines
282 B
Python
"""Basic Agent example with consolidated params."""
|
|
from praisonaiagents import Agent
|
|
|
|
# Minimal agent with memory
|
|
agent = Agent(
|
|
instructions="You are a helpful assistant.",
|
|
memory=True,
|
|
)
|
|
|
|
if __name__ == "__main__":
|
|
response = agent.chat("Hello!")
|
|
print(response)
|