-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathagent.yaml
More file actions
400 lines (369 loc) · 12.5 KB
/
agent.yaml
File metadata and controls
400 lines (369 loc) · 12.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
# agent.yaml - Corrected configuration based on your current setup
server:
host: 0.0.0.0
port: 8000
# Add logging configuration to reduce noise
logging:
level: "info"
quiet_modules:
# Core framework noise
"asyncio": "WARNING"
"uvicorn": "WARNING"
"uvicorn.access": "WARNING"
"fastapi": "WARNING"
"httpx": "ERROR"
# Google ADK noise - Enhanced coverage
"google": "WARNING"
"google.adk": "WARNING"
"google.adk.models": "ERROR"
"google.adk.models.registry": "ERROR"
"google.adk.models.lite_llm": "ERROR"
"google.adk.runners": "WARNING"
"google.adk.sessions": "WARNING"
"google.adk.artifacts": "WARNING"
"google.adk.memory": "WARNING"
"google.adk.agents": "WARNING"
"google.genai": "WARNING"
# LiteLLM noise
"LiteLLM": "ERROR"
"litellm": "ERROR"
"litellm.utils": "ERROR"
"litellm.llms": "ERROR"
# CHUK modules - Reduce initialization verbosity
"chuk_sessions": "WARNING"
"chuk_sessions.session_manager": "WARNING"
"chuk_ai_session_manager": "WARNING"
"chuk_ai_session_manager.session_storage": "WARNING"
"chuk_llm": "WARNING"
"chuk_llm.configuration": "WARNING"
"chuk_llm.configuration.unified_config": "WARNING"
"chuk_llm.api": "WARNING"
"chuk_llm.api.providers": "WARNING"
# A2A internal modules
"a2a_server.transport": "WARNING"
"a2a_server.transport.http": "WARNING"
"a2a_server.session_store_factory": "WARNING"
"a2a_server.tasks.handlers.session_aware_task_handler": "WARNING"
"a2a_server.tasks.handlers.chuk": "WARNING"
"a2a_server.tasks.handlers.chuk.chuk_agent": "INFO"
"a2a_server.tasks.handlers.chuk.chuk_agent_handler": "WARNING"
"a2a_server.tasks.discovery": "WARNING"
handlers:
use_discovery: false
default_handler: chuk_pirate
# 🔧 Pirate Agent - ChukAgent-based with factory function
chuk_pirate:
type: a2a_server.tasks.handlers.chuk.chuk_agent_handler.AgentHandler
agent: a2a_server.sample_agents.chuk_pirate.create_pirate_agent # ✅ Factory function
name: chuk_pirate
# Handler-level session configuration
sandbox_id: "pirate_sessions"
session_sharing: true
shared_sandbox_group: "global_user_sessions"
# Agent-level session configuration (passed to ChukAgent)
enable_sessions: true
infinite_context: true
token_threshold: 4000
max_turns_per_segment: 50
session_ttl_hours: 24
# Model configuration
# provider: "openai"
# model: "gpt-4o-mini"
streaming: true
# Tool configuration
enable_tools: false
debug_tools: false
agent_card:
name: Pirate Agent
description: "Captain Blackbeard's Ghost - legendary pirate with authentic swagger and maritime wisdom"
version: "1.0.0"
documentationUrl: "https://a2a-server.fly.dev/pirate_agent/docs"
provider:
organization: "chrishayuk"
url: "https://chrishayuk.io"
capabilities:
streaming: true
pushNotifications: false
tools: false
sessions: true
# authentication
defaultInputModes:
- "text/plain"
defaultOutputModes:
- "text/plain"
skills:
- id: pirate-wisdom
name: Pirate Wisdom
description: "Authentic pirate advice, sea tales, and maritime knowledge with conversation memory"
tags:
- pirate
- sailing
- adventure
- maritime
- storytelling
- conversational
examples:
- "Tell me a pirate tale"
- "How do I navigate by the stars?"
- "What's the best way to manage a ship's crew?"
- "Share some pirate wisdom about treasure hunting"
- "Teach me a sea shanty"
# 🔧 Chef Agent - ChukAgent-based with factory function
chuk_chef:
type: a2a_server.tasks.handlers.chuk.chuk_agent_handler.AgentHandler
agent: a2a_server.sample_agents.chuk_chef.create_chef_agent # ✅ Factory function
name: chuk_chef
# Handler-level session configuration
sandbox_id: "chef_sessions"
session_sharing: true
shared_sandbox_group: "chef_sessions"
# Agent-level session configuration
enable_sessions: true
infinite_context: true
token_threshold: 4000
max_turns_per_segment: 50
session_ttl_hours: 24
# Model configuration
# provider: "openai"
# model: "gpt-4o-mini"
streaming: true
# Tool configuration
enable_tools: false
debug_tools: false
agent_card:
name: Chuk Chef Agent
description: "Professional chef powered by ChukAgent with full LLM capabilities and conversation memory"
version: "1.0.0"
documentationUrl: "https://a2a-server.fly.dev/chuk_chef/docs"
provider:
organization: "chrishayuk"
url: "https://chrishayuk.io"
capabilities:
streaming: true
pushNotifications: false
tools: false
sessions: true
# authentication
defaultInputModes:
- "text/plain"
defaultOutputModes:
- "text/plain"
skills:
- id: gourmet-recipes
name: Gourmet Recipe Creation
description: "Create detailed, professional recipes with Chef Gourmet's expertise and conversation memory"
tags:
- cooking
- recipes
- gourmet
- chef
- professional
- conversational
examples:
- "Chocolate chip cookie recipe"
- "Italian pasta carbonara"
- "How to make perfect risotto"
- "Vegetarian lasagna recipe"
- "What can I substitute for eggs in baking?"
# 🔧 Perplexity Agent with factory function
perplexity_agent:
type: a2a_server.tasks.handlers.chuk.chuk_agent_handler.AgentHandler
agent: a2a_server.sample_agents.perplexity_agent.create_perplexity_agent # ✅ Use factory function
name: perplexity_agent
# Start with basic configuration to test
enable_sessions: false
enable_tools: true
streaming: true
agent_card:
name: Perplexity Agent
description: "Advanced research agent with search capabilities"
capabilities:
tools: false # Will enable once basic functionality works
streaming: true
sessions: true
skills:
- id: research
name: Research
description: "Research assistance and information synthesis"
tags: [research, analysis]
# 🔧 Time Agent with factory function
time_agent:
type: a2a_server.tasks.handlers.chuk.chuk_agent_handler.AgentHandler
agent: a2a_server.sample_agents.time_agent.create_time_agent # ✅ Use factory function
name: time_agent
# Handler-level session configuration
sandbox_id: "time_sessions"
session_sharing: false
# Agent-level session configuration
enable_sessions: false # Keep simple for utility agent
infinite_context: true
token_threshold: 4000
max_turns_per_segment: 50
session_ttl_hours: 24
# Model configuration
provider: "openai"
model: "gpt-4o-mini"
streaming: true
# MCP Tool configuration - START DISABLED, CAN ENABLE LATER
enable_tools: true # Set to true when MCP server is available
debug_tools: false
mcp_config_file: "time_server_config.json"
mcp_servers: ["time"]
agent_card:
name: Time Agent
description: "Time and timezone assistance with optional MCP tools"
version: "1.0.0"
documentationUrl: "https://a2a-server.fly.dev/time_agent/docs"
provider:
organization: "chrishayuk"
url: "https://chrishayuk.io"
capabilities:
streaming: true
pushNotifications: false
tools: false # Will enable MCP tools when available
sessions: false
# authentication
defaultInputModes:
- "text/plain"
defaultOutputModes:
- "text/plain"
skills:
- id: time-assistance
name: Time Assistance
description: "Time and timezone help with intelligent fallbacks"
tags:
- time
- timezone
- scheduling
- utility
examples:
- "What time is it in Tokyo?"
- "Current time in New York"
- "What's the time difference between London and LA?"
- "Help me schedule a meeting across timezones"
# 🔧 WORKING: Legacy Google ADK Agents (these are working from your logs)
pirate_agent:
type: a2a_server.tasks.handlers.adk.google_adk_handler.GoogleADKHandler
agent: a2a_server.sample_agents.pirate_agent.pirate_agent # ✅ This works
name: pirate_agent
use_sessions: false
agent_card:
name: Legacy Pirate Agent
description: "Converts your text into authentic pirate-speak, arrr!"
version: "0.1.0"
documentationUrl: "https://a2a-server.fly.dev/legacy_pirate_agent/docs"
provider:
organization: "chrishayuk"
url: "https://chrishayuk.io"
capabilities:
streaming: true
pushNotifications: false
# authentication
defaultInputModes:
- "text/plain"
defaultOutputModes:
- "text/plain"
skills:
- id: pirate-talk
name: Pirate Talk
description: "Transform any message into swashbuckling pirate lingo"
tags:
- pirate
- fun
- language
examples:
- "Turn this into pirate speak: Hello there!"
- "Make this sound like a pirate: Good morning!"
chef_agent:
type: a2a_server.tasks.handlers.adk.google_adk_handler.GoogleADKHandler
agent: a2a_server.sample_agents.chef_agent.chef_agent # ✅ This works
name: chef_agent
use_sessions: false
sandbox_id: "adk_chef_sessions"
agent_card:
name: Chef Agent
description: "Your culinary companion for recipe suggestions and cooking advice"
version: "0.1.0"
documentationUrl: "https://a2a-server.fly.dev/chef_agent/docs"
provider:
organization: "chrishayuk"
url: "https://chrishayuk.io"
capabilities:
streaming: true
pushNotifications: false
# authentication
defaultInputModes:
- "text/plain"
defaultOutputModes:
- "text/plain"
skills:
- id: recipe-generation
name: Recipe Generation
description: "Create delicious recipes based on available ingredients"
tags:
- cooking
- recipes
- ingredients
examples:
- "What can I make with chicken, mushrooms, and rice?"
- "Vegetarian recipe with spinach and cheese"
- "Quick dessert with chocolate and bananas"
# 🎯 DEMO: Specialized handlers (optional - remove if not needed)
time_ticker:
type: a2a_server.tasks.handlers.time_ticker_handler.TimeTickerHandler
name: time_ticker
agent: null
agent_card:
name: Time Ticker
description: "Demonstrates streaming by showing current time for 10 seconds"
#url: "https://a2a-server.fly.dev/time_ticker"
version: "1.0.0"
capabilities:
streaming: true
pushNotifications: false
defaultInputModes:
- "text/plain"
defaultOutputModes:
- "text/plain"
skills:
- id: time-stream
name: Time Stream Demo
description: "Stream current time updates for demonstration"
tags:
- demo
- streaming
- time
examples:
- "Show me the time stream"
- "Start time ticker"
pirate_vision:
type: a2a_server.tasks.handlers.pirate_vision_handler.PirateVisionHandler
name: pirate_vision
agent: null
agent_card:
name: Pirate Vision
description: "Analyzes images and describes them in colorful pirate language"
#url: "https://a2a-server.fly.dev/pirate_vision"
version: "1.0.0"
capabilities:
streaming: true
vision: true
pushNotifications: false
defaultInputModes:
- "image_base64"
- "image/png"
- "image/jpeg"
defaultOutputModes:
- "text/plain"
skills:
- id: image-analysis
name: Pirate Image Analysis
description: "Describe images using pirate vocabulary and flair"
tags:
- vision
- pirate
- image-analysis
- demo
examples:
- "What do you see in this image, matey?"
- "Describe this picture like a pirate"