Files
MervinPraison 0c37498118 feat(managed-agents): add examples for agent management features
Added multiple examples demonstrating the creation and management of agents,
environments, sessions, and custom tools in the managed agents architecture.
This comprehensive set of examples now includes functionalities such as
tool selection, disabling tools, and updating agent configurations, providing
users with clear guidance on utilizing the framework effectively.
2026-04-11 13:20:11 +01:00

19 lines
497 B
Python

from praisonai import Agent, ManagedAgent, ManagedConfig
managed = ManagedAgent(
config=ManagedConfig(
name="Coding Assistant",
model="claude-haiku-4-5",
system="You are a helpful coding assistant. Write clean, well-documented code.",
),
)
agent = Agent(name="coder", backend=managed)
result = agent.start(
"Create a Python script that generates the first 20 Fibonacci numbers and saves them to fibonacci.txt",
stream=True,
)
print("\nAgent finished.")