-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathagents.yaml
More file actions
2856 lines (2842 loc) · 102 KB
/
agents.yaml
File metadata and controls
2856 lines (2842 loc) · 102 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
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
version: 1.0
agents:
- name: A2a Orchestrator
description: 作為協調代理,依官方A2A協定調度研究、分析與寫作子代理,整合結果交付。
code_ref: workspace/python/agents/a2a-orchestrator
type: Agent
models:
- gemini-2.0-flash
tools:
- name: check_agent_availability
type: FunctionTool
description: 向遠端代理的 agent-card URL 發送一個 HTTP GET 請求,確認代理伺服器是否正在運行且可存取。
- name: log_coordination_step
type: FunctionTool
description: 在複雜的多代理工作流程中,此函式提供了一個簡單的方法來記錄協調器在每個階段的行為,方便開發者追蹤流程。
generate_content_config:
temperature: 0.5
max_output_tokens: 2048
server-port: 8000
tags:
- a2a
- orchestrator
- fastapi
sub_agents:
- name: Research Specialist
description: 進行網路研究與事實查核。
type: RemoteA2aAgent
models:
- gemini-2.0-flash
tools:
- name: research_topic
type: FunctionTool
description: 研究特定主題並提供詳細的發現。
- name: fact_check
type: FunctionTool
description: 對特定的聲明或陳述進行事實查核。
generate_content_config:
temperature: 0.3
max_output_tokens: 1500
server-port: 8001
tags:
- to_a2a
- research
- fact-checking
- fastapi
- name: Content Writer
description: 創作書面內容與摘要。
type: RemoteA2aAgent
models:
- gemini-2.0-flash
tools:
- name: create_content
type: FunctionTool
description: 根據指定的類型與主題創作各種類型的內容。
- name: format_content
type: FunctionTool
description: 將現有內容格式化為特定的格式或樣式。
generate_content_config:
temperature: 0.7
max_output_tokens: 2000
server-port: 8003
tags:
- to_a2a
- writing
- content-creation
- fastapi
- name: Analysis Agent
description: 您是一位專注於從資訊與資料中提取洞察的資料分析專家。
type: RemoteA2aAgent
models:
- gemini-2.0-flash
tools:
- name: analyze_data
type: FunctionTool
description: 分析資料並產生洞察與建議。
- name: generate_insights
type: FunctionTool
description: 針對特定主題產生策略性洞察與建議。
generate_content_config:
temperature: 0.4
max_output_tokens: 1500
server-port: 8002
tags:
- to_a2a
- analysis
- data-insights
- fastapi
- name: ADK Interactions Agent
description: 一個展示 Interactions API 整合的 ADK 代理,具備天氣、計算和搜尋工具。
code_ref: workspace/python/agents/adk-interactions-integration
type: Agent
models:
- gemini-2.5-flash
tools:
- name: get_current_weather
type: FunctionTool
description: 取得特定地點的目前天氣。
- name: calculate_expression
type: FunctionTool
description: 安全地計算數學表達式。
- name: search_knowledge_base
type: FunctionTool
description: 在知識庫中搜尋資訊。
server-port: 8000
tags:
- use_interactions_api
- gemini
- model
- agent-factory
- name: Artifact Agent
description: 您是一個具備 Artifacts 儲存功能的進階文件處理代理程式。
code_ref: workspace/python/agents/artifact-agent
type: Agent
models:
- gemini-1.5-flash
tools:
- name: extract_text_tool
type: FunctionTool
description: 將文件文字提取並儲存為Artifacts。
- name: summarize_document_tool
type: FunctionTool
description: 生成文件摘要並將其儲存為Artifacts。
- name: translate_document_tool
type: FunctionTool
description: 將文件文字翻譯成目標語言並儲存為Artifacts。
- name: create_final_report_tool
type: FunctionTool
description: 在知識庫中搜尋資訊。
- name: list_artifacts_tool
type: FunctionTool
description: 在知識庫中搜尋資訊。
- name: load_artifact_tool
type: FunctionTool
description: 按檔名和可選的版本號載入特定Artifact。
- name: load_artifacts_tool
type: LoadArtifactsTool
description: 用於對話式Artifacts存取的內建工具。
server-port: 8000
tags:
- tool_context
- artifacts
- load_artifacts_tool
- translate
- summarize
- extract_text
- report
- name: Best Practices Agent
description: 展示安全性、效能、可靠性和可觀測性最佳實踐的生產就緒代理。
code_ref: workspace/python/agents/best-practices-agent
type: Agent
models:
- gemini-2.5-flash
tools:
- name: validate_input_tool
type: FunctionTool
description: 透過綜合檢查驗證使用者輸入。
- name: retry_with_backoff_tool
type: FunctionTool
description: 執行具有重試邏輯和指數退避的操作。
- name: circuit_breaker_call_tool
type: FunctionTool
description: 使用斷路器保護呼叫外部服務。
- name: cache_operation_tool
type: FunctionTool
description: 執行快取操作以進行效能最佳化。
- name: batch_process_tool
type: FunctionTool
description: 批次處理多個項目以提升效率。
- name: health_check_tool
type: FunctionTool
description: 執行綜合健康檢查。
- name: get_metrics_tool
type: FunctionTool
description: 取得當前系統指標。
server-port: 8000
tags:
- security
- validation
- reliability
- resilience
- performance
- observability
- monitoring
- circuit-breaker
- cache
- batch-processing
- name: Blog Creation Pipeline
description: 從研究到發布的完整部落格文章創建流水線。
code_ref: workspace/python/agents/blog-pipeline
type: SequentialAgent
server-port: 8000
tags:
- sequential-workflow
- pipeline
- blog-creation
sub_agents:
- name: researcher
description: 研究主題並收集關鍵資訊。
type: Agent
models:
- gemini-2.0-flash
output_key: research_findings
tags:
- research
- name: writer
description: 根據研究結果撰寫部落格文章草稿。
type: Agent
models:
- gemini-2.0-flash
output_key: draft_post
tags:
- writing
- drafting
- name: editor
description: 審閱部落格文章草稿並提供編輯回饋。
type: Agent
models:
- gemini-2.0-flash
output_key: editorial_feedback
tags:
- editing
- review
- name: formatter
description: 應用編輯回饋並格式化最終部落格文章。
type: Agent
models:
- gemini-2.0-flash
output_key: final_post
tags:
- formatting
- markdown
- name: Chuck Norris Agent
description: 查克·諾里斯笑話助理,可以使用 OpenAPI 工具從查克·諾里斯 API 檢索笑話/事實。
code_ref: workspace/python/agents/chuck-norris-agent
type: Agent
models:
- gemini-2.0-flash
tools:
- name: get_random_joke
type: OpenAPITool
description: 取得隨機的查克·諾里斯笑話
- name: search_jokes
type: OpenAPITool
description: 搜尋笑話
- name: get_categories
type: OpenAPITool
description: 取得所有笑話類別
server-port: 8000
tags:
- openapi
- jokes
- chuck-norris
- open-api-toolset
- name: Financial Calculator
description: 具備 Python 程式碼執行能力的專業金融計算器
code_ref: workspace/python/agents/code-calculator
type: Agent
models:
- gemini-2.0-flash
code_executor:
name: builtin-code-executor
type: BuiltInCodeExecutor
description: 使用內建的 Python 程式碼執行器來進行精確的金融計算。
generate_content_config:
temperature: 0.1
max_output_tokens: 2048
server-port: 8000
tags:
- financial-calculator
- builtin-code-executor
- python
- precise-computation
- name: Commerce Agent
description: 一位個人運動購物禮賓,使用 Google Search Grounding 與儲存的使用者偏好來提供專家級產品推薦。此代理還展示了使用 SQLite 的會話持久性。
code_ref: workspace/python/agents/commerce-agent-e2e
type: Agent
models:
- gemini-2.5-flash
tools:
- name: search_products
type: AgentTool
description: 使用帶有 Grounding 的 Google Search 搜尋體育產品。
- name: save_preferences
type: FunctionTool
description: 為個人化推薦儲存使用者偏好 (運動、預算、經驗水平)。
- name: get_preferences
type: FunctionTool
description: 檢索已儲存的使用者偏好。
server-port: 8000
tags:
- commerce
- google-search
- preferences
- session-persistence
- sqlite
- agent-tool
sub_agents:
- name: Product Search Agent
description: 使用帶有 Grounding 的 Google Search 搜尋體育產品。
type: Agent
models:
- gemini-2.5-flash
tools:
- name: google_search
type: GoogleSearchAgentTool
description: 一個包裝了僅使用 google_search 工具的子代理的工具。
server-port: none
tags:
- google-search
- search_products
- grounding
- name: Content Moderator
description: 具備安全防護、驗證與監控功能的內容審查助理,展示適用於生產環境的回呼模式。
code_ref: workspace/python/agents/content-moderator
type: Agent
models:
- gemini-2.0-flash
tools:
- name: generate_text
type: FunctionTool
description: 依指定主題與字數生成文字(示範版未串接真正模型)。
- name: check_grammar
type: FunctionTool
description: 檢查語法並提供可能錯誤數(簡化示範:每 10 個字視為 1 個潛在問題)。
- name: get_usage_stats
type: FunctionTool
description: 從狀態(state)中取得使用者統計資料,示範回呼如何累積指標。
before_agent_callback:
- name: before_agent_callback
type: BeforeAgentCallback
description: 1.[Before Agent]-這是最早執行的回呼,用於全域檢查與初始化。
before_model_callback:
- name: before_model_callback
type: BeforeModelCallback
description: 2.[Before Model]-這是內容安全的核心檢查點,可攔截不當請求並修改提示詞。
before_tool_callback:
- name: before_tool_callback
type: BeforeToolCallback
description: 3.[Before Tool]-工具層級的安全閘門,確保參數合法且使用量在限制內。
after_tool_callback:
- name: after_tool_callback
type: AfterToolCallback
description: 4.[After Tool]-工具結果的後處理與記錄點。
after_model_callback:
- name: after_model_callback
type: AfterModelCallback
description: 5.[After Model]-這是輸出過濾的關鍵點,確保回應內容符合隱私與安全標準。
after_agent_callback:
- name: after_agent_callback
type: AfterAgentCallback
description: 6.[After Agent]-最後執行的回呼,用於收尾與最終修改。
server-port: 8000
output_key: last_response
tags:
- callbacks
- guardrails
- validation
- logging
- pii-removal
- metrics-tracking
- security
- content-moderation
- name: Content Publisher
description: 完整的內容發布系統,具有並行研究和循序創作功能
code_ref: workspace/python/agents/content-publisher
type: SequentialAgent
server-port: 8000
tags:
- multi-agent
- sequential-workflow
- parallel-research
- content-creation
sub_agents:
- name: ParallelResearch
description: 同時執行所有研究管線
type: ParallelAgent
tags:
- parallel-research
- pipeline
sub_agents:
- name: NewsPipeline
description: 取得並總結新聞
type: SequentialAgent
tags:
- news
- research
- pipeline
sub_agents:
- name: news_fetcher
description: 使用 Google 搜尋取得最新新聞文章
type: Agent
models:
- gemini-2.0-flash
tools:
- name: google_search
type: GoogleSearchTool
description: 執行 Google 搜尋
output_key: raw_news
tags:
- news
- research
- fetch
- name: news_summarizer
description: 總結關鍵新聞要點
type: Agent
models:
- gemini-2.0-flash
output_key: news_summary
tags:
- news
- research
- summary
- name: SocialPipeline
description: 監控並分析社群媒體
type: SequentialAgent
tags:
- social-media
- research
- pipeline
sub_agents:
- name: social_monitor
description: 使用 Google 搜尋監控社群媒體趨勢
type: Agent
models:
- gemini-2.0-flash
tools:
- name: google_search
type: GoogleSearchTool
description: 執行 Google 搜尋
output_key: raw_social
tags:
- social-media
- research
- monitor
- name: sentiment_analyzer
description: 分析社群情緒
type: Agent
models:
- gemini-2.0-flash
output_key: social_insights
tags:
- social-media
- research
- sentiment-analysis
- name: ExpertPipeline
description: 尋找並提取專家意見
type: SequentialAgent
tags:
- expert
- research
- pipeline
sub_agents:
- name: expert_finder
description: 使用 Google 搜尋尋找專家意見
type: Agent
models:
- gemini-2.0-flash
tools:
- name: google_search
type: GoogleSearchTool
description: 執行 Google 搜尋
output_key: raw_experts
tags:
- expert
- research
- find
- name: quote_extractor
description: 提取可引用的見解
type: Agent
models:
- gemini-2.0-flash
output_key: expert_quotes
tags:
- expert
- research
- extract
- name: article_writer
description: 從所有研究撰寫文章草稿
type: Agent
models:
- gemini-2.0-flash
output_key: draft_article
tags:
- writing
- drafting
- name: article_editor
description: 編輯文章以提升清晰度和影響力
type: Agent
models:
- gemini-2.0-flash
output_key: edited_article
tags:
- editing
- review
- name: article_formatter
description: 格式化文章以供發布
type: Agent
models:
- gemini-2.0-flash
output_key: published_article
tags:
- formatting
- markdown
- name: Context Compaction Agent
description: 展示長對話上下文壓縮功能的代理
code_ref: workspace/python/agents/context-compaction-agent
type: Agent
models:
- gemini-2.0-flash
tools:
- name: summarize_text
type: FunctionTool
description: 用於摘要文字區塊的實用工具。
- name: calculate_complexity
type: FunctionTool
description: 分析問題複雜度以決定回應深度。
server-port: 8000
tags:
- context-compaction
- conversation-summary
- token-optimization
- name: Custom Session Agent
description: 演示 ADK 中自定義會話服務註冊模式
code_ref: workspace/python/agents/custom-session-agent
type: Agent
models:
- gemini-2.5-flash
tools:
- name: describe_session_info
type: FunctionTool
description: 描述會話資訊的工具。
- name: test_session_persistence
type: FunctionTool
description: 測試跨請求會話持久化的工具。
- name: show_service_registry_info
type: FunctionTool
description: 顯示服務註冊表資訊的工具。
- name: get_session_backend_guide
type: FunctionTool
description: 提供 Redis 作為會話後端的指南工具。
server-port: 8000
tags:
- custom-session-service
- redis
- service-registry
- factory-pattern
- BaseSessionService
- name: Customer Support
description: 具備各種工具的客戶支援代理人
code_ref: workspace/python/agents/customer-support
type: Agent
models:
- gemini-2.0-flash
tools:
- name: check_customer_status
type: FunctionTool
description: 檢查客戶是否為高級會員
- name: log_interaction
type: FunctionTool
description: 記錄客戶互動以供存檔
- name: get_order_status
type: FunctionTool
description: 透過 ID 取得訂單狀態
- name: track_shipment
type: FunctionTool
description: 取得運送追蹤資訊
- name: cancel_order
type: FunctionTool
description: 取消訂單(需要授權)
- name: search_knowledge_base
type: FunctionTool
description: 搜尋技術文件
- name: run_diagnostic
type: FunctionTool
description: 執行診斷測試
- name: create_ticket
type: FunctionTool
description: 建立支援工單以進行升級處理
- name: get_billing_history
type: FunctionTool
description: 檢索帳單歷史記錄
- name: process_refund
type: FunctionTool
description: 處理退款(金額超過 $100 需要批准)
- name: update_payment_method
type: FunctionTool
description: 更新儲存的付款方式
generate_content_config:
temperature: 0.5
max_output_tokens: 2048
server-port: 8000
tags:
- customer-support
- tools
- yaml-config
- visual-agent-builder
- name: Customer Support Agent (AG-UI)
description: 整合 AG-UI 的客戶支援 ADK 代理人。提供知識庫搜尋、訂單狀態查詢、支援工單建立、產品詳情查詢及退款處理(需人機協作)等功能。
code_ref: workspace/python/agents/customer-support-agent
type: Agent
models:
- gemini-2.0-flash-exp
tools:
- name: search_knowledge_base
type: FunctionTool
description: 搜尋知識庫以尋找相關資訊。
- name: lookup_order_status
type: FunctionTool
description: 查詢客戶訂單的狀態。
- name: create_support_ticket
type: FunctionTool
description: 為複雜問題建立支援工單。
- name: get_product_details
type: FunctionTool
description: 從資料庫獲取產品詳情以生成產品卡片。
- name: process_refund
type: FunctionTool
description: 處理訂單退款(需要前端使用者批准的人機協作)。
server-port: 8000
tags:
- customer-support
- ag-ui
- fastapi
- uvicorn
- generative-ui
- nextjs
- name: Data Analysis Agent
description: 具備視覺化與分析能力的智慧資料分析助理。
code_ref: workspace/python/agents/data-analysis-agent
type: Agent
models:
- gemini-2.0-flash
tools:
- name: analysis_agent
type: AgentTool
description: 具備統計工具的資料分析與見解代理。
models:
- gemini-2.0-flash
tools:
- name: analyze_column
type: FunctionTool
description: 分析資料集中的特定欄位。
- name: calculate_correlation
type: FunctionTool
description: 計算兩個數值欄位之間的關聯性。
- name: filter_data
type: FunctionTool
description: 依條件過濾資料集。
- name: get_dataset_summary
type: FunctionTool
description: 取得目前資料集的摘要資訊。
tags:
- data-analysis
- statistics
- insights
- name: visualization_agent
type: AgentTool
description: 使用 Python 程式碼執行生成資料視覺化。
models:
- gemini-2.0-flash
code_executor:
name: builtin-code-executor
type: BuiltInCodeExecutor
description: 使用內建的 Python 程式碼執行器來編寫生成並顯示視覺化的 Python 程式碼。
tags:
- data-visualization
- code-executor
- python
server-port: 8000
tags:
- data-analysis
- orchestrator
- visualization
- code-executor
- data-visualization
- statistics
- name: Data Analysis Dashboard
description: 整合 pandas 工具與 AG-UI 的數據分析 ADK Agent。提供 CSV 數據載入、統計分析及圖表生成功能,並透過 AG-UI 協議與 Vite+React 前端整合。
code_ref: workspace/python/agents/data-analysis-dashboard
type: Agent
models:
- gemini-2.0-flash-exp
tools:
- name: load_csv_data
type: FunctionTool
description: 將 CSV 數據載入記憶體以進行分析。
- name: analyze_data
type: FunctionTool
description: 對載入的數據集執行統計分析。
- name: create_chart
type: FunctionTool
description: 生成視覺化圖表數據。
server-port: 8000
tags:
- data-analysis
- dashboard
- pandas
- ag-ui
- fastapi
- visualization
- reactjs
- uvicorn
- name: Deep Research Agent
description: 提供高階介面,用於啟動背景研究任務、輪詢完成狀態、串流結果以及進行後續提問。
code_ref: workspace/python/agents/deep-research-agent
type: genai.Client
models:
- gemini-3-pro-preview
tools:
- name: research
type: FunctionTool
description: 執行完整的研究任務並返回結果。
- name: research_with_format
type: FunctionTool
description: 使用特定的輸出格式執行研究。
- name: follow_up
type: FunctionTool
description: 針對已完成的研究提出後續問題。
init:
api_key: YOUR_API_KEY_HERE
server-port: none
tags:
- deep-research
- interactions-api
- google-genai
- vertex-ai
- background-task
- polling
- genai-client-interactions
- background
- name: Enterprise Lead Qualifier
description: 具備公司情報和評分功能的企業銷售潛在客戶資格審查 Agent,用於企業規模的 Agent 管理、治理、編排與協作。
code_ref: workspace/python/agents/enterprise-agent
type: Agent
models:
- gemini-2.0-flash
tools:
- name: check_company_size
type: FunctionTool
description: 從企業資料庫查詢公司規模,可整合 CRM 系統或公司情報 API。
- name: score_lead
type: FunctionTool
description: 根據公司規模、產業和預算等資格標準,將銷售潛在客戶評分 0-100。
- name: get_competitive_intel
type: FunctionTool
description: 獲取將公司與競爭對手比較的競爭情報,可整合市場情報平台。
server-port: 8000
tags:
- enterprise
- sales
- lead-qualification
- crm
- gemini-enterprise
- production-ready
- name: Essay Refinement System
description: 一個完整的論文寫作和精煉系統,首先創建初稿,然後通過評論家-精煉者循環進行迭代改進。
code_ref: workspace/python/agents/essay-refiner
type: SequentialAgent
server-port: 8000
tags:
- multi-agent
- sequential-workflow
- loop-agent
- writing
- refinement
- essay
sub_agents:
- name: InitialWriter
description: 撰寫論文的第一版草稿。
type: Agent
models:
- gemini-2.0-flash
output_key: current_essay
tags:
- writing
- drafting
- name: RefinementLoop
description: 迭代評估和改進論文,直到滿足品質標準為止。
type: LoopAgent
generate_content_config:
max_iterations: 5
tags:
- loop
- iterative-improvement
- quality-control
sub_agents:
- name: Critic
description: 評估論文品質並提供具體的回饋。
type: Agent
models:
- gemini-2.0-flash
output_key: critique
tags:
- evaluation
- feedback
- critique
- name: Refiner
description: 根據評論者的回饋改進論文,或在論文被批准時退出循環。
type: Agent
models:
- gemini-2.0-flash
tools:
- name: exit_loop
type: FunctionTool
description: 當論文被批准時,發出信號以終止精煉循環。
output_key: current_essay
tags:
- refinement
- editing
- exit-condition
- name: Finance Assistant
description: |
一個財務計算助手,可以協助:
- 投資的複利計算
- 抵押貸款或其他貸款的還款計算
- 達到財務目標的每月儲蓄計算
我可以同時執行多項計算以供比較。
所有計算都包含詳細說明和格式化報告。
code_ref: workspace/python/agents/finance-assistant
type: Agent
models:
- gemini-2.0-flash
tools:
- name: calculate_compound_interest
type: FunctionTool
description: 計算儲蓄或投資的複利。
- name: calculate_loan_payment
type: FunctionTool
description: 使用標準攤銷公式計算每月貸款還款。
- name: calculate_monthly_savings
type: FunctionTool
description: 計算達到財務目標所需的每月儲蓄。
server-port: 8000
tags:
- finance
- calculator
- investment
- loan
- savings
- asyncio
- parallel
- name: GEPA Optimization Agent
description: GEPA 教學代理:模擬客服代理,展示如何使用 GEPA (遺傳演算法-帕雷托提示最佳化) 改善身份驗證、政策遵循和解釋清晰度。
code_ref: workspace/python/agents/gepa-optimization-agent
type: Agent
models:
- gemini-2.5-flash
tools:
- name: verify_customer_identity
type: BaseTool
description: 透過檢查訂單號碼和電子郵件來驗證客戶身份。
- name: check_return_policy
type: BaseTool
description: 驗證訂單是否在 30 天的退貨期限內。
- name: process_refund
type: BaseTool
description: 為符合資格的客戶訂單處理退款。
server-port: 8000
tags:
- gepa
- customer-support
- optimization
- prompt-tuning
- genetic-algorithm
- base_tool
- name: Grounding Agent
description: 具有動態工具選擇功能的 Grounding 代理,可根據環境配置啟用網路搜尋與地圖 Grounding。
code_ref: workspace/python/agents/grounding-agent
type: Agent
models:
- gemini-2.0-flash
- gemini-1.5-flash
tools:
- name: google_search
type: GoogleSearchTool
description: 執行 Google 搜尋以取得最新資訊。
- name: google_maps_grounding
type: GoogleMapsGroundingTool
description: 處理基於位置的查詢和地圖 Grounding (在啟用 Vertex AI 時可用)。
- name: analyze_search_results
type: FunctionTool
description: 分析搜尋結果並提取關鍵見解。
- name: save_research_findings
type: FunctionTool
description: 將研究發現儲存為 Artifacts。
generate_content_config:
temperature: 0.3
max_output_tokens: 2048
server-port: 8000
tags:
- grounding
- google-search
- google-maps
- dynamic-tools
- vertex-ai
- research
- analysis
- grounding
- name: Hello Agent
description: 提供友善的對話體驗。 ADK 的入門範例,展示基礎代理的設定。
code_ref: workspace/python/agents/hello-agent
type: Agent
models:
- gemini-2.0-flash
server-port: 8000
tags:
- hello-world
- beginner
- conversation
- name: Interactions API Basic Agent
description: 展示 Google Interactions API 的核心功能,包括基礎文字互動、伺服器端狀態管理、串流回應與函數呼叫。
code_ref: workspace/python/agents/interactions-api-basic
type: genai.Client
models:
- gemini-2.5-flash
- gemini-2.5-pro
- gemini-3-pro-preview
tools:
- name: create_basic_interaction
type: FunctionTool
description: 與 Gemini 模型建立單次的請求-回應互動。
- name: create_stateful_conversation
type: FunctionTool
description: 建立具備伺服器端狀態管理的多輪對話。
- name: create_streaming_interaction
type: FunctionTool
description: 建立即時回應輸出的串流互動。
- name: create_function_calling_interaction
type: FunctionTool
description: 建立具備自定義函數呼叫能力的互動。
- name: create_interaction_with_builtin_tools
type: FunctionTool
description: 使用內建工具 (如 google_search, code_execution) 建立互動。
init:
api_key: YOUR_API_KEY_HERE
server-port: none
tags:
- interactions-api
- google-genai
- state-management
- streaming
- function-calling
- standalone
- name: Math Agent (OTel)
description: 具有 OpenTelemetry 儀表化的 ADK 數學代理,展示使用 Jaeger 後端的分散式追蹤與結構化日誌。
code_ref: workspace/python/agents/math-agent-otel
type: Agent
models:
- gemini-2.5-flash
tools:
- name: add_numbers
type: FunctionTool
description: 將兩個數字相加。
- name: subtract_numbers
type: FunctionTool
description: 從 a 減去 b。
- name: multiply_numbers
type: FunctionTool
description: 將兩個數字相乘。
- name: divide_numbers
type: FunctionTool
description: 將 a 除以 b。
server-port: 8000
tags:
- math
- calculator
- opentelemetry
- otel
- jaeger
- tracing
- observability
- name: Host Agent (MCP/A2A)
description: 將請求路由至 A2A 代理或 MCP 工具。
code_ref: workspace/python/agents/mcp-a2a-master
type: LlmAgent
models:
- gemini-2.5-flash
tools:
- name: _delegate_task
type: FunctionTool
description: 將任務委派給指定的代理。
- name: _list_agents
type: FunctionTool
description: 回傳已註冊的 A2A 子代理的代理卡片物件字典列表。
- name: terminal_server
type: MCPToolset
transports: stdio
description: 提供與 MCP 伺服器通訊的工具集 (stdio)。
tools:
- name: run_command
type: McpTool
description: 在終端機中執行指令並回傳輸出。
- name: arithmetic_server
type: MCPToolset
transports: streamable