fast-agent-mcp 0.2.13__py3-none-any.whl → 0.2.16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fast_agent_mcp-0.2.13.dist-info → fast_agent_mcp-0.2.16.dist-info}/METADATA +1 -1
- {fast_agent_mcp-0.2.13.dist-info → fast_agent_mcp-0.2.16.dist-info}/RECORD +36 -36
- mcp_agent/agents/agent.py +2 -2
- mcp_agent/agents/base_agent.py +3 -3
- mcp_agent/agents/workflow/chain_agent.py +2 -2
- mcp_agent/agents/workflow/evaluator_optimizer.py +3 -3
- mcp_agent/agents/workflow/orchestrator_agent.py +3 -3
- mcp_agent/agents/workflow/parallel_agent.py +2 -2
- mcp_agent/agents/workflow/router_agent.py +2 -2
- mcp_agent/cli/commands/check_config.py +450 -0
- mcp_agent/cli/commands/setup.py +1 -1
- mcp_agent/cli/main.py +8 -15
- mcp_agent/config.py +4 -7
- mcp_agent/core/agent_types.py +8 -8
- mcp_agent/core/direct_decorators.py +10 -8
- mcp_agent/core/direct_factory.py +4 -1
- mcp_agent/core/enhanced_prompt.py +6 -5
- mcp_agent/core/interactive_prompt.py +70 -50
- mcp_agent/core/validation.py +6 -4
- mcp_agent/event_progress.py +6 -6
- mcp_agent/llm/augmented_llm.py +10 -2
- mcp_agent/llm/augmented_llm_passthrough.py +5 -3
- mcp_agent/llm/augmented_llm_playback.py +2 -1
- mcp_agent/llm/model_factory.py +7 -27
- mcp_agent/llm/provider_key_manager.py +83 -0
- mcp_agent/llm/provider_types.py +16 -0
- mcp_agent/llm/providers/augmented_llm_anthropic.py +5 -26
- mcp_agent/llm/providers/augmented_llm_deepseek.py +5 -24
- mcp_agent/llm/providers/augmented_llm_generic.py +4 -16
- mcp_agent/llm/providers/augmented_llm_openai.py +4 -26
- mcp_agent/llm/providers/augmented_llm_openrouter.py +17 -45
- mcp_agent/mcp/interfaces.py +2 -1
- mcp_agent/mcp_server/agent_server.py +120 -38
- mcp_agent/cli/commands/config.py +0 -11
- mcp_agent/executor/temporal.py +0 -383
- mcp_agent/executor/workflow.py +0 -195
- {fast_agent_mcp-0.2.13.dist-info → fast_agent_mcp-0.2.16.dist-info}/WHEEL +0 -0
- {fast_agent_mcp-0.2.13.dist-info → fast_agent_mcp-0.2.16.dist-info}/entry_points.txt +0 -0
- {fast_agent_mcp-0.2.13.dist-info → fast_agent_mcp-0.2.16.dist-info}/licenses/LICENSE +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fast-agent-mcp
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.16
|
4
4
|
Summary: Define, Prompt and Test MCP enabled Agents and Workflows
|
5
5
|
Author-email: Shaun Smith <fastagent@llmindset.co.uk>, Sarmad Qadri <sarmad@lastmileai.dev>
|
6
6
|
License: Apache License
|
@@ -1,70 +1,70 @@
|
|
1
1
|
mcp_agent/__init__.py,sha256=-AIoeL4c9UAp_P4U0z-uIWTTmQWdihOis5nbQ5L_eao,1664
|
2
2
|
mcp_agent/app.py,sha256=jBmzYM_o50g8vhlTgkkf5TGiBWNbXWViYnd0WANbpzo,10276
|
3
|
-
mcp_agent/config.py,sha256=
|
3
|
+
mcp_agent/config.py,sha256=Fr29xaR6nkEPv6dt5XFMNg4vjh6IeyaFmRC1T0cxk-Y,12088
|
4
4
|
mcp_agent/console.py,sha256=Gjf2QLFumwG1Lav__c07X_kZxxEUSkzV-1_-YbAwcwo,813
|
5
5
|
mcp_agent/context.py,sha256=pp_F1Q1jgAxGrRccSZJutn1JUxYfVue-St3S8tUyptM,7903
|
6
6
|
mcp_agent/context_dependent.py,sha256=QXfhw3RaQCKfscEEBRGuZ3sdMWqkgShz2jJ1ivGGX1I,1455
|
7
|
-
mcp_agent/event_progress.py,sha256=
|
7
|
+
mcp_agent/event_progress.py,sha256=3dqk5Pn1tAG_m_wn4IPNwLWLyzm7CyKIidqHN-4l-JY,2736
|
8
8
|
mcp_agent/mcp_server_registry.py,sha256=pSD3euU-Oc2LAVenqkLU7UmutAzk6A9liYVLjCj4J70,10068
|
9
9
|
mcp_agent/progress_display.py,sha256=GeJU9VUt6qKsFVymG688hCMVCsAygG9ifiiEb5IcbN4,361
|
10
10
|
mcp_agent/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
mcp_agent/agents/agent.py,sha256=
|
12
|
-
mcp_agent/agents/base_agent.py,sha256=
|
11
|
+
mcp_agent/agents/agent.py,sha256=GgaUHoilgqzh9PQYr5k2WiPj4pagwicf9-ZLFsHkNNo,3848
|
12
|
+
mcp_agent/agents/base_agent.py,sha256=nY93atndy6OdOZi5LAbJTJ05F5PHvvfk1RKq0NFeKWw,23498
|
13
13
|
mcp_agent/agents/workflow/__init__.py,sha256=HloteEW6kalvgR0XewpiFAqaQlMPlPJYg5p3K33IUzI,25
|
14
|
-
mcp_agent/agents/workflow/chain_agent.py,sha256=
|
15
|
-
mcp_agent/agents/workflow/evaluator_optimizer.py,sha256=
|
16
|
-
mcp_agent/agents/workflow/orchestrator_agent.py,sha256=
|
14
|
+
mcp_agent/agents/workflow/chain_agent.py,sha256=eIlImirrSXkqBJmPuAJgOKis81Cl6lZEGM0-6IyaUV8,6105
|
15
|
+
mcp_agent/agents/workflow/evaluator_optimizer.py,sha256=ysUMGM2NzeCIutgr_vXH6kUPpZMw0cX4J_Wl1r8eT84,13296
|
16
|
+
mcp_agent/agents/workflow/orchestrator_agent.py,sha256=bNjOLTsPvUAZEvdd2Nd2YcV8GTFctuImBuS-RQsLC5A,21557
|
17
17
|
mcp_agent/agents/workflow/orchestrator_models.py,sha256=5P_aXADVT4Et8qT4e1cb9RelmHX5dCRrzu8j8T41Kdg,7230
|
18
18
|
mcp_agent/agents/workflow/orchestrator_prompts.py,sha256=EXKEI174sshkZyPPEnWbwwNafzSPuA39MXL7iqG9cWc,9106
|
19
|
-
mcp_agent/agents/workflow/parallel_agent.py,sha256=
|
20
|
-
mcp_agent/agents/workflow/router_agent.py,sha256=
|
19
|
+
mcp_agent/agents/workflow/parallel_agent.py,sha256=GQTxAqwrPEdle-rPWMvoLOuzE_X69_HYEgYSm98eXdM,7087
|
20
|
+
mcp_agent/agents/workflow/router_agent.py,sha256=Jkib-STvzk7jQc2JoWct5I3sdeUHXEuY7vQIPyCsA-I,11165
|
21
21
|
mcp_agent/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
mcp_agent/cli/__main__.py,sha256=AVZ7tQFhU_sDOGuUGJq8ujgKtcxsYJBJwHbVaaiRDlI,166
|
23
|
-
mcp_agent/cli/main.py,sha256=
|
23
|
+
mcp_agent/cli/main.py,sha256=m0Ndb8y5qCfYyTDBDaJ4g1TuUiX-xtTKNJJDPsltw6o,2884
|
24
24
|
mcp_agent/cli/terminal.py,sha256=GRwD-RGW7saIz2IOWZn5vD6JjiArscELBThm1GTFkuI,1065
|
25
|
-
mcp_agent/cli/commands/
|
25
|
+
mcp_agent/cli/commands/check_config.py,sha256=9Ryxo_fLInm3YKdYv46yLrAJgnQtMisGreu6Kkriw2g,16677
|
26
26
|
mcp_agent/cli/commands/quickstart.py,sha256=SM3CHMzDgvTxIpKjFuX9BrS_N1vRoXNBDaO90aWx1Rk,14586
|
27
|
-
mcp_agent/cli/commands/setup.py,sha256=
|
27
|
+
mcp_agent/cli/commands/setup.py,sha256=iEMwhc1mBIsX2PH2yeBnr0GPE5rrI8QXXcwcovJleGc,6470
|
28
28
|
mcp_agent/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
29
29
|
mcp_agent/core/agent_app.py,sha256=5nQJNo8DocIRWiX4pVKAHUZF8s6HWpc-hJnfzl_1v1c,9697
|
30
|
-
mcp_agent/core/agent_types.py,sha256=
|
31
|
-
mcp_agent/core/direct_decorators.py,sha256=
|
32
|
-
mcp_agent/core/direct_factory.py,sha256=
|
33
|
-
mcp_agent/core/enhanced_prompt.py,sha256=
|
30
|
+
mcp_agent/core/agent_types.py,sha256=jAYYpcya_Gvc_PtEXmJh7_HgvgIUQx4so_5M-pkpBoM,1459
|
31
|
+
mcp_agent/core/direct_decorators.py,sha256=4e_C4_UGnqSnu8y4Wjb6px_9XMktBxebzr91v57MKb4,14450
|
32
|
+
mcp_agent/core/direct_factory.py,sha256=rsnxnjvslur7fuptCQfCkUTFbwguVM-FU1Yh6AJOsjg,17842
|
33
|
+
mcp_agent/core/enhanced_prompt.py,sha256=kEgeD7F1s8LRZDc3Xr6CIxQxewxXy9z-0xZsxfIblsY,18851
|
34
34
|
mcp_agent/core/error_handling.py,sha256=xoyS2kLe0eG0bj2eSJCJ2odIhGUve2SbDR7jP-A-uRw,624
|
35
35
|
mcp_agent/core/exceptions.py,sha256=ENAD_qGG67foxy6vDkIvc-lgopIUQy6O7zvNPpPXaQg,2289
|
36
36
|
mcp_agent/core/fastagent.py,sha256=T2kyq32wBJCOj13Zy1G_XJjQZb1S4HVdx3OBzmEMHBg,18644
|
37
|
-
mcp_agent/core/interactive_prompt.py,sha256=
|
37
|
+
mcp_agent/core/interactive_prompt.py,sha256=9s5c-XXGAKAqYh1SUVQIMRGFIcxfFjkaPmke1tyInaA,23854
|
38
38
|
mcp_agent/core/mcp_content.py,sha256=2D7KHY9mG_vxoDwFLKvsPQV9VRIzHItM7V-jcEnACh8,8878
|
39
39
|
mcp_agent/core/prompt.py,sha256=qnintOUGEoDPYLI9bu9G2OlgVMCe5ZPUZilgMzydXhc,7919
|
40
40
|
mcp_agent/core/request_params.py,sha256=bEjWo86fqxdiWm2U5nPDd1uCUpcIQO9oiCinhB8lQN0,1185
|
41
|
-
mcp_agent/core/validation.py,sha256=
|
41
|
+
mcp_agent/core/validation.py,sha256=Kmio1Xx-xNyCVd03RLfTxofEAWmVDPxUnQoyOSUMjR0,11445
|
42
42
|
mcp_agent/executor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
43
43
|
mcp_agent/executor/decorator_registry.py,sha256=CozMdIzE1LyyBfE3_R_kuxb5yi-mi--u_czKOZRp6Dg,3832
|
44
44
|
mcp_agent/executor/executor.py,sha256=MzLSnW9nHrLHYChR3oQa5B8dajQGX26q6-S2BJCxv0o,9507
|
45
45
|
mcp_agent/executor/task_registry.py,sha256=PCALFeYtkQrPBg4RBJnlA0aDI8nHclrNkHGUS4kV3W8,1242
|
46
|
-
mcp_agent/executor/temporal.py,sha256=cxLUW8WWFerHlmkDlu5E241h0L-ZU9SeenYHoGQ6c-U,14964
|
47
|
-
mcp_agent/executor/workflow.py,sha256=T2RzVZ2zD2024zPgQgXERW8zZ3XUv-3dwEeBDZCUkBg,6721
|
48
46
|
mcp_agent/executor/workflow_signal.py,sha256=_X8Bli9XSl3QX05uZ2fc88QhLj5aDjvmsI6Bo-48oO8,11248
|
49
47
|
mcp_agent/human_input/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
50
48
|
mcp_agent/human_input/handler.py,sha256=s712Z5ssTCwjL9-VKoIdP5CtgMh43YvepynYisiWTTA,3144
|
51
49
|
mcp_agent/human_input/types.py,sha256=RtWBOVzy8vnYoQrc36jRLn8z8N3C4pDPMBN5vF6qM5Y,1476
|
52
50
|
mcp_agent/llm/__init__.py,sha256=d8zgwG-bRFuwiMNMYkywg_qytk4P8lawyld_meuUmHI,68
|
53
|
-
mcp_agent/llm/augmented_llm.py,sha256=
|
54
|
-
mcp_agent/llm/augmented_llm_passthrough.py,sha256=
|
55
|
-
mcp_agent/llm/augmented_llm_playback.py,sha256=
|
51
|
+
mcp_agent/llm/augmented_llm.py,sha256=ibswlM9DdcE0yC35GqzVw3fMVWllNmKHxryrK6rFsYc,18636
|
52
|
+
mcp_agent/llm/augmented_llm_passthrough.py,sha256=PxakaEYbXL2IeHI18yg8Vr21DT_y5FO6bPeh3XcQvZk,6204
|
53
|
+
mcp_agent/llm/augmented_llm_playback.py,sha256=RwXtxux9Z6Y3myZbX28xoqyFyi5ZqM3FGBfohR8fgtE,3493
|
56
54
|
mcp_agent/llm/memory.py,sha256=UakoBCJBf59JBtB6uyZM0OZjlxDW_VHtSfDs08ibVEc,3312
|
57
|
-
mcp_agent/llm/model_factory.py,sha256=
|
55
|
+
mcp_agent/llm/model_factory.py,sha256=EmsBPWphFON7VHyh3NWKhaeGJy4spfaNJ5cSqd4SHoo,7516
|
58
56
|
mcp_agent/llm/prompt_utils.py,sha256=yWQHykoK13QRF7evHUKxVF0SpVLN-Bsft0Yixzvn0g0,4825
|
57
|
+
mcp_agent/llm/provider_key_manager.py,sha256=rlSB1_2KYRKkESc94Ilh16Nm9THVsfBiDBbsCFOsr34,2770
|
58
|
+
mcp_agent/llm/provider_types.py,sha256=2d36ZrqdO4E6BXpRgdzg_OJaszpb5BEgQKVRwpUYbVc,285
|
59
59
|
mcp_agent/llm/sampling_converter.py,sha256=C7wPBlmT0eD90XWabC22zkxsrVHKCrjwIwg6cG628cI,2926
|
60
60
|
mcp_agent/llm/sampling_format_converter.py,sha256=xGz4odHpOcP7--eFaJaFtUR8eR9jxZS7MnLH6J7n0EU,1263
|
61
61
|
mcp_agent/llm/providers/__init__.py,sha256=heVxtmuqFJOnjjxHz4bWSqTAxXoN1E8twC_gQ_yJpHk,265
|
62
62
|
mcp_agent/llm/providers/anthropic_utils.py,sha256=vYDN5G5jKMhD2CQg8veJYab7tvvzYkDMq8M1g_hUAQg,3275
|
63
|
-
mcp_agent/llm/providers/augmented_llm_anthropic.py,sha256=
|
64
|
-
mcp_agent/llm/providers/augmented_llm_deepseek.py,sha256=
|
65
|
-
mcp_agent/llm/providers/augmented_llm_generic.py,sha256=
|
66
|
-
mcp_agent/llm/providers/augmented_llm_openai.py,sha256=
|
67
|
-
mcp_agent/llm/providers/augmented_llm_openrouter.py,sha256=
|
63
|
+
mcp_agent/llm/providers/augmented_llm_anthropic.py,sha256=8AyO8iaSjhLpU3uAaqlN2lJyo8KduUmVUlqtUU_GBuE,13752
|
64
|
+
mcp_agent/llm/providers/augmented_llm_deepseek.py,sha256=S6_sSV07RhpcqWXi5M8uUQLNhw_Lc0nePtgVwrxCAho,1287
|
65
|
+
mcp_agent/llm/providers/augmented_llm_generic.py,sha256=5Uq8ZBhcFuQTt7koP_5ykolREh2iWu8zKhNbh3pM9lQ,1210
|
66
|
+
mcp_agent/llm/providers/augmented_llm_openai.py,sha256=jwV-_GmGMg-nNGVcG_P0i5J5PIj30sOoGxrWT6RUbZI,17244
|
67
|
+
mcp_agent/llm/providers/augmented_llm_openrouter.py,sha256=V_TlVKm92GHBxYIo6gpvH_6cAaIdppS25Tz6x5T7LW0,2341
|
68
68
|
mcp_agent/llm/providers/multipart_converter_anthropic.py,sha256=t5lHYGfFUacJldnrVtMNW-8gEMoto8Y7hJkDrnyZR-Y,16650
|
69
69
|
mcp_agent/llm/providers/multipart_converter_openai.py,sha256=zCj0LBgd9FDG8aL_GeTrPo2ssloYnmC_Uj3ENWVUJAg,16753
|
70
70
|
mcp_agent/llm/providers/openai_multipart.py,sha256=qKBn7d3jSabnJmVgWweVzqh8q9mBqr09fsPmP92niAQ,6899
|
@@ -81,7 +81,7 @@ mcp_agent/logging/tracing.py,sha256=d5lSXakzzi5PtQpUkVkOnYaGX8NduGPq__S7vx-Ln8U,
|
|
81
81
|
mcp_agent/logging/transport.py,sha256=m8YsLLu5T8eof_ndpLQs4gHOzqqEL98xsVwBwDsBfxI,17335
|
82
82
|
mcp_agent/mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
83
83
|
mcp_agent/mcp/gen_client.py,sha256=fAVwFVCgSamw4PwoWOV4wrK9TABx1S_zZv8BctRyF2k,3030
|
84
|
-
mcp_agent/mcp/interfaces.py,sha256=
|
84
|
+
mcp_agent/mcp/interfaces.py,sha256=zc4GM6Q97yqucHlNWWuODjQAIECxdwWXqFTxJ-G_AoY,6803
|
85
85
|
mcp_agent/mcp/logger_textio.py,sha256=vljC1BtNTCxBAda9ExqNB-FwVNUZIuJT3h1nWmCjMws,3172
|
86
86
|
mcp_agent/mcp/mcp_agent_client_session.py,sha256=RMYNltc2pDIzxwEJSS5589RbvPO0KWV4Y3jSyAmhKf0,4181
|
87
87
|
mcp_agent/mcp/mcp_aggregator.py,sha256=jaWbOvb3wioECohZ47CubyxfJ5QkfNSshu1hwhZksG4,40486
|
@@ -102,7 +102,7 @@ mcp_agent/mcp/prompts/prompt_load.py,sha256=Zo0FogqWFEG5FtF1d9ZH-RWsCSSMsi5FIEQH
|
|
102
102
|
mcp_agent/mcp/prompts/prompt_server.py,sha256=SiUR2xYfd3vEpghnYRdzz2rFEMtAbCKx2xzUXgvz1g8,18501
|
103
103
|
mcp_agent/mcp/prompts/prompt_template.py,sha256=EejiqGkau8OizORNyKTUwUjrPof5V-hH1H_MBQoQfXw,15732
|
104
104
|
mcp_agent/mcp_server/__init__.py,sha256=zBU51ITHIEPScd9nRafnhEddsWqXRPAAvHhkrbRI2_4,155
|
105
|
-
mcp_agent/mcp_server/agent_server.py,sha256=
|
105
|
+
mcp_agent/mcp_server/agent_server.py,sha256=yne6wdc2sHwzOGuLFikLxUnHEuPEr3l8cfPlT_jbzBI,19811
|
106
106
|
mcp_agent/resources/examples/data-analysis/analysis-campaign.py,sha256=QdNdo0-7LR4Uzw61hEU_jVKmWyk6A9YpGo81kMwVobM,7267
|
107
107
|
mcp_agent/resources/examples/data-analysis/analysis.py,sha256=M9z8Q4YC5OGuqSa5uefYmmfmctqMn-WqCSfg5LI407o,2609
|
108
108
|
mcp_agent/resources/examples/data-analysis/fastagent.config.yaml,sha256=ini94PHyJCfgpjcjHKMMbGuHs6LIj46F1NwY0ll5HVk,1609
|
@@ -143,8 +143,8 @@ mcp_agent/resources/examples/workflows/parallel.py,sha256=n0dFN26QvYd2wjgohcaUBf
|
|
143
143
|
mcp_agent/resources/examples/workflows/router.py,sha256=E4x_-c3l4YW9w1i4ARcDtkdeqIdbWEGfsMzwLYpdbVc,1677
|
144
144
|
mcp_agent/resources/examples/workflows/short_story.txt,sha256=X3y_1AyhLFN2AKzCKvucJtDgAFIJfnlbsbGZO5bBWu0,1187
|
145
145
|
mcp_agent/ui/console_display.py,sha256=TVGDtJ37hc6UG0ei9g7ZPZZfFNeS1MYozt-Mx8HsPCk,9752
|
146
|
-
fast_agent_mcp-0.2.
|
147
|
-
fast_agent_mcp-0.2.
|
148
|
-
fast_agent_mcp-0.2.
|
149
|
-
fast_agent_mcp-0.2.
|
150
|
-
fast_agent_mcp-0.2.
|
146
|
+
fast_agent_mcp-0.2.16.dist-info/METADATA,sha256=8Ed0qKTHlBEYhMa5HleFhAtZjrmV-Kq0Sir2RMO9yW0,29940
|
147
|
+
fast_agent_mcp-0.2.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
148
|
+
fast_agent_mcp-0.2.16.dist-info/entry_points.txt,sha256=bRniFM5zk3Kix5z7scX0gf9VnmGQ2Cz_Q1Gh7Ir4W00,186
|
149
|
+
fast_agent_mcp-0.2.16.dist-info/licenses/LICENSE,sha256=cN3FxDURL9XuzE5mhK9L2paZo82LTfjwCYVT7e3j0e4,10939
|
150
|
+
fast_agent_mcp-0.2.16.dist-info/RECORD,,
|
mcp_agent/agents/agent.py
CHANGED
@@ -66,7 +66,7 @@ class Agent(BaseAgent):
|
|
66
66
|
agent_name_str = str(self.name)
|
67
67
|
|
68
68
|
# Create agent_types dictionary with just this agent
|
69
|
-
agent_types = {agent_name_str: self.agent_type}
|
69
|
+
agent_types = {agent_name_str: self.agent_type.value}
|
70
70
|
|
71
71
|
# Create the interactive prompt
|
72
72
|
prompt = InteractivePrompt(agent_types=agent_types)
|
@@ -84,7 +84,7 @@ class Agent(BaseAgent):
|
|
84
84
|
async def list_prompts_wrapper(agent_name):
|
85
85
|
# Always call list_prompts on this agent regardless of agent_name
|
86
86
|
return await self.list_prompts()
|
87
|
-
|
87
|
+
|
88
88
|
# Define wrapper for list_resources function
|
89
89
|
async def list_resources_wrapper(agent_name):
|
90
90
|
# Always call list_resources on this agent regardless of agent_name
|
mcp_agent/agents/base_agent.py
CHANGED
@@ -32,7 +32,7 @@ from mcp.types import (
|
|
32
32
|
)
|
33
33
|
from pydantic import BaseModel
|
34
34
|
|
35
|
-
from mcp_agent.core.agent_types import AgentConfig
|
35
|
+
from mcp_agent.core.agent_types import AgentConfig, AgentType
|
36
36
|
from mcp_agent.core.exceptions import PromptExitError
|
37
37
|
from mcp_agent.core.prompt import Prompt
|
38
38
|
from mcp_agent.core.request_params import RequestParams
|
@@ -623,7 +623,7 @@ class BaseAgent(MCPAggregator, AgentProtocol):
|
|
623
623
|
return response.first_text()
|
624
624
|
|
625
625
|
@property
|
626
|
-
def agent_type(self) ->
|
626
|
+
def agent_type(self) -> AgentType:
|
627
627
|
"""
|
628
628
|
Return the type of this agent.
|
629
629
|
|
@@ -632,7 +632,7 @@ class BaseAgent(MCPAggregator, AgentProtocol):
|
|
632
632
|
Returns:
|
633
633
|
String representing the agent type
|
634
634
|
"""
|
635
|
-
return
|
635
|
+
return AgentType.BASIC
|
636
636
|
|
637
637
|
@property
|
638
638
|
def message_history(self) -> List[PromptMessageMultipart]:
|
@@ -26,9 +26,9 @@ class ChainAgent(BaseAgent):
|
|
26
26
|
|
27
27
|
# TODO -- consider adding "repeat" mode
|
28
28
|
@property
|
29
|
-
def agent_type(self) ->
|
29
|
+
def agent_type(self) -> AgentType:
|
30
30
|
"""Return the type of this agent."""
|
31
|
-
return AgentType.CHAIN
|
31
|
+
return AgentType.CHAIN
|
32
32
|
|
33
33
|
def __init__(
|
34
34
|
self,
|
@@ -64,11 +64,11 @@ class EvaluatorOptimizerAgent(BaseAgent):
|
|
64
64
|
for refinement, continuing until a quality threshold is reached or a maximum
|
65
65
|
number of refinement cycles is completed.
|
66
66
|
"""
|
67
|
-
|
67
|
+
|
68
68
|
@property
|
69
|
-
def agent_type(self) ->
|
69
|
+
def agent_type(self) -> AgentType:
|
70
70
|
"""Return the type of this agent."""
|
71
|
-
return AgentType.EVALUATOR_OPTIMIZER
|
71
|
+
return AgentType.EVALUATOR_OPTIMIZER
|
72
72
|
|
73
73
|
def __init__(
|
74
74
|
self,
|
@@ -46,11 +46,11 @@ class OrchestratorAgent(BaseAgent):
|
|
46
46
|
to specialized worker agents, synthesizing their results into a cohesive output.
|
47
47
|
Supports both full planning and iterative planning modes.
|
48
48
|
"""
|
49
|
-
|
49
|
+
|
50
50
|
@property
|
51
|
-
def agent_type(self) ->
|
51
|
+
def agent_type(self) -> AgentType:
|
52
52
|
"""Return the type of this agent."""
|
53
|
-
return AgentType.ORCHESTRATOR
|
53
|
+
return AgentType.ORCHESTRATOR
|
54
54
|
|
55
55
|
def __init__(
|
56
56
|
self,
|
@@ -20,9 +20,9 @@ class ParallelAgent(BaseAgent):
|
|
20
20
|
"""
|
21
21
|
|
22
22
|
@property
|
23
|
-
def agent_type(self) ->
|
23
|
+
def agent_type(self) -> AgentType:
|
24
24
|
"""Return the type of this agent."""
|
25
|
-
return AgentType.PARALLEL
|
25
|
+
return AgentType.PARALLEL
|
26
26
|
|
27
27
|
def __init__(
|
28
28
|
self,
|
@@ -106,9 +106,9 @@ class RouterAgent(BaseAgent):
|
|
106
106
|
"""
|
107
107
|
|
108
108
|
@property
|
109
|
-
def agent_type(self) ->
|
109
|
+
def agent_type(self) -> AgentType:
|
110
110
|
"""Return the type of this agent."""
|
111
|
-
return AgentType.ROUTER
|
111
|
+
return AgentType.ROUTER
|
112
112
|
|
113
113
|
def __init__(
|
114
114
|
self,
|