0.5.0
What's Changed
- 70 support managed agents with langchain by @daavoo in #76
- 71 support managed agents with llama index by @daavoo in #82
from any_agent import AgentConfig, AgentFramework, AnyAgent
from any_agent.tracing import setup_tracing
framework = AgentFramework("langchain") # or AgentFramework("llama_index")
setup_tracing(framework)
agent = AnyAgent.create(
framework,
AgentConfig(
model_id="gpt-4.1-mini",
instructions="You are the main agent. Use the other available agents to find an answer",
),
managed_agents=[
AgentConfig(
name="search_web_agent",
description="An agent that can search the web",
model_id="gpt-4.1-nano",
tools=["any_agent.tools.search_web"]
),
AgentConfig(
name="visit_webpage_agent",
description="An agent that can visit webpages",
model_id="gpt-4.1-nano",
tools=["any_agent.tools.visit_webpage"]
)
]
)
agent.run("Which Agent Framework is the best??")- feat(tools): Support passing callable. by @daavoo in #81
- Update README.md by @njbrake in #79
- Minor Updates to README. by @daavoo in #84
- tests: Add autouse fixture
disable_rich_console. by @daavoo in #85 - Update tracing.md by @njbrake in #88
Full Changelog: 0.4.0...0.5.0