

























remote agent 实际上agentos 模式提供的一个能力,通过http 协议访问agent(agno 包装了对应的client,使用类似agent)
from agno.os import AgentOS
agent_os = AgentOS(
name="My AgentOS",
agents=[my_agent],
teams=[my_team],
workflows=[my_workflow],
tracing=True
)
app = agent_os.get_app()
if __name__ == "__main__":
agent_os.serve(app="my_os:app", reload=True)
import asyncio
from agno.agent import RemoteAgent
async def main():
# Connect to a remote agent
agent = RemoteAgent(
base_url="http://localhost:7778", # Running on localhost for this example
agent_id="assistant-agent",
)
# Run the agent
response = await agent.arun("What is the capital of France?")
print(response.content)
asyncio.run(main())
agno 的remote agent 并没多少特殊的,实际就是一个类似a2a 的玩法,一个client,但是思路很有意思,而且remote agent 可以和各类agno 的其他组件集成,很不错
https://docs.agno.com/agent-os/remote-execution/remote-agent
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。