AWorld:多智能体系统框架
轻松构建、评估和运行通用多智能体助手的框架。
快速入门
安装
确保 Python >= 3.11,使用以下命令安装 AWorld:
pip install aworld
示例代码
创建并运行一个简单的智能体:
from aworld.config.conf import AgentConfig
from aworld.core.agent.base import Agent
from aworld.runner import Runners
if __name__ == '__main__':
agent_config = AgentConfig(
llm_provider="openai",
llm_model_name="gpt-4o"
)
search = Agent(
conf=agent_config,
name="search_agent",
system_prompt="You are a helpful agent.",
mcp_servers=["amap-amap-sse"]
)
Runners.sync_run(input="杭州西湖附近1公里内的酒店", agent=search)
更多示例和功能,请参考 完整文档。