You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add your model `api_key` - AgentMesh supports `openai`, `claude`, `deepseek`, `qwen`, and others.
65
65
66
-
> The template includes a pre-configured `software_team` with three roles (PM, architect, engineer) that collaborate on
67
-
> software development tasks.
66
+
The template includes two examples for quick testing:
67
+
68
+
-`general_team`: A single general-purpose agent skilled in search, research, and information organization. Recommended to configure with google_search and browser tools.
69
+
-`software_team`: A development team with three roles (product manager, engineer, and tester) that can collaborate on web application development and testing tasks, delivering complete project documentation and code.
70
+
71
+
You can modify the template to customize different models, tools, system prompts, and other configurations for each agent.
68
72
69
73
#### 1.3 Execution
70
74
75
+
You can run tasks directly using command-line arguments, specifying the team with `-t` and your question with `-q`:
76
+
77
+
```bash
78
+
python main.py -t general_team -q "analyze the trends in multi-agent technology"
79
+
python main.py -t software_team -q "develop a simple trial booking page for AgentMesh multi-agent platform"
80
+
```
81
+
82
+
Alternatively, enter interactive mode for multi-turn conversations:
83
+
84
+
```bash
85
+
python main.py -l # List available agent teams
86
+
python main.py -t software_team # Run the 'software_team'
87
+
```
88
+
89
+
### 2. Docker
90
+
91
+
Download the docker-compose configuration file:
92
+
71
93
```bash
72
-
python main.py -l # List available agent teams
73
-
python main.py -t software_team # Run the 'software_team'
@@ -88,23 +126,23 @@ from agentmesh import AgentTeam, Agent, LLMModel
88
126
from agentmesh.tools import*
89
127
90
128
# model
91
-
model = LLMModel(model="gpt-4o", api_key="YOUR_API_KEY")
129
+
model = LLMModel(model="gpt-4.1", api_key="YOUR_API_KEY")
92
130
93
131
# team build and add agents
94
132
team = AgentTeam(name="software_team", description="A software development team", model=model)
95
133
96
134
team.add(Agent(name="PM", description="Responsible for product requirements and documentation",
97
135
system_prompt="You are an experienced product manager who creates clear and comprehensive PRDs"))
98
136
99
-
team.add(Agent(name="Developer", description="Implements code based on PRD and architecture design", model=model,
100
-
system_prompt="You are a proficient developer who writes clean, efficient, and maintainable code. Follow the PRD requirements and architecture guidelines precisely",
137
+
team.add(Agent(name="Developer", description="Implements code based on PRDs", model=model,
138
+
system_prompt="You are a proficient developer who writes clean, efficient, and maintainable code. Follow the PRD requirements precisely.",
101
139
tools=[Calculator(), GoogleSearch()]))
102
140
103
141
# run user task
104
-
team.run(task="Write a Snake client game")
142
+
result =team.run(task="Write a Snake client game")
105
143
```
106
144
107
-
### 三、Web服务运行
145
+
### 4. Web服务运行
108
146
109
147
即将支持
110
148
@@ -122,7 +160,7 @@ team.run(task="Write a Snake client game")
0 commit comments