Skip to content

0.5.0

Choose a tag to compare

@daavoo daavoo released this 15 Apr 13:59
· 526 commits to main since this release
dedd5c8

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??")

Full Changelog: 0.4.0...0.5.0