Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
daavoo 
posted an update 7 days ago
Post
1293
New release in https://github.com/mozilla-ai/any-agent 🤖

You can now use "managed_agents" also in langchain and llama_index, in addition to the other frameworks:

from any_agent import AgentConfig, AgentFramework, AnyAgent
from any_agent.tracing import setup_tracing

framework = AgentFramework("langchain")  # also in AgentFramework("llama_index") and the rest of frameworks
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??")

Does it support workflows?

·

Currently, we only support 2 patterns that can be implemented (almost) consistently across frameworks:
single agent and multi-agent in the form of "manager" + "managed agents".

Don't hesitate to open an issue https://github.com/mozilla-ai/any-agent/issues to discuss what other patterns would be useful

In this post