fast-agent-mcp 0.2.14__tar.gz → 0.2.16__tar.gz

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.
Files changed (171) hide show
  1. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/PKG-INFO +1 -1
  2. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/pyproject.toml +1 -1
  3. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/config.py +4 -7
  4. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/enhanced_prompt.py +6 -5
  5. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/interactive_prompt.py +70 -50
  6. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/augmented_llm_generic.py +4 -2
  7. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/.gitignore +0 -0
  8. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/LICENSE +0 -0
  9. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/README.md +0 -0
  10. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/data-analysis/analysis-campaign.py +0 -0
  11. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/data-analysis/analysis.py +0 -0
  12. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/data-analysis/fastagent.config.yaml +0 -0
  13. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/data-analysis/mount-point/WA_Fn-UseC_-HR-Employee-Attrition.csv +0 -0
  14. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/mcp/state-transfer/agent_one.py +0 -0
  15. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/mcp/state-transfer/agent_two.py +0 -0
  16. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/mcp/state-transfer/fastagent.config.yaml +0 -0
  17. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/researcher/fastagent.config.yaml +0 -0
  18. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/researcher/researcher-eval.py +0 -0
  19. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/researcher/researcher-imp.py +0 -0
  20. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/researcher/researcher.py +0 -0
  21. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/workflows/chaining.py +0 -0
  22. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/workflows/evaluator.py +0 -0
  23. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/workflows/fastagent.config.yaml +0 -0
  24. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/workflows/graded_report.md +0 -0
  25. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/workflows/human_input.py +0 -0
  26. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/workflows/orchestrator.py +0 -0
  27. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/workflows/parallel.py +0 -0
  28. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/workflows/router.py +0 -0
  29. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/workflows/short_story.md +0 -0
  30. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/examples/workflows/short_story.txt +0 -0
  31. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/__init__.py +0 -0
  32. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/agents/__init__.py +0 -0
  33. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/agents/agent.py +0 -0
  34. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/agents/base_agent.py +0 -0
  35. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/agents/workflow/__init__.py +0 -0
  36. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/agents/workflow/chain_agent.py +0 -0
  37. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/agents/workflow/evaluator_optimizer.py +0 -0
  38. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/agents/workflow/orchestrator_agent.py +0 -0
  39. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/agents/workflow/orchestrator_models.py +0 -0
  40. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/agents/workflow/orchestrator_prompts.py +0 -0
  41. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/agents/workflow/parallel_agent.py +0 -0
  42. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/agents/workflow/router_agent.py +0 -0
  43. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/app.py +0 -0
  44. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/cli/__init__.py +0 -0
  45. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/cli/__main__.py +0 -0
  46. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/cli/commands/check_config.py +0 -0
  47. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/cli/commands/quickstart.py +0 -0
  48. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/cli/commands/setup.py +0 -0
  49. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/cli/main.py +0 -0
  50. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/cli/terminal.py +0 -0
  51. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/console.py +0 -0
  52. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/context.py +0 -0
  53. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/context_dependent.py +0 -0
  54. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/__init__.py +0 -0
  55. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/agent_app.py +0 -0
  56. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/agent_types.py +0 -0
  57. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/direct_decorators.py +0 -0
  58. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/direct_factory.py +0 -0
  59. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/error_handling.py +0 -0
  60. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/exceptions.py +0 -0
  61. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/fastagent.py +0 -0
  62. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/mcp_content.py +0 -0
  63. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/prompt.py +0 -0
  64. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/request_params.py +0 -0
  65. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/core/validation.py +0 -0
  66. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/event_progress.py +0 -0
  67. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/executor/__init__.py +0 -0
  68. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/executor/decorator_registry.py +0 -0
  69. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/executor/executor.py +0 -0
  70. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/executor/task_registry.py +0 -0
  71. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/executor/workflow_signal.py +0 -0
  72. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/human_input/__init__.py +0 -0
  73. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/human_input/handler.py +0 -0
  74. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/human_input/types.py +0 -0
  75. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/__init__.py +0 -0
  76. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/augmented_llm.py +0 -0
  77. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/augmented_llm_passthrough.py +0 -0
  78. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/augmented_llm_playback.py +0 -0
  79. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/memory.py +0 -0
  80. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/model_factory.py +0 -0
  81. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/prompt_utils.py +0 -0
  82. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/provider_key_manager.py +0 -0
  83. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/provider_types.py +0 -0
  84. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/__init__.py +0 -0
  85. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/anthropic_utils.py +0 -0
  86. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/augmented_llm_anthropic.py +0 -0
  87. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/augmented_llm_deepseek.py +0 -0
  88. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/augmented_llm_openai.py +0 -0
  89. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/augmented_llm_openrouter.py +0 -0
  90. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/multipart_converter_anthropic.py +0 -0
  91. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/multipart_converter_openai.py +0 -0
  92. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/openai_multipart.py +0 -0
  93. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/openai_utils.py +0 -0
  94. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/sampling_converter_anthropic.py +0 -0
  95. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/providers/sampling_converter_openai.py +0 -0
  96. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/sampling_converter.py +0 -0
  97. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/llm/sampling_format_converter.py +0 -0
  98. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/logging/__init__.py +0 -0
  99. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/logging/events.py +0 -0
  100. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/logging/json_serializer.py +0 -0
  101. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/logging/listeners.py +0 -0
  102. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/logging/logger.py +0 -0
  103. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/logging/rich_progress.py +0 -0
  104. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/logging/tracing.py +0 -0
  105. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/logging/transport.py +0 -0
  106. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/__init__.py +0 -0
  107. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/gen_client.py +0 -0
  108. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/helpers/__init__.py +0 -0
  109. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/helpers/content_helpers.py +0 -0
  110. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/interfaces.py +0 -0
  111. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/logger_textio.py +0 -0
  112. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/mcp_agent_client_session.py +0 -0
  113. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/mcp_aggregator.py +0 -0
  114. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/mcp_connection_manager.py +0 -0
  115. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/mime_utils.py +0 -0
  116. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/prompt_message_multipart.py +0 -0
  117. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/prompt_render.py +0 -0
  118. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/prompt_serialization.py +0 -0
  119. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/prompts/__init__.py +0 -0
  120. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/prompts/__main__.py +0 -0
  121. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/prompts/prompt_constants.py +0 -0
  122. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/prompts/prompt_helpers.py +0 -0
  123. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/prompts/prompt_load.py +0 -0
  124. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/prompts/prompt_server.py +0 -0
  125. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/prompts/prompt_template.py +0 -0
  126. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/resource_utils.py +0 -0
  127. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp/sampling.py +0 -0
  128. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp_server/__init__.py +0 -0
  129. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp_server/agent_server.py +0 -0
  130. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/mcp_server_registry.py +0 -0
  131. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/progress_display.py +0 -0
  132. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/data-analysis/analysis-campaign.py +0 -0
  133. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/data-analysis/analysis.py +0 -0
  134. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/data-analysis/fastagent.config.yaml +0 -0
  135. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/data-analysis/mount-point/WA_Fn-UseC_-HR-Employee-Attrition.csv +0 -0
  136. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/in_dev/agent_build.py +0 -0
  137. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/in_dev/css-LICENSE.txt +0 -0
  138. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/in_dev/slides.py +0 -0
  139. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/internal/agent.py +0 -0
  140. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/internal/fastagent.config.yaml +0 -0
  141. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/internal/history_transfer.py +0 -0
  142. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/internal/job.py +0 -0
  143. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/internal/prompt_category.py +0 -0
  144. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/internal/prompt_sizing.py +0 -0
  145. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/internal/simple.txt +0 -0
  146. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/internal/sizer.py +0 -0
  147. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/internal/social.py +0 -0
  148. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/mcp/state-transfer/agent_one.py +0 -0
  149. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/mcp/state-transfer/agent_two.py +0 -0
  150. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/mcp/state-transfer/fastagent.config.yaml +0 -0
  151. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/mcp/state-transfer/fastagent.secrets.yaml.example +0 -0
  152. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/prompting/__init__.py +0 -0
  153. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/prompting/agent.py +0 -0
  154. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/prompting/delimited_prompt.txt +0 -0
  155. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/prompting/fastagent.config.yaml +0 -0
  156. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/prompting/image_server.py +0 -0
  157. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/prompting/prompt1.txt +0 -0
  158. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/prompting/work_with_image.py +0 -0
  159. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/researcher/fastagent.config.yaml +0 -0
  160. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/researcher/researcher-eval.py +0 -0
  161. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/researcher/researcher-imp.py +0 -0
  162. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/researcher/researcher.py +0 -0
  163. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/workflows/chaining.py +0 -0
  164. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/workflows/evaluator.py +0 -0
  165. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/workflows/fastagent.config.yaml +0 -0
  166. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/workflows/human_input.py +0 -0
  167. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/workflows/orchestrator.py +0 -0
  168. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/workflows/parallel.py +0 -0
  169. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/workflows/router.py +0 -0
  170. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/resources/examples/workflows/short_story.txt +0 -0
  171. {fast_agent_mcp-0.2.14 → fast_agent_mcp-0.2.16}/src/mcp_agent/ui/console_display.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fast-agent-mcp
3
- Version: 0.2.14
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,6 +1,6 @@
1
1
  [project]
2
2
  name = "fast-agent-mcp"
3
- version = "0.2.14"
3
+ version = "0.2.16"
4
4
  description = "Define, Prompt and Test MCP enabled Agents and Workflows"
5
5
  readme = "README.md"
6
6
  license = { file = "LICENSE" }
@@ -149,15 +149,16 @@ class GenericSettings(BaseModel):
149
149
  base_url: str | None = None
150
150
 
151
151
  model_config = ConfigDict(extra="allow", arbitrary_types_allowed=True)
152
-
152
+
153
153
 
154
154
  class OpenRouterSettings(BaseModel):
155
155
  """
156
156
  Settings for using OpenRouter models via its OpenAI-compatible API.
157
157
  """
158
+
158
159
  api_key: str | None = None
159
-
160
- base_url: str | None = None # Optional override, defaults handled in provider
160
+
161
+ base_url: str | None = None # Optional override, defaults handled in provider
161
162
 
162
163
  model_config = ConfigDict(extra="allow", arbitrary_types_allowed=True)
163
164
 
@@ -294,8 +295,6 @@ class Settings(BaseSettings):
294
295
  while current_dir != current_dir.parent:
295
296
  for filename in [
296
297
  "fastagent.config.yaml",
297
- "mcp-agent.config.yaml",
298
- "mcp_agent.config.yaml",
299
298
  ]:
300
299
  config_path = current_dir / filename
301
300
  if config_path.exists():
@@ -367,8 +366,6 @@ def get_settings(config_path: str | None = None) -> Settings:
367
366
  while current_dir != current_dir.parent and not found_secrets:
368
367
  for secrets_filename in [
369
368
  "fastagent.secrets.yaml",
370
- "mcp-agent.secrets.yaml",
371
- "mcp_agent.secrets.yaml",
372
369
  ]:
373
370
  secrets_file = current_dir / secrets_filename
374
371
  if secrets_file.exists():
@@ -14,6 +14,7 @@ from prompt_toolkit.key_binding import KeyBindings
14
14
  from prompt_toolkit.styles import Style
15
15
  from rich import print as rich_print
16
16
 
17
+ from mcp_agent.core.agent_types import AgentType
17
18
  from mcp_agent.core.exceptions import PromptExitError
18
19
 
19
20
  # Get the application version
@@ -86,7 +87,7 @@ class AgentCompleter(Completer):
86
87
  for agent in self.agents:
87
88
  if agent.lower().startswith(agent_name.lower()):
88
89
  # Get agent type or default to "Agent"
89
- agent_type = self.agent_types.get(agent, "Agent")
90
+ agent_type = self.agent_types.get(agent, AgentType.BASIC).value
90
91
  yield Completion(
91
92
  agent,
92
93
  start_position=-len(agent_name),
@@ -149,7 +150,7 @@ async def get_enhanced_input(
149
150
  show_stop_hint: bool = False,
150
151
  multiline: bool = False,
151
152
  available_agent_names: List[str] = None,
152
- agent_types: dict = None,
153
+ agent_types: dict[str, AgentType] = None,
153
154
  is_human_input: bool = False,
154
155
  toolbar_color: str = "ansiblue",
155
156
  ) -> str:
@@ -430,18 +431,18 @@ async def get_argument_input(
430
431
  async def handle_special_commands(command, agent_app=None):
431
432
  """
432
433
  Handle special input commands.
433
-
434
+
434
435
  Args:
435
436
  command: The command to handle, can be string or dictionary
436
437
  agent_app: Optional agent app reference
437
-
438
+
438
439
  Returns:
439
440
  True if command was handled, False if not, or a dict with action info
440
441
  """
441
442
  # Quick guard for empty or None commands
442
443
  if not command:
443
444
  return False
444
-
445
+
445
446
  # If command is already a dictionary, it has been pre-processed
446
447
  # Just return it directly (like when /prompts converts to select_prompt dict)
447
448
  if isinstance(command, dict):
@@ -20,6 +20,7 @@ from rich import print as rich_print
20
20
  from rich.console import Console
21
21
  from rich.table import Table
22
22
 
23
+ from mcp_agent.core.agent_types import AgentType
23
24
  from mcp_agent.core.enhanced_prompt import (
24
25
  get_argument_input,
25
26
  get_enhanced_input,
@@ -36,14 +37,14 @@ class InteractivePrompt:
36
37
  This is extracted from the original AgentApp implementation to support DirectAgentApp.
37
38
  """
38
39
 
39
- def __init__(self, agent_types: Optional[Dict[str, str]] = None) -> None:
40
+ def __init__(self, agent_types: Optional[Dict[str, AgentType]] = None) -> None:
40
41
  """
41
42
  Initialize the interactive prompt.
42
43
 
43
44
  Args:
44
45
  agent_types: Dictionary mapping agent names to their types for display
45
46
  """
46
- self.agent_types = agent_types or {}
47
+ self.agent_types: Dict[str, AgentType] = agent_types or {}
47
48
 
48
49
  async def prompt_loop(
49
50
  self,
@@ -97,7 +98,7 @@ class InteractivePrompt:
97
98
 
98
99
  # Handle special commands - pass "True" to enable agent switching
99
100
  command_result = await handle_special_commands(user_input, True)
100
-
101
+
101
102
  # Check if we should switch agents
102
103
  if isinstance(command_result, dict):
103
104
  if "switch_agent" in command_result:
@@ -113,11 +114,13 @@ class InteractivePrompt:
113
114
  # Use the list_prompts_func directly
114
115
  await self._list_prompts(list_prompts_func, agent)
115
116
  continue
116
- elif "select_prompt" in command_result and (list_prompts_func and apply_prompt_func):
117
+ elif "select_prompt" in command_result and (
118
+ list_prompts_func and apply_prompt_func
119
+ ):
117
120
  # Handle prompt selection, using both list_prompts and apply_prompt
118
121
  prompt_name = command_result.get("prompt_name")
119
122
  prompt_index = command_result.get("prompt_index")
120
-
123
+
121
124
  # If a specific index was provided (from /prompt <number>)
122
125
  if prompt_index is not None:
123
126
  # First get a list of all prompts to look up the index
@@ -125,20 +128,29 @@ class InteractivePrompt:
125
128
  if not all_prompts:
126
129
  rich_print("[yellow]No prompts available[/yellow]")
127
130
  continue
128
-
131
+
129
132
  # Check if the index is valid
130
133
  if 1 <= prompt_index <= len(all_prompts):
131
134
  # Get the prompt at the specified index (1-based to 0-based)
132
135
  selected_prompt = all_prompts[prompt_index - 1]
133
136
  # Use the already created namespaced_name to ensure consistency
134
- await self._select_prompt(list_prompts_func, apply_prompt_func, agent, selected_prompt["namespaced_name"])
137
+ await self._select_prompt(
138
+ list_prompts_func,
139
+ apply_prompt_func,
140
+ agent,
141
+ selected_prompt["namespaced_name"],
142
+ )
135
143
  else:
136
- rich_print(f"[red]Invalid prompt number: {prompt_index}. Valid range is 1-{len(all_prompts)}[/red]")
144
+ rich_print(
145
+ f"[red]Invalid prompt number: {prompt_index}. Valid range is 1-{len(all_prompts)}[/red]"
146
+ )
137
147
  # Show the prompt list for convenience
138
148
  await self._list_prompts(list_prompts_func, agent)
139
149
  else:
140
150
  # Use the name-based selection
141
- await self._select_prompt(list_prompts_func, apply_prompt_func, agent, prompt_name)
151
+ await self._select_prompt(
152
+ list_prompts_func, apply_prompt_func, agent, prompt_name
153
+ )
142
154
  continue
143
155
 
144
156
  # Skip further processing if command was handled
@@ -158,11 +170,11 @@ class InteractivePrompt:
158
170
  async def _get_all_prompts(self, list_prompts_func, agent_name):
159
171
  """
160
172
  Get a list of all available prompts.
161
-
173
+
162
174
  Args:
163
175
  list_prompts_func: Function to get available prompts
164
176
  agent_name: Name of the agent
165
-
177
+
166
178
  Returns:
167
179
  List of prompt info dictionaries, sorted by server and name
168
180
  """
@@ -171,7 +183,7 @@ class InteractivePrompt:
171
183
  # the agent_name parameter should never be used as a server name
172
184
  prompt_servers = await list_prompts_func(None)
173
185
  all_prompts = []
174
-
186
+
175
187
  # Process the returned prompt servers
176
188
  if prompt_servers:
177
189
  # First collect all prompts
@@ -179,44 +191,51 @@ class InteractivePrompt:
179
191
  if prompts_info and hasattr(prompts_info, "prompts") and prompts_info.prompts:
180
192
  for prompt in prompts_info.prompts:
181
193
  # Use the SEP constant for proper namespacing
182
- all_prompts.append({
183
- "server": server_name,
184
- "name": prompt.name,
185
- "namespaced_name": f"{server_name}{SEP}{prompt.name}",
186
- "description": getattr(prompt, "description", "No description"),
187
- "arg_count": len(getattr(prompt, "arguments", [])),
188
- "arguments": getattr(prompt, "arguments", [])
189
- })
194
+ all_prompts.append(
195
+ {
196
+ "server": server_name,
197
+ "name": prompt.name,
198
+ "namespaced_name": f"{server_name}{SEP}{prompt.name}",
199
+ "description": getattr(prompt, "description", "No description"),
200
+ "arg_count": len(getattr(prompt, "arguments", [])),
201
+ "arguments": getattr(prompt, "arguments", []),
202
+ }
203
+ )
190
204
  elif isinstance(prompts_info, list) and prompts_info:
191
205
  for prompt in prompts_info:
192
206
  if isinstance(prompt, dict) and "name" in prompt:
193
- all_prompts.append({
194
- "server": server_name,
195
- "name": prompt["name"],
196
- "namespaced_name": f"{server_name}{SEP}{prompt['name']}",
197
- "description": prompt.get("description", "No description"),
198
- "arg_count": len(prompt.get("arguments", [])),
199
- "arguments": prompt.get("arguments", [])
200
- })
207
+ all_prompts.append(
208
+ {
209
+ "server": server_name,
210
+ "name": prompt["name"],
211
+ "namespaced_name": f"{server_name}{SEP}{prompt['name']}",
212
+ "description": prompt.get("description", "No description"),
213
+ "arg_count": len(prompt.get("arguments", [])),
214
+ "arguments": prompt.get("arguments", []),
215
+ }
216
+ )
201
217
  else:
202
- all_prompts.append({
203
- "server": server_name,
204
- "name": str(prompt),
205
- "namespaced_name": f"{server_name}{SEP}{str(prompt)}",
206
- "description": "No description",
207
- "arg_count": 0,
208
- "arguments": []
209
- })
210
-
218
+ all_prompts.append(
219
+ {
220
+ "server": server_name,
221
+ "name": str(prompt),
222
+ "namespaced_name": f"{server_name}{SEP}{str(prompt)}",
223
+ "description": "No description",
224
+ "arg_count": 0,
225
+ "arguments": [],
226
+ }
227
+ )
228
+
211
229
  # Sort prompts by server and name for consistent ordering
212
230
  all_prompts.sort(key=lambda p: (p["server"], p["name"]))
213
-
231
+
214
232
  return all_prompts
215
-
233
+
216
234
  except Exception as e:
217
235
  import traceback
218
236
 
219
237
  from rich import print as rich_print
238
+
220
239
  rich_print(f"[red]Error getting prompts: {e}[/red]")
221
240
  rich_print(f"[dim]{traceback.format_exc()}[/dim]")
222
241
  return []
@@ -238,11 +257,11 @@ class InteractivePrompt:
238
257
  try:
239
258
  # Directly call the list_prompts function for this agent
240
259
  rich_print(f"\n[bold]Fetching prompts for agent [cyan]{agent_name}[/cyan]...[/bold]")
241
-
260
+
242
261
  # Get all prompts using the helper function - pass None as server name
243
262
  # to get prompts from all available servers
244
263
  all_prompts = await self._get_all_prompts(list_prompts_func, None)
245
-
264
+
246
265
  if all_prompts:
247
266
  # Create a table for better display
248
267
  table = Table(title="Available MCP Prompts")
@@ -251,7 +270,7 @@ class InteractivePrompt:
251
270
  table.add_column("Prompt Name", style="bright_blue")
252
271
  table.add_column("Description")
253
272
  table.add_column("Args", justify="center")
254
-
273
+
255
274
  # Add prompts to table
256
275
  for i, prompt in enumerate(all_prompts):
257
276
  table.add_row(
@@ -259,11 +278,11 @@ class InteractivePrompt:
259
278
  prompt["server"],
260
279
  prompt["name"],
261
280
  prompt["description"],
262
- str(prompt["arg_count"])
281
+ str(prompt["arg_count"]),
263
282
  )
264
-
283
+
265
284
  console.print(table)
266
-
285
+
267
286
  # Add usage instructions
268
287
  rich_print("\n[bold]Usage:[/bold]")
269
288
  rich_print(" • Use [cyan]/prompt <number>[/cyan] to select a prompt by number")
@@ -272,10 +291,13 @@ class InteractivePrompt:
272
291
  rich_print("[yellow]No prompts available[/yellow]")
273
292
  except Exception as e:
274
293
  import traceback
294
+
275
295
  rich_print(f"[red]Error listing prompts: {e}[/red]")
276
296
  rich_print(f"[dim]{traceback.format_exc()}[/dim]")
277
297
 
278
- async def _select_prompt(self, list_prompts_func, apply_prompt_func, agent_name, requested_name=None) -> None:
298
+ async def _select_prompt(
299
+ self, list_prompts_func, apply_prompt_func, agent_name, requested_name=None
300
+ ) -> None:
279
301
  """
280
302
  Select and apply a prompt.
281
303
 
@@ -293,7 +315,7 @@ class InteractivePrompt:
293
315
  try:
294
316
  # Get all available prompts directly from the list_prompts function
295
317
  rich_print(f"\n[bold]Fetching prompts for agent [cyan]{agent_name}[/cyan]...[/bold]")
296
- # IMPORTANT: list_prompts_func gets MCP server prompts, not agent prompts
318
+ # IMPORTANT: list_prompts_func gets MCP server prompts, not agent prompts
297
319
  # So we pass None to get prompts from all servers, not using agent_name as server name
298
320
  prompt_servers = await list_prompts_func(None)
299
321
 
@@ -514,9 +536,7 @@ class InteractivePrompt:
514
536
 
515
537
  # Apply the prompt
516
538
  namespaced_name = selected_prompt["namespaced_name"]
517
- rich_print(
518
- f"\n[bold]Applying prompt [cyan]{namespaced_name}[/cyan]...[/bold]"
519
- )
539
+ rich_print(f"\n[bold]Applying prompt [cyan]{namespaced_name}[/cyan]...[/bold]")
520
540
 
521
541
  # Call apply_prompt function with the prompt name and arguments
522
542
  await apply_prompt_func(namespaced_name, arg_values, agent_name)
@@ -10,8 +10,10 @@ DEFAULT_OLLAMA_API_KEY = "ollama"
10
10
 
11
11
 
12
12
  class GenericAugmentedLLM(OpenAIAugmentedLLM):
13
- def __init__(self, *args, provider=Provider.GENERIC, **kwargs) -> None:
14
- super().__init__(*args, **kwargs) # Properly pass args and kwargs to parent
13
+ def __init__(self, *args, **kwargs) -> None:
14
+ super().__init__(
15
+ *args, provider=Provider.GENERIC, **kwargs
16
+ ) # Properly pass args and kwargs to parent
15
17
 
16
18
  def _initialize_default_params(self, kwargs: dict) -> RequestParams:
17
19
  """Initialize Generic parameters"""
File without changes