agent-framework 0.0.0__tar.gz → 1.0.0__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 (1338) hide show
  1. agent_framework-1.0.0/.cspell.json +85 -0
  2. agent_framework-1.0.0/.env.example +47 -0
  3. agent_framework-1.0.0/.github/instructions/python.instructions.md +6 -0
  4. agent_framework-1.0.0/.github/skills/python-code-quality/SKILL.md +95 -0
  5. agent_framework-1.0.0/.github/skills/python-development/SKILL.md +114 -0
  6. agent_framework-1.0.0/.github/skills/python-feature-lifecycle/SKILL.md +238 -0
  7. agent_framework-1.0.0/.github/skills/python-package-management/SKILL.md +230 -0
  8. agent_framework-1.0.0/.github/skills/python-samples/SKILL.md +80 -0
  9. agent_framework-1.0.0/.github/skills/python-testing/SKILL.md +157 -0
  10. agent_framework-1.0.0/.pre-commit-config.yaml +71 -0
  11. agent_framework-1.0.0/.vscode/launch.json +34 -0
  12. agent_framework-1.0.0/.vscode/settings.json +39 -0
  13. agent_framework-1.0.0/.vscode/tasks.json +247 -0
  14. agent_framework-1.0.0/AGENTS.md +94 -0
  15. agent_framework-1.0.0/CHANGELOG.md +886 -0
  16. agent_framework-1.0.0/CODING_STANDARD.md +742 -0
  17. agent_framework-1.0.0/DEV_SETUP.md +425 -0
  18. agent_framework-1.0.0/LICENSE +21 -0
  19. agent_framework-1.0.0/PACKAGE_STATUS.md +71 -0
  20. agent_framework-1.0.0/PKG-INFO +286 -0
  21. agent_framework-1.0.0/README.md +261 -0
  22. agent_framework-1.0.0/agent_framework_meta/__init__.py +31 -0
  23. agent_framework-1.0.0/devsetup.sh +10 -0
  24. agent_framework-1.0.0/packages/a2a/AGENTS.md +23 -0
  25. agent_framework-1.0.0/packages/a2a/LICENSE +21 -0
  26. agent_framework-1.0.0/packages/a2a/README.md +20 -0
  27. agent_framework-1.0.0/packages/a2a/agent_framework_a2a/__init__.py +16 -0
  28. agent_framework-1.0.0/packages/a2a/agent_framework_a2a/_agent.py +734 -0
  29. agent_framework-1.0.0/packages/a2a/pyproject.toml +98 -0
  30. agent_framework-1.0.0/packages/a2a/tests/test_a2a_agent.py +1391 -0
  31. agent_framework-1.0.0/packages/ag-ui/AGENTS.md +45 -0
  32. agent_framework-1.0.0/packages/ag-ui/LICENSE +21 -0
  33. agent_framework-1.0.0/packages/ag-ui/README.md +195 -0
  34. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/__init__.py +38 -0
  35. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_agent.py +128 -0
  36. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_agent_run.py +1085 -0
  37. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_client.py +469 -0
  38. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_endpoint.py +150 -0
  39. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_event_converters.py +234 -0
  40. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_http_service.py +170 -0
  41. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_message_adapters.py +1034 -0
  42. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_orchestration/__init__.py +1 -0
  43. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_orchestration/_helpers.py +247 -0
  44. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_orchestration/_predictive_state.py +232 -0
  45. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_orchestration/_tooling.py +126 -0
  46. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_run_common.py +568 -0
  47. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_types.py +171 -0
  48. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_utils.py +276 -0
  49. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_workflow.py +82 -0
  50. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_workflow_run.py +741 -0
  51. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/py.typed +1 -0
  52. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/.env.example +3 -0
  53. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/.vscode/settings.json +5 -0
  54. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/README.md +336 -0
  55. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/__init__.py +7 -0
  56. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/__main__.py +8 -0
  57. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/__init__.py +27 -0
  58. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/document_writer_agent.py +69 -0
  59. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/human_in_the_loop_agent.py +86 -0
  60. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/recipe_agent.py +134 -0
  61. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/research_assistant_agent.py +111 -0
  62. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/simple_agent.py +23 -0
  63. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/subgraphs_agent.py +405 -0
  64. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/task_planner_agent.py +84 -0
  65. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/task_steps_agent.py +338 -0
  66. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/ui_generator_agent.py +193 -0
  67. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/weather_agent.py +81 -0
  68. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/server/__init__.py +1 -0
  69. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/server/api/backend_tool_rendering.py +28 -0
  70. agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/server/main.py +164 -0
  71. agent_framework-1.0.0/packages/ag-ui/getting_started/README.md +460 -0
  72. agent_framework-1.0.0/packages/ag-ui/getting_started/client.py +78 -0
  73. agent_framework-1.0.0/packages/ag-ui/getting_started/client_advanced.py +245 -0
  74. agent_framework-1.0.0/packages/ag-ui/getting_started/client_with_agent.py +150 -0
  75. agent_framework-1.0.0/packages/ag-ui/getting_started/server.py +144 -0
  76. agent_framework-1.0.0/packages/ag-ui/pyproject.toml +81 -0
  77. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/conftest.py +335 -0
  78. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/event_stream.py +175 -0
  79. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/__init__.py +1 -0
  80. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/conftest.py +13 -0
  81. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_agentic_chat.py +140 -0
  82. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_backend_tools.py +236 -0
  83. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_generative_ui_agent.py +91 -0
  84. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_generative_ui_tool.py +135 -0
  85. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_hitl.py +196 -0
  86. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_predictive_state.py +130 -0
  87. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_shared_state.py +110 -0
  88. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_subgraphs.py +211 -0
  89. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_workflow.py +962 -0
  90. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/sse_helpers.py +72 -0
  91. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_ag_ui_client.py +461 -0
  92. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_agent_wrapper_comprehensive.py +1407 -0
  93. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_approval_result_event.py +450 -0
  94. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_endpoint.py +605 -0
  95. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_event_converters.py +338 -0
  96. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_helpers.py +502 -0
  97. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_http_round_trip.py +346 -0
  98. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_http_service.py +250 -0
  99. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_message_adapters.py +1762 -0
  100. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_message_hygiene.py +402 -0
  101. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_multi_turn.py +332 -0
  102. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_predictive_state.py +320 -0
  103. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_public_exports.py +24 -0
  104. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_run.py +1503 -0
  105. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_run_common.py +122 -0
  106. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_service_thread_id.py +82 -0
  107. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_structured_output.py +263 -0
  108. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_subgraphs_example_agent.py +238 -0
  109. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_tooling.py +231 -0
  110. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_types.py +252 -0
  111. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_utils.py +529 -0
  112. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_workflow_agent.py +112 -0
  113. agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_workflow_run.py +1674 -0
  114. agent_framework-1.0.0/packages/anthropic/AGENTS.md +28 -0
  115. agent_framework-1.0.0/packages/anthropic/LICENSE +21 -0
  116. agent_framework-1.0.0/packages/anthropic/README.md +24 -0
  117. agent_framework-1.0.0/packages/anthropic/agent_framework_anthropic/__init__.py +26 -0
  118. agent_framework-1.0.0/packages/anthropic/agent_framework_anthropic/_bedrock_client.py +168 -0
  119. agent_framework-1.0.0/packages/anthropic/agent_framework_anthropic/_chat_client.py +1485 -0
  120. agent_framework-1.0.0/packages/anthropic/agent_framework_anthropic/_foundry_client.py +166 -0
  121. agent_framework-1.0.0/packages/anthropic/agent_framework_anthropic/_vertex_client.py +160 -0
  122. agent_framework-1.0.0/packages/anthropic/pyproject.toml +98 -0
  123. agent_framework-1.0.0/packages/anthropic/tests/assets/sample_image.jpg +0 -0
  124. agent_framework-1.0.0/packages/anthropic/tests/conftest.py +56 -0
  125. agent_framework-1.0.0/packages/anthropic/tests/test_anthropic_client.py +2695 -0
  126. agent_framework-1.0.0/packages/anthropic/tests/test_anthropic_provider_clients.py +156 -0
  127. agent_framework-1.0.0/packages/azure-ai-search/AGENTS.md +28 -0
  128. agent_framework-1.0.0/packages/azure-ai-search/LICENSE +21 -0
  129. agent_framework-1.0.0/packages/azure-ai-search/README.md +23 -0
  130. agent_framework-1.0.0/packages/azure-ai-search/agent_framework_azure_ai_search/__init__.py +16 -0
  131. agent_framework-1.0.0/packages/azure-ai-search/agent_framework_azure_ai_search/_context_provider.py +998 -0
  132. agent_framework-1.0.0/packages/azure-ai-search/pyproject.toml +100 -0
  133. agent_framework-1.0.0/packages/azure-ai-search/tests/test_aisearch_context_provider.py +1689 -0
  134. agent_framework-1.0.0/packages/azure-cosmos/AGENTS.md +30 -0
  135. agent_framework-1.0.0/packages/azure-cosmos/LICENSE +21 -0
  136. agent_framework-1.0.0/packages/azure-cosmos/README.md +47 -0
  137. agent_framework-1.0.0/packages/azure-cosmos/agent_framework_azure_cosmos/__init__.py +15 -0
  138. agent_framework-1.0.0/packages/azure-cosmos/agent_framework_azure_cosmos/_history_provider.py +285 -0
  139. agent_framework-1.0.0/packages/azure-cosmos/pyproject.toml +101 -0
  140. agent_framework-1.0.0/packages/azure-cosmos/tests/test_cosmos_history_provider.py +411 -0
  141. agent_framework-1.0.0/packages/azurefunctions/AGENTS.md +23 -0
  142. agent_framework-1.0.0/packages/azurefunctions/LICENSE +21 -0
  143. agent_framework-1.0.0/packages/azurefunctions/README.md +28 -0
  144. agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/__init__.py +15 -0
  145. agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_app.py +1400 -0
  146. agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_context.py +171 -0
  147. agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_entities.py +125 -0
  148. agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_errors.py +11 -0
  149. agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_orchestration.py +222 -0
  150. agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_serialization.py +183 -0
  151. agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_workflow.py +993 -0
  152. agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/py.typed +0 -0
  153. agent_framework-1.0.0/packages/azurefunctions/pyproject.toml +104 -0
  154. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/.env.example +10 -0
  155. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/README.md +81 -0
  156. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/conftest.py +577 -0
  157. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_01_single_agent.py +115 -0
  158. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_02_multi_agent.py +64 -0
  159. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_03_reliable_streaming.py +123 -0
  160. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_04_single_agent_orchestration_chaining.py +57 -0
  161. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_05_multi_agent_orchestration_concurrency.py +59 -0
  162. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_06_multi_agent_orchestration_conditionals.py +77 -0
  163. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_07_single_agent_orchestration_hitl.py +185 -0
  164. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_09_workflow_shared_state.py +97 -0
  165. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_10_workflow_no_shared_state.py +113 -0
  166. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_11_workflow_parallel.py +144 -0
  167. agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_12_workflow_hitl.py +216 -0
  168. agent_framework-1.0.0/packages/azurefunctions/tests/test_app.py +1735 -0
  169. agent_framework-1.0.0/packages/azurefunctions/tests/test_entities.py +313 -0
  170. agent_framework-1.0.0/packages/azurefunctions/tests/test_errors.py +38 -0
  171. agent_framework-1.0.0/packages/azurefunctions/tests/test_func_utils.py +450 -0
  172. agent_framework-1.0.0/packages/azurefunctions/tests/test_multi_agent.py +155 -0
  173. agent_framework-1.0.0/packages/azurefunctions/tests/test_orchestration.py +399 -0
  174. agent_framework-1.0.0/packages/azurefunctions/tests/test_workflow.py +328 -0
  175. agent_framework-1.0.0/packages/bedrock/AGENTS.md +25 -0
  176. agent_framework-1.0.0/packages/bedrock/LICENSE +21 -0
  177. agent_framework-1.0.0/packages/bedrock/README.md +19 -0
  178. agent_framework-1.0.0/packages/bedrock/agent_framework_bedrock/__init__.py +22 -0
  179. agent_framework-1.0.0/packages/bedrock/agent_framework_bedrock/_chat_client.py +757 -0
  180. agent_framework-1.0.0/packages/bedrock/agent_framework_bedrock/_embedding_client.py +294 -0
  181. agent_framework-1.0.0/packages/bedrock/pyproject.toml +97 -0
  182. agent_framework-1.0.0/packages/bedrock/tests/bedrock/test_bedrock_embedding_client.py +169 -0
  183. agent_framework-1.0.0/packages/bedrock/tests/test_bedrock_client.py +139 -0
  184. agent_framework-1.0.0/packages/bedrock/tests/test_bedrock_settings.py +136 -0
  185. agent_framework-1.0.0/packages/chatkit/.gitignore +3 -0
  186. agent_framework-1.0.0/packages/chatkit/AGENTS.md +27 -0
  187. agent_framework-1.0.0/packages/chatkit/LICENSE +21 -0
  188. agent_framework-1.0.0/packages/chatkit/README.md +127 -0
  189. agent_framework-1.0.0/packages/chatkit/agent_framework_chatkit/__init__.py +25 -0
  190. agent_framework-1.0.0/packages/chatkit/agent_framework_chatkit/_converter.py +608 -0
  191. agent_framework-1.0.0/packages/chatkit/agent_framework_chatkit/_streaming.py +104 -0
  192. agent_framework-1.0.0/packages/chatkit/agent_framework_chatkit/py.typed +0 -0
  193. agent_framework-1.0.0/packages/chatkit/pyproject.toml +99 -0
  194. agent_framework-1.0.0/packages/chatkit/tests/test_converter.py +422 -0
  195. agent_framework-1.0.0/packages/chatkit/tests/test_streaming.py +143 -0
  196. agent_framework-1.0.0/packages/claude/AGENTS.md +28 -0
  197. agent_framework-1.0.0/packages/claude/LICENSE +21 -0
  198. agent_framework-1.0.0/packages/claude/README.md +11 -0
  199. agent_framework-1.0.0/packages/claude/agent_framework_claude/__init__.py +18 -0
  200. agent_framework-1.0.0/packages/claude/agent_framework_claude/_agent.py +817 -0
  201. agent_framework-1.0.0/packages/claude/pyproject.toml +99 -0
  202. agent_framework-1.0.0/packages/claude/tests/test_claude_agent.py +1135 -0
  203. agent_framework-1.0.0/packages/copilotstudio/AGENTS.md +28 -0
  204. agent_framework-1.0.0/packages/copilotstudio/LICENSE +21 -0
  205. agent_framework-1.0.0/packages/copilotstudio/README.md +97 -0
  206. agent_framework-1.0.0/packages/copilotstudio/agent_framework_copilotstudio/__init__.py +13 -0
  207. agent_framework-1.0.0/packages/copilotstudio/agent_framework_copilotstudio/_acquire_token.py +95 -0
  208. agent_framework-1.0.0/packages/copilotstudio/agent_framework_copilotstudio/_agent.py +338 -0
  209. agent_framework-1.0.0/packages/copilotstudio/pyproject.toml +98 -0
  210. agent_framework-1.0.0/packages/copilotstudio/tests/conftest.py +91 -0
  211. agent_framework-1.0.0/packages/copilotstudio/tests/test_acquire_token.py +243 -0
  212. agent_framework-1.0.0/packages/copilotstudio/tests/test_copilot_agent.py +320 -0
  213. agent_framework-1.0.0/packages/core/.vscode/launch.json +15 -0
  214. agent_framework-1.0.0/packages/core/AGENTS.md +143 -0
  215. agent_framework-1.0.0/packages/core/LICENSE +21 -0
  216. agent_framework-1.0.0/packages/core/README.md +225 -0
  217. agent_framework-1.0.0/packages/core/agent_framework/__init__.py +446 -0
  218. agent_framework-1.0.0/packages/core/agent_framework/_agents.py +1742 -0
  219. agent_framework-1.0.0/packages/core/agent_framework/_clients.py +966 -0
  220. agent_framework-1.0.0/packages/core/agent_framework/_compaction.py +1313 -0
  221. agent_framework-1.0.0/packages/core/agent_framework/_docstrings.py +110 -0
  222. agent_framework-1.0.0/packages/core/agent_framework/_evaluation.py +1923 -0
  223. agent_framework-1.0.0/packages/core/agent_framework/_feature_stage.py +279 -0
  224. agent_framework-1.0.0/packages/core/agent_framework/_mcp.py +1682 -0
  225. agent_framework-1.0.0/packages/core/agent_framework/_middleware.py +1448 -0
  226. agent_framework-1.0.0/packages/core/agent_framework/_serialization.py +616 -0
  227. agent_framework-1.0.0/packages/core/agent_framework/_sessions.py +839 -0
  228. agent_framework-1.0.0/packages/core/agent_framework/_settings.py +293 -0
  229. agent_framework-1.0.0/packages/core/agent_framework/_skills.py +1546 -0
  230. agent_framework-1.0.0/packages/core/agent_framework/_telemetry.py +68 -0
  231. agent_framework-1.0.0/packages/core/agent_framework/_tools.py +2489 -0
  232. agent_framework-1.0.0/packages/core/agent_framework/_types.py +3597 -0
  233. agent_framework-1.0.0/packages/core/agent_framework/_workflows/__init__.py +1 -0
  234. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_agent.py +953 -0
  235. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_agent_executor.py +482 -0
  236. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_agent_utils.py +17 -0
  237. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_checkpoint.py +423 -0
  238. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_checkpoint_encoding.py +167 -0
  239. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_const.py +24 -0
  240. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_conversation_history.py +26 -0
  241. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_edge.py +945 -0
  242. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_edge_runner.py +401 -0
  243. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_events.py +425 -0
  244. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_executor.py +754 -0
  245. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_function_executor.py +348 -0
  246. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_message_utils.py +42 -0
  247. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_model_utils.py +51 -0
  248. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_request_info_mixin.py +369 -0
  249. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_runner.py +374 -0
  250. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_runner_context.py +482 -0
  251. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_state.py +127 -0
  252. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_typing_utils.py +379 -0
  253. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_validation.py +436 -0
  254. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_viz.py +442 -0
  255. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_workflow.py +938 -0
  256. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_workflow_builder.py +692 -0
  257. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_workflow_context.py +453 -0
  258. agent_framework-1.0.0/packages/core/agent_framework/_workflows/_workflow_executor.py +681 -0
  259. agent_framework-1.0.0/packages/core/agent_framework/a2a/__init__.py +32 -0
  260. agent_framework-1.0.0/packages/core/agent_framework/a2a/__init__.pyi +9 -0
  261. agent_framework-1.0.0/packages/core/agent_framework/ag_ui/__init__.py +41 -0
  262. agent_framework-1.0.0/packages/core/agent_framework/ag_ui/__init__.pyi +21 -0
  263. agent_framework-1.0.0/packages/core/agent_framework/amazon/__init__.py +50 -0
  264. agent_framework-1.0.0/packages/core/agent_framework/amazon/__init__.pyi +24 -0
  265. agent_framework-1.0.0/packages/core/agent_framework/anthropic/__init__.py +56 -0
  266. agent_framework-1.0.0/packages/core/agent_framework/anthropic/__init__.pyi +28 -0
  267. agent_framework-1.0.0/packages/core/agent_framework/azure/__init__.py +39 -0
  268. agent_framework-1.0.0/packages/core/agent_framework/azure/__init__.pyi +32 -0
  269. agent_framework-1.0.0/packages/core/agent_framework/chatkit/__init__.py +34 -0
  270. agent_framework-1.0.0/packages/core/agent_framework/chatkit/__init__.pyi +13 -0
  271. agent_framework-1.0.0/packages/core/agent_framework/declarative/__init__.py +47 -0
  272. agent_framework-1.0.0/packages/core/agent_framework/declarative/__init__.pyi +29 -0
  273. agent_framework-1.0.0/packages/core/agent_framework/devui/__init__.py +48 -0
  274. agent_framework-1.0.0/packages/core/agent_framework/devui/__init__.pyi +27 -0
  275. agent_framework-1.0.0/packages/core/agent_framework/exceptions.py +262 -0
  276. agent_framework-1.0.0/packages/core/agent_framework/foundry/__init__.py +51 -0
  277. agent_framework-1.0.0/packages/core/agent_framework/foundry/__init__.pyi +49 -0
  278. agent_framework-1.0.0/packages/core/agent_framework/github/__init__.py +38 -0
  279. agent_framework-1.0.0/packages/core/agent_framework/github/__init__.pyi +13 -0
  280. agent_framework-1.0.0/packages/core/agent_framework/google/__init__.py +35 -0
  281. agent_framework-1.0.0/packages/core/agent_framework/google/__init__.pyi +8 -0
  282. agent_framework-1.0.0/packages/core/agent_framework/lab/__init__.py +10 -0
  283. agent_framework-1.0.0/packages/core/agent_framework/mem0/__init__.py +32 -0
  284. agent_framework-1.0.0/packages/core/agent_framework/mem0/__init__.pyi +9 -0
  285. agent_framework-1.0.0/packages/core/agent_framework/microsoft/__init__.py +59 -0
  286. agent_framework-1.0.0/packages/core/agent_framework/microsoft/__init__.pyi +35 -0
  287. agent_framework-1.0.0/packages/core/agent_framework/observability.py +2255 -0
  288. agent_framework-1.0.0/packages/core/agent_framework/ollama/__init__.py +44 -0
  289. agent_framework-1.0.0/packages/core/agent_framework/ollama/__init__.pyi +19 -0
  290. agent_framework-1.0.0/packages/core/agent_framework/openai/__init__.py +47 -0
  291. agent_framework-1.0.0/packages/core/agent_framework/openai/__init__.pyi +34 -0
  292. agent_framework-1.0.0/packages/core/agent_framework/orchestrations/__init__.py +84 -0
  293. agent_framework-1.0.0/packages/core/agent_framework/orchestrations/__init__.pyi +75 -0
  294. agent_framework-1.0.0/packages/core/agent_framework/py.typed +0 -0
  295. agent_framework-1.0.0/packages/core/agent_framework/redis/__init__.py +33 -0
  296. agent_framework-1.0.0/packages/core/agent_framework/redis/__init__.pyi +11 -0
  297. agent_framework-1.0.0/packages/core/pyproject.toml +130 -0
  298. agent_framework-1.0.0/packages/core/tests/__init__.py +0 -0
  299. agent_framework-1.0.0/packages/core/tests/assets/sample_image.jpg +0 -0
  300. agent_framework-1.0.0/packages/core/tests/conftest.py +89 -0
  301. agent_framework-1.0.0/packages/core/tests/core/__init__.py +0 -0
  302. agent_framework-1.0.0/packages/core/tests/core/conftest.py +329 -0
  303. agent_framework-1.0.0/packages/core/tests/core/test_agents.py +2655 -0
  304. agent_framework-1.0.0/packages/core/tests/core/test_as_tool_kwargs_propagation.py +371 -0
  305. agent_framework-1.0.0/packages/core/tests/core/test_azure_namespace.py +10 -0
  306. agent_framework-1.0.0/packages/core/tests/core/test_clients.py +306 -0
  307. agent_framework-1.0.0/packages/core/tests/core/test_compaction.py +954 -0
  308. agent_framework-1.0.0/packages/core/tests/core/test_docstrings.py +244 -0
  309. agent_framework-1.0.0/packages/core/tests/core/test_embedding_client.py +104 -0
  310. agent_framework-1.0.0/packages/core/tests/core/test_embedding_types.py +182 -0
  311. agent_framework-1.0.0/packages/core/tests/core/test_feature_stage.py +427 -0
  312. agent_framework-1.0.0/packages/core/tests/core/test_foundry_namespace.py +24 -0
  313. agent_framework-1.0.0/packages/core/tests/core/test_function_invocation_logic.py +3809 -0
  314. agent_framework-1.0.0/packages/core/tests/core/test_local_eval.py +1028 -0
  315. agent_framework-1.0.0/packages/core/tests/core/test_mcp.py +4180 -0
  316. agent_framework-1.0.0/packages/core/tests/core/test_middleware.py +1730 -0
  317. agent_framework-1.0.0/packages/core/tests/core/test_middleware_context_result.py +450 -0
  318. agent_framework-1.0.0/packages/core/tests/core/test_middleware_with_agent.py +2304 -0
  319. agent_framework-1.0.0/packages/core/tests/core/test_middleware_with_chat.py +729 -0
  320. agent_framework-1.0.0/packages/core/tests/core/test_observability.py +3315 -0
  321. agent_framework-1.0.0/packages/core/tests/core/test_optional_dependencies.py +181 -0
  322. agent_framework-1.0.0/packages/core/tests/core/test_serializable_mixin.py +529 -0
  323. agent_framework-1.0.0/packages/core/tests/core/test_sessions.py +507 -0
  324. agent_framework-1.0.0/packages/core/tests/core/test_settings.py +348 -0
  325. agent_framework-1.0.0/packages/core/tests/core/test_skills.py +3133 -0
  326. agent_framework-1.0.0/packages/core/tests/core/test_telemetry.py +98 -0
  327. agent_framework-1.0.0/packages/core/tests/core/test_tools.py +1132 -0
  328. agent_framework-1.0.0/packages/core/tests/core/test_tools_future_annotations.py +134 -0
  329. agent_framework-1.0.0/packages/core/tests/core/test_types.py +4154 -0
  330. agent_framework-1.0.0/packages/core/tests/core/utils.py +12 -0
  331. agent_framework-1.0.0/packages/core/tests/workflow/__init__.py +1 -0
  332. agent_framework-1.0.0/packages/core/tests/workflow/test_agent_executor.py +701 -0
  333. agent_framework-1.0.0/packages/core/tests/workflow/test_agent_executor_tool_calls.py +614 -0
  334. agent_framework-1.0.0/packages/core/tests/workflow/test_agent_run_event_typing.py +38 -0
  335. agent_framework-1.0.0/packages/core/tests/workflow/test_agent_utils.py +79 -0
  336. agent_framework-1.0.0/packages/core/tests/workflow/test_checkpoint.py +1442 -0
  337. agent_framework-1.0.0/packages/core/tests/workflow/test_checkpoint_decode.py +251 -0
  338. agent_framework-1.0.0/packages/core/tests/workflow/test_checkpoint_encode.py +315 -0
  339. agent_framework-1.0.0/packages/core/tests/workflow/test_checkpoint_validation.py +168 -0
  340. agent_framework-1.0.0/packages/core/tests/workflow/test_edge.py +1392 -0
  341. agent_framework-1.0.0/packages/core/tests/workflow/test_executor.py +921 -0
  342. agent_framework-1.0.0/packages/core/tests/workflow/test_executor_future.py +124 -0
  343. agent_framework-1.0.0/packages/core/tests/workflow/test_full_conversation.py +480 -0
  344. agent_framework-1.0.0/packages/core/tests/workflow/test_function_executor.py +897 -0
  345. agent_framework-1.0.0/packages/core/tests/workflow/test_function_executor_future.py +39 -0
  346. agent_framework-1.0.0/packages/core/tests/workflow/test_request_info_and_response.py +324 -0
  347. agent_framework-1.0.0/packages/core/tests/workflow/test_request_info_event_rehydrate.py +357 -0
  348. agent_framework-1.0.0/packages/core/tests/workflow/test_request_info_mixin.py +954 -0
  349. agent_framework-1.0.0/packages/core/tests/workflow/test_runner.py +1000 -0
  350. agent_framework-1.0.0/packages/core/tests/workflow/test_serialization.py +801 -0
  351. agent_framework-1.0.0/packages/core/tests/workflow/test_state.py +303 -0
  352. agent_framework-1.0.0/packages/core/tests/workflow/test_sub_workflow.py +619 -0
  353. agent_framework-1.0.0/packages/core/tests/workflow/test_typing_utils.py +492 -0
  354. agent_framework-1.0.0/packages/core/tests/workflow/test_validation.py +677 -0
  355. agent_framework-1.0.0/packages/core/tests/workflow/test_viz.py +410 -0
  356. agent_framework-1.0.0/packages/core/tests/workflow/test_workflow.py +1221 -0
  357. agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_agent.py +1428 -0
  358. agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_builder.py +380 -0
  359. agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_context.py +277 -0
  360. agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_kwargs.py +1025 -0
  361. agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_observability.py +505 -0
  362. agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_states.py +220 -0
  363. agent_framework-1.0.0/packages/declarative/AGENTS.md +38 -0
  364. agent_framework-1.0.0/packages/declarative/LICENSE +21 -0
  365. agent_framework-1.0.0/packages/declarative/README.md +11 -0
  366. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/__init__.py +34 -0
  367. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_loader.py +860 -0
  368. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_models.py +1137 -0
  369. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/__init__.py +143 -0
  370. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_declarative_base.py +906 -0
  371. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_declarative_builder.py +1015 -0
  372. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_executors_agents.py +1025 -0
  373. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_executors_basic.py +639 -0
  374. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_executors_control_flow.py +549 -0
  375. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_executors_external_input.py +344 -0
  376. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_executors_tools.py +713 -0
  377. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_factory.py +745 -0
  378. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_powerfx_functions.py +498 -0
  379. agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_state.py +650 -0
  380. agent_framework-1.0.0/packages/declarative/pyproject.toml +105 -0
  381. agent_framework-1.0.0/packages/declarative/tests/conftest.py +20 -0
  382. agent_framework-1.0.0/packages/declarative/tests/test_declarative_loader.py +1480 -0
  383. agent_framework-1.0.0/packages/declarative/tests/test_declarative_models.py +1195 -0
  384. agent_framework-1.0.0/packages/declarative/tests/test_function_tool_executor.py +1378 -0
  385. agent_framework-1.0.0/packages/declarative/tests/test_graph_coverage.py +2934 -0
  386. agent_framework-1.0.0/packages/declarative/tests/test_graph_executors.py +1511 -0
  387. agent_framework-1.0.0/packages/declarative/tests/test_graph_workflow_integration.py +346 -0
  388. agent_framework-1.0.0/packages/declarative/tests/test_powerfx_functions.py +680 -0
  389. agent_framework-1.0.0/packages/declarative/tests/test_powerfx_yaml_compatibility.py +611 -0
  390. agent_framework-1.0.0/packages/declarative/tests/test_workflow_factory.py +972 -0
  391. agent_framework-1.0.0/packages/declarative/tests/test_workflow_samples_integration.py +237 -0
  392. agent_framework-1.0.0/packages/declarative/tests/test_workflow_state.py +584 -0
  393. agent_framework-1.0.0/packages/devui/.gitignore +19 -0
  394. agent_framework-1.0.0/packages/devui/AGENTS.md +43 -0
  395. agent_framework-1.0.0/packages/devui/LICENSE +21 -0
  396. agent_framework-1.0.0/packages/devui/README.md +380 -0
  397. agent_framework-1.0.0/packages/devui/agent_framework_devui/__init__.py +267 -0
  398. agent_framework-1.0.0/packages/devui/agent_framework_devui/_cli.py +201 -0
  399. agent_framework-1.0.0/packages/devui/agent_framework_devui/_conversations.py +717 -0
  400. agent_framework-1.0.0/packages/devui/agent_framework_devui/_deployment.py +604 -0
  401. agent_framework-1.0.0/packages/devui/agent_framework_devui/_discovery.py +968 -0
  402. agent_framework-1.0.0/packages/devui/agent_framework_devui/_executor.py +1118 -0
  403. agent_framework-1.0.0/packages/devui/agent_framework_devui/_mapper.py +1834 -0
  404. agent_framework-1.0.0/packages/devui/agent_framework_devui/_openai/__init__.py +9 -0
  405. agent_framework-1.0.0/packages/devui/agent_framework_devui/_openai/_executor.py +288 -0
  406. agent_framework-1.0.0/packages/devui/agent_framework_devui/_server.py +1394 -0
  407. agent_framework-1.0.0/packages/devui/agent_framework_devui/_session.py +216 -0
  408. agent_framework-1.0.0/packages/devui/agent_framework_devui/_tracing.py +168 -0
  409. agent_framework-1.0.0/packages/devui/agent_framework_devui/_utils.py +685 -0
  410. agent_framework-1.0.0/packages/devui/agent_framework_devui/models/__init__.py +94 -0
  411. agent_framework-1.0.0/packages/devui/agent_framework_devui/models/_discovery_models.py +204 -0
  412. agent_framework-1.0.0/packages/devui/agent_framework_devui/models/_openai_custom.py +411 -0
  413. agent_framework-1.0.0/packages/devui/agent_framework_devui/ui/agentframework.svg +33 -0
  414. agent_framework-1.0.0/packages/devui/agent_framework_devui/ui/assets/index.css +1 -0
  415. agent_framework-1.0.0/packages/devui/agent_framework_devui/ui/assets/index.js +619 -0
  416. agent_framework-1.0.0/packages/devui/agent_framework_devui/ui/index.html +14 -0
  417. agent_framework-1.0.0/packages/devui/dev.md +164 -0
  418. agent_framework-1.0.0/packages/devui/docs/devuiscreen.png +0 -0
  419. agent_framework-1.0.0/packages/devui/frontend/.gitignore +23 -0
  420. agent_framework-1.0.0/packages/devui/frontend/README.md +81 -0
  421. agent_framework-1.0.0/packages/devui/frontend/components.json +21 -0
  422. agent_framework-1.0.0/packages/devui/frontend/eslint.config.js +31 -0
  423. agent_framework-1.0.0/packages/devui/frontend/index.html +13 -0
  424. agent_framework-1.0.0/packages/devui/frontend/package-lock.json +5400 -0
  425. agent_framework-1.0.0/packages/devui/frontend/package.json +50 -0
  426. agent_framework-1.0.0/packages/devui/frontend/public/agentframework.svg +33 -0
  427. agent_framework-1.0.0/packages/devui/frontend/src/App.css +42 -0
  428. agent_framework-1.0.0/packages/devui/frontend/src/App.tsx +681 -0
  429. agent_framework-1.0.0/packages/devui/frontend/src/assets/react.svg +1 -0
  430. agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/agent-details-modal.tsx +215 -0
  431. agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/agent-view.tsx +2111 -0
  432. agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/context-inspector.tsx +949 -0
  433. agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/index.ts +7 -0
  434. agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/message-renderers/OpenAIContentRenderer.tsx +481 -0
  435. agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/message-renderers/OpenAIMessageRenderer.tsx +77 -0
  436. agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/message-renderers/index.ts +7 -0
  437. agent_framework-1.0.0/packages/devui/frontend/src/components/features/gallery/gallery-view.tsx +312 -0
  438. agent_framework-1.0.0/packages/devui/frontend/src/components/features/gallery/index.ts +5 -0
  439. agent_framework-1.0.0/packages/devui/frontend/src/components/features/gallery/setup-instructions-modal.tsx +207 -0
  440. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/checkpoint-info-modal.tsx +395 -0
  441. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/execution-timeline.tsx +671 -0
  442. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/executor-node.tsx +220 -0
  443. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/hil-timeline-item.tsx +153 -0
  444. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/index.ts +22 -0
  445. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/run-workflow-button.tsx +427 -0
  446. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/schema-form-renderer.tsx +604 -0
  447. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/self-loop-edge.tsx +56 -0
  448. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/workflow-details-modal.tsx +169 -0
  449. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/workflow-flow.tsx +592 -0
  450. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/workflow-input-form.tsx +289 -0
  451. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/workflow-session-manager.tsx +225 -0
  452. agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/workflow-view.tsx +1621 -0
  453. agent_framework-1.0.0/packages/devui/frontend/src/components/layout/app-header.tsx +111 -0
  454. agent_framework-1.0.0/packages/devui/frontend/src/components/layout/debug-panel.tsx +1825 -0
  455. agent_framework-1.0.0/packages/devui/frontend/src/components/layout/deployment-modal.tsx +861 -0
  456. agent_framework-1.0.0/packages/devui/frontend/src/components/layout/entity-selector.tsx +229 -0
  457. agent_framework-1.0.0/packages/devui/frontend/src/components/layout/index.ts +9 -0
  458. agent_framework-1.0.0/packages/devui/frontend/src/components/layout/settings-modal.tsx +720 -0
  459. agent_framework-1.0.0/packages/devui/frontend/src/components/mode-toggle.tsx +39 -0
  460. agent_framework-1.0.0/packages/devui/frontend/src/components/theme-provider.tsx +33 -0
  461. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/alert.tsx +48 -0
  462. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/attachment-gallery.tsx +123 -0
  463. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/badge.tsx +36 -0
  464. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/button.tsx +59 -0
  465. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/card.tsx +92 -0
  466. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/chat-message-input.tsx +471 -0
  467. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/checkbox.tsx +32 -0
  468. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/dialog.tsx +126 -0
  469. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/dropdown-menu.tsx +255 -0
  470. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/file-upload.tsx +141 -0
  471. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/input.tsx +21 -0
  472. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/label.tsx +22 -0
  473. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/loading-spinner.tsx +23 -0
  474. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/loading-state.tsx +52 -0
  475. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/markdown-renderer.tsx +565 -0
  476. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/scroll-area.tsx +46 -0
  477. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/select.tsx +183 -0
  478. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/separator.tsx +31 -0
  479. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/switch.tsx +29 -0
  480. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/tabs.tsx +53 -0
  481. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/textarea.tsx +18 -0
  482. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/toast.tsx +89 -0
  483. agent_framework-1.0.0/packages/devui/frontend/src/components/ui/tooltip.tsx +30 -0
  484. agent_framework-1.0.0/packages/devui/frontend/src/data/gallery/index.ts +5 -0
  485. agent_framework-1.0.0/packages/devui/frontend/src/data/gallery/sample-entities.ts +155 -0
  486. agent_framework-1.0.0/packages/devui/frontend/src/hooks/index.ts +3 -0
  487. agent_framework-1.0.0/packages/devui/frontend/src/hooks/use-drag-drop.ts +98 -0
  488. agent_framework-1.0.0/packages/devui/frontend/src/hooks/useCancellableRequest.ts +70 -0
  489. agent_framework-1.0.0/packages/devui/frontend/src/index.css +184 -0
  490. agent_framework-1.0.0/packages/devui/frontend/src/lib/utils.ts +6 -0
  491. agent_framework-1.0.0/packages/devui/frontend/src/main.tsx +22 -0
  492. agent_framework-1.0.0/packages/devui/frontend/src/services/api.ts +1021 -0
  493. agent_framework-1.0.0/packages/devui/frontend/src/services/streaming-state.ts +199 -0
  494. agent_framework-1.0.0/packages/devui/frontend/src/stores/devuiStore.ts +674 -0
  495. agent_framework-1.0.0/packages/devui/frontend/src/stores/index.ts +5 -0
  496. agent_framework-1.0.0/packages/devui/frontend/src/types/agent-framework.ts +347 -0
  497. agent_framework-1.0.0/packages/devui/frontend/src/types/index.ts +327 -0
  498. agent_framework-1.0.0/packages/devui/frontend/src/types/openai.ts +839 -0
  499. agent_framework-1.0.0/packages/devui/frontend/src/types/workflow.ts +167 -0
  500. agent_framework-1.0.0/packages/devui/frontend/src/utils/simple-layout.ts +139 -0
  501. agent_framework-1.0.0/packages/devui/frontend/src/utils/workflow-utils.ts +771 -0
  502. agent_framework-1.0.0/packages/devui/frontend/src/vite-env.d.ts +9 -0
  503. agent_framework-1.0.0/packages/devui/frontend/tsconfig.app.json +29 -0
  504. agent_framework-1.0.0/packages/devui/frontend/tsconfig.json +13 -0
  505. agent_framework-1.0.0/packages/devui/frontend/tsconfig.node.json +23 -0
  506. agent_framework-1.0.0/packages/devui/frontend/vite.config.ts +33 -0
  507. agent_framework-1.0.0/packages/devui/frontend/yarn.lock +2522 -0
  508. agent_framework-1.0.0/packages/devui/pyproject.toml +113 -0
  509. agent_framework-1.0.0/packages/devui/tests/devui/capture_messages.py +227 -0
  510. agent_framework-1.0.0/packages/devui/tests/devui/conftest.py +552 -0
  511. agent_framework-1.0.0/packages/devui/tests/devui/test_approval_validation.py +223 -0
  512. agent_framework-1.0.0/packages/devui/tests/devui/test_checkpoints.py +460 -0
  513. agent_framework-1.0.0/packages/devui/tests/devui/test_cleanup_hooks.py +379 -0
  514. agent_framework-1.0.0/packages/devui/tests/devui/test_conversations.py +321 -0
  515. agent_framework-1.0.0/packages/devui/tests/devui/test_discovery.py +340 -0
  516. agent_framework-1.0.0/packages/devui/tests/devui/test_execution.py +836 -0
  517. agent_framework-1.0.0/packages/devui/tests/devui/test_mapper.py +753 -0
  518. agent_framework-1.0.0/packages/devui/tests/devui/test_multimodal_workflow.py +152 -0
  519. agent_framework-1.0.0/packages/devui/tests/devui/test_openai_sdk_integration.py +266 -0
  520. agent_framework-1.0.0/packages/devui/tests/devui/test_schema_generation.py +231 -0
  521. agent_framework-1.0.0/packages/devui/tests/devui/test_server.py +405 -0
  522. agent_framework-1.0.0/packages/durabletask/AGENTS.md +57 -0
  523. agent_framework-1.0.0/packages/durabletask/LICENSE +21 -0
  524. agent_framework-1.0.0/packages/durabletask/README.md +32 -0
  525. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/__init__.py +108 -0
  526. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_callbacks.py +40 -0
  527. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_client.py +92 -0
  528. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_constants.py +130 -0
  529. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_durable_agent_state.py +1334 -0
  530. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_entities.py +353 -0
  531. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_executors.py +527 -0
  532. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_models.py +331 -0
  533. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_orchestration_context.py +76 -0
  534. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_response_utils.py +76 -0
  535. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_shim.py +166 -0
  536. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_worker.py +203 -0
  537. agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/py.typed +0 -0
  538. agent_framework-1.0.0/packages/durabletask/pyproject.toml +110 -0
  539. agent_framework-1.0.0/packages/durabletask/tests/integration_tests/.env.example +13 -0
  540. agent_framework-1.0.0/packages/durabletask/tests/integration_tests/README.md +110 -0
  541. agent_framework-1.0.0/packages/durabletask/tests/integration_tests/conftest.py +494 -0
  542. agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_01_dt_single_agent.py +85 -0
  543. agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_02_dt_multi_agent.py +99 -0
  544. agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_03_dt_single_agent_streaming.py +223 -0
  545. agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_04_dt_single_agent_orchestration_chaining.py +100 -0
  546. agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_05_dt_multi_agent_orchestration_concurrency.py +76 -0
  547. agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_06_dt_multi_agent_orchestration_conditionals.py +75 -0
  548. agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_07_dt_single_agent_orchestration_hitl.py +163 -0
  549. agent_framework-1.0.0/packages/durabletask/tests/test_agent_session_id.py +310 -0
  550. agent_framework-1.0.0/packages/durabletask/tests/test_client.py +133 -0
  551. agent_framework-1.0.0/packages/durabletask/tests/test_durable_agent_state.py +525 -0
  552. agent_framework-1.0.0/packages/durabletask/tests/test_durable_entities.py +768 -0
  553. agent_framework-1.0.0/packages/durabletask/tests/test_executors.py +581 -0
  554. agent_framework-1.0.0/packages/durabletask/tests/test_models.py +309 -0
  555. agent_framework-1.0.0/packages/durabletask/tests/test_orchestration_context.py +87 -0
  556. agent_framework-1.0.0/packages/durabletask/tests/test_shim.py +228 -0
  557. agent_framework-1.0.0/packages/durabletask/tests/test_worker.py +168 -0
  558. agent_framework-1.0.0/packages/foundry/LICENSE +21 -0
  559. agent_framework-1.0.0/packages/foundry/README.md +3 -0
  560. agent_framework-1.0.0/packages/foundry/agent_framework_foundry/__init__.py +41 -0
  561. agent_framework-1.0.0/packages/foundry/agent_framework_foundry/_agent.py +736 -0
  562. agent_framework-1.0.0/packages/foundry/agent_framework_foundry/_chat_client.py +573 -0
  563. agent_framework-1.0.0/packages/foundry/agent_framework_foundry/_embedding_client.py +396 -0
  564. agent_framework-1.0.0/packages/foundry/agent_framework_foundry/_foundry_evals.py +895 -0
  565. agent_framework-1.0.0/packages/foundry/agent_framework_foundry/_memory_provider.py +274 -0
  566. agent_framework-1.0.0/packages/foundry/pyproject.toml +106 -0
  567. agent_framework-1.0.0/packages/foundry/tests/assets/sample_image.jpg +0 -0
  568. agent_framework-1.0.0/packages/foundry/tests/foundry/conftest.py +78 -0
  569. agent_framework-1.0.0/packages/foundry/tests/foundry/test_foundry_agent.py +467 -0
  570. agent_framework-1.0.0/packages/foundry/tests/foundry/test_foundry_chat_client.py +812 -0
  571. agent_framework-1.0.0/packages/foundry/tests/foundry/test_foundry_embedding_client.py +314 -0
  572. agent_framework-1.0.0/packages/foundry/tests/foundry/test_foundry_memory_provider.py +501 -0
  573. agent_framework-1.0.0/packages/foundry/tests/test_foundry_evals.py +2591 -0
  574. agent_framework-1.0.0/packages/foundry_local/AGENTS.md +24 -0
  575. agent_framework-1.0.0/packages/foundry_local/LICENSE +21 -0
  576. agent_framework-1.0.0/packages/foundry_local/README.md +13 -0
  577. agent_framework-1.0.0/packages/foundry_local/agent_framework_foundry_local/__init__.py +17 -0
  578. agent_framework-1.0.0/packages/foundry_local/agent_framework_foundry_local/_foundry_local_client.py +348 -0
  579. agent_framework-1.0.0/packages/foundry_local/agent_framework_foundry_local/py.typed +0 -0
  580. agent_framework-1.0.0/packages/foundry_local/pyproject.toml +98 -0
  581. agent_framework-1.0.0/packages/foundry_local/tests/conftest.py +55 -0
  582. agent_framework-1.0.0/packages/foundry_local/tests/test_foundry_local_client.py +216 -0
  583. agent_framework-1.0.0/packages/github_copilot/AGENTS.md +26 -0
  584. agent_framework-1.0.0/packages/github_copilot/LICENSE +21 -0
  585. agent_framework-1.0.0/packages/github_copilot/README.md +11 -0
  586. agent_framework-1.0.0/packages/github_copilot/agent_framework_github_copilot/__init__.py +17 -0
  587. agent_framework-1.0.0/packages/github_copilot/agent_framework_github_copilot/_agent.py +772 -0
  588. agent_framework-1.0.0/packages/github_copilot/pyproject.toml +104 -0
  589. agent_framework-1.0.0/packages/github_copilot/tests/test_github_copilot_agent.py +1900 -0
  590. agent_framework-1.0.0/packages/lab/.gitignore +13 -0
  591. agent_framework-1.0.0/packages/lab/AGENTS.md +22 -0
  592. agent_framework-1.0.0/packages/lab/LICENSE +21 -0
  593. agent_framework-1.0.0/packages/lab/README.md +119 -0
  594. agent_framework-1.0.0/packages/lab/gaia/README.md +52 -0
  595. agent_framework-1.0.0/packages/lab/gaia/agent_framework_lab_gaia/__init__.py +26 -0
  596. agent_framework-1.0.0/packages/lab/gaia/agent_framework_lab_gaia/_types.py +79 -0
  597. agent_framework-1.0.0/packages/lab/gaia/agent_framework_lab_gaia/gaia.py +712 -0
  598. agent_framework-1.0.0/packages/lab/gaia/agent_framework_lab_gaia/py.typed +1 -0
  599. agent_framework-1.0.0/packages/lab/gaia/samples/azure_ai_agent.py +67 -0
  600. agent_framework-1.0.0/packages/lab/gaia/samples/gaia_sample.py +295 -0
  601. agent_framework-1.0.0/packages/lab/gaia/samples/openai_agent.py +61 -0
  602. agent_framework-1.0.0/packages/lab/gaia/tests/test_gaia.py +36 -0
  603. agent_framework-1.0.0/packages/lab/lightning/.gitattributes +2 -0
  604. agent_framework-1.0.0/packages/lab/lightning/README.md +191 -0
  605. agent_framework-1.0.0/packages/lab/lightning/agent_framework_lab_lightning/__init__.py +37 -0
  606. agent_framework-1.0.0/packages/lab/lightning/agent_framework_lab_lightning/py.typed +0 -0
  607. agent_framework-1.0.0/packages/lab/lightning/assets/train_math_agent.png +0 -0
  608. agent_framework-1.0.0/packages/lab/lightning/assets/train_tau2_agent.png +0 -0
  609. agent_framework-1.0.0/packages/lab/lightning/samples/data/math/test.jsonl +20 -0
  610. agent_framework-1.0.0/packages/lab/lightning/samples/data/math/train.jsonl +64 -0
  611. agent_framework-1.0.0/packages/lab/lightning/samples/train_math_agent.py +331 -0
  612. agent_framework-1.0.0/packages/lab/lightning/samples/train_tau2_agent.py +231 -0
  613. agent_framework-1.0.0/packages/lab/lightning/tests/test_lightning.py +163 -0
  614. agent_framework-1.0.0/packages/lab/namespace/agent_framework/__init__.py +4 -0
  615. agent_framework-1.0.0/packages/lab/namespace/agent_framework/lab/__init__.py +4 -0
  616. agent_framework-1.0.0/packages/lab/namespace/agent_framework/lab/gaia/__init__.py +28 -0
  617. agent_framework-1.0.0/packages/lab/namespace/agent_framework/lab/lightning/__init__.py +6 -0
  618. agent_framework-1.0.0/packages/lab/namespace/agent_framework/lab/tau2/__init__.py +20 -0
  619. agent_framework-1.0.0/packages/lab/pyproject.toml +199 -0
  620. agent_framework-1.0.0/packages/lab/tau2/README.md +198 -0
  621. agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/__init__.py +22 -0
  622. agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/_message_utils.py +121 -0
  623. agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/_sliding_window.py +121 -0
  624. agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/_tau2_utils.py +257 -0
  625. agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/py.typed +0 -0
  626. agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/runner.py +440 -0
  627. agent_framework-1.0.0/packages/lab/tau2/samples/.env.example +4 -0
  628. agent_framework-1.0.0/packages/lab/tau2/samples/run_benchmark.py +279 -0
  629. agent_framework-1.0.0/packages/lab/tau2/tests/test_message_utils.py +283 -0
  630. agent_framework-1.0.0/packages/lab/tau2/tests/test_sliding_window.py +213 -0
  631. agent_framework-1.0.0/packages/lab/tau2/tests/test_tau2_utils.py +213 -0
  632. agent_framework-1.0.0/packages/mem0/AGENTS.md +30 -0
  633. agent_framework-1.0.0/packages/mem0/LICENSE +21 -0
  634. agent_framework-1.0.0/packages/mem0/README.md +31 -0
  635. agent_framework-1.0.0/packages/mem0/agent_framework_mem0/__init__.py +21 -0
  636. agent_framework-1.0.0/packages/mem0/agent_framework_mem0/_context_provider.py +188 -0
  637. agent_framework-1.0.0/packages/mem0/pyproject.toml +98 -0
  638. agent_framework-1.0.0/packages/mem0/tests/test_mem0_context_provider.py +432 -0
  639. agent_framework-1.0.0/packages/ollama/AGENTS.md +26 -0
  640. agent_framework-1.0.0/packages/ollama/LICENSE +21 -0
  641. agent_framework-1.0.0/packages/ollama/README.md +13 -0
  642. agent_framework-1.0.0/packages/ollama/agent_framework_ollama/__init__.py +21 -0
  643. agent_framework-1.0.0/packages/ollama/agent_framework_ollama/_chat_client.py +591 -0
  644. agent_framework-1.0.0/packages/ollama/agent_framework_ollama/_embedding_client.py +230 -0
  645. agent_framework-1.0.0/packages/ollama/agent_framework_ollama/py.typed +0 -0
  646. agent_framework-1.0.0/packages/ollama/pyproject.toml +105 -0
  647. agent_framework-1.0.0/packages/ollama/tests/ollama/test_ollama_embedding_client.py +150 -0
  648. agent_framework-1.0.0/packages/ollama/tests/test_ollama_chat_client.py +570 -0
  649. agent_framework-1.0.0/packages/openai/AGENTS.md +34 -0
  650. agent_framework-1.0.0/packages/openai/LICENSE +21 -0
  651. agent_framework-1.0.0/packages/openai/README.md +113 -0
  652. agent_framework-1.0.0/packages/openai/agent_framework_openai/__init__.py +45 -0
  653. agent_framework-1.0.0/packages/openai/agent_framework_openai/_chat_client.py +2717 -0
  654. agent_framework-1.0.0/packages/openai/agent_framework_openai/_chat_completion_client.py +1316 -0
  655. agent_framework-1.0.0/packages/openai/agent_framework_openai/_embedding_client.py +500 -0
  656. agent_framework-1.0.0/packages/openai/agent_framework_openai/_exceptions.py +90 -0
  657. agent_framework-1.0.0/packages/openai/agent_framework_openai/_shared.py +342 -0
  658. agent_framework-1.0.0/packages/openai/agent_framework_openai/py.typed +0 -0
  659. agent_framework-1.0.0/packages/openai/pyproject.toml +97 -0
  660. agent_framework-1.0.0/packages/openai/tests/assets/sample_image.jpg +0 -0
  661. agent_framework-1.0.0/packages/openai/tests/openai/conftest.py +201 -0
  662. agent_framework-1.0.0/packages/openai/tests/openai/test_openai_chat_client.py +4018 -0
  663. agent_framework-1.0.0/packages/openai/tests/openai/test_openai_chat_client_azure.py +519 -0
  664. agent_framework-1.0.0/packages/openai/tests/openai/test_openai_chat_completion_client.py +1752 -0
  665. agent_framework-1.0.0/packages/openai/tests/openai/test_openai_chat_completion_client_azure.py +408 -0
  666. agent_framework-1.0.0/packages/openai/tests/openai/test_openai_chat_completion_client_base.py +425 -0
  667. agent_framework-1.0.0/packages/openai/tests/openai/test_openai_embedding_client.py +263 -0
  668. agent_framework-1.0.0/packages/openai/tests/openai/test_openai_embedding_client_azure.py +245 -0
  669. agent_framework-1.0.0/packages/openai/tests/openai/test_openai_shared.py +54 -0
  670. agent_framework-1.0.0/packages/orchestrations/LICENSE +21 -0
  671. agent_framework-1.0.0/packages/orchestrations/README.md +76 -0
  672. agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/__init__.py +110 -0
  673. agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_base_group_chat_orchestrator.py +570 -0
  674. agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_concurrent.py +418 -0
  675. agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_group_chat.py +1004 -0
  676. agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_handoff.py +1186 -0
  677. agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_magentic.py +1773 -0
  678. agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_orchestration_request_info.py +153 -0
  679. agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_orchestration_state.py +93 -0
  680. agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_orchestrator_helpers.py +71 -0
  681. agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_sequential.py +288 -0
  682. agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/py.typed +0 -0
  683. agent_framework-1.0.0/packages/orchestrations/pyproject.toml +96 -0
  684. agent_framework-1.0.0/packages/orchestrations/tests/test_concurrent.py +336 -0
  685. agent_framework-1.0.0/packages/orchestrations/tests/test_group_chat.py +1065 -0
  686. agent_framework-1.0.0/packages/orchestrations/tests/test_handoff.py +1162 -0
  687. agent_framework-1.0.0/packages/orchestrations/tests/test_magentic.py +1144 -0
  688. agent_framework-1.0.0/packages/orchestrations/tests/test_orchestration_request_info.py +253 -0
  689. agent_framework-1.0.0/packages/orchestrations/tests/test_sequential.py +392 -0
  690. agent_framework-1.0.0/packages/purview/AGENTS.md +44 -0
  691. agent_framework-1.0.0/packages/purview/LICENSE +21 -0
  692. agent_framework-1.0.0/packages/purview/README.md +323 -0
  693. agent_framework-1.0.0/packages/purview/agent_framework_purview/__init__.py +27 -0
  694. agent_framework-1.0.0/packages/purview/agent_framework_purview/_cache.py +189 -0
  695. agent_framework-1.0.0/packages/purview/agent_framework_purview/_client.py +233 -0
  696. agent_framework-1.0.0/packages/purview/agent_framework_purview/_exceptions.py +32 -0
  697. agent_framework-1.0.0/packages/purview/agent_framework_purview/_middleware.py +247 -0
  698. agent_framework-1.0.0/packages/purview/agent_framework_purview/_models.py +1033 -0
  699. agent_framework-1.0.0/packages/purview/agent_framework_purview/_processor.py +360 -0
  700. agent_framework-1.0.0/packages/purview/agent_framework_purview/_settings.py +84 -0
  701. agent_framework-1.0.0/packages/purview/pyproject.toml +97 -0
  702. agent_framework-1.0.0/packages/purview/tests/purview/conftest.py +68 -0
  703. agent_framework-1.0.0/packages/purview/tests/purview/test_cache.py +215 -0
  704. agent_framework-1.0.0/packages/purview/tests/purview/test_chat_middleware.py +415 -0
  705. agent_framework-1.0.0/packages/purview/tests/purview/test_exceptions.py +47 -0
  706. agent_framework-1.0.0/packages/purview/tests/purview/test_middleware.py +430 -0
  707. agent_framework-1.0.0/packages/purview/tests/purview/test_processor.py +706 -0
  708. agent_framework-1.0.0/packages/purview/tests/purview/test_purview_client.py +609 -0
  709. agent_framework-1.0.0/packages/purview/tests/purview/test_purview_models.py +243 -0
  710. agent_framework-1.0.0/packages/purview/tests/purview/test_settings.py +82 -0
  711. agent_framework-1.0.0/packages/redis/AGENTS.md +25 -0
  712. agent_framework-1.0.0/packages/redis/LICENSE +21 -0
  713. agent_framework-1.0.0/packages/redis/README.md +53 -0
  714. agent_framework-1.0.0/packages/redis/agent_framework_redis/__init__.py +16 -0
  715. agent_framework-1.0.0/packages/redis/agent_framework_redis/_context_provider.py +426 -0
  716. agent_framework-1.0.0/packages/redis/agent_framework_redis/_history_provider.py +194 -0
  717. agent_framework-1.0.0/packages/redis/pyproject.toml +100 -0
  718. agent_framework-1.0.0/packages/redis/tests/test_providers.py +530 -0
  719. agent_framework-1.0.0/pyproject.toml +426 -0
  720. agent_framework-1.0.0/pyrightconfig.samples.json +16 -0
  721. agent_framework-1.0.0/pyrightconfig.samples.py310.json +17 -0
  722. agent_framework-1.0.0/samples/01-get-started/01_hello_agent.py +51 -0
  723. agent_framework-1.0.0/samples/01-get-started/02_add_tools.py +58 -0
  724. agent_framework-1.0.0/samples/01-get-started/03_multi_turn.py +47 -0
  725. agent_framework-1.0.0/samples/01-get-started/04_memory.py +105 -0
  726. agent_framework-1.0.0/samples/01-get-started/05_first_workflow.py +70 -0
  727. agent_framework-1.0.0/samples/01-get-started/06_host_your_agent.py +40 -0
  728. agent_framework-1.0.0/samples/01-get-started/README.md +36 -0
  729. agent_framework-1.0.0/samples/02-agents/__init__.py +0 -0
  730. agent_framework-1.0.0/samples/02-agents/auto_retry.py +255 -0
  731. agent_framework-1.0.0/samples/02-agents/background_responses.py +143 -0
  732. agent_framework-1.0.0/samples/02-agents/chat_client/README.md +78 -0
  733. agent_framework-1.0.0/samples/02-agents/chat_client/built_in_chat_clients.py +131 -0
  734. agent_framework-1.0.0/samples/02-agents/chat_client/chat_response_cancellation.py +44 -0
  735. agent_framework-1.0.0/samples/02-agents/chat_client/custom_chat_client.py +213 -0
  736. agent_framework-1.0.0/samples/02-agents/chat_client/require_per_service_call_history_persistence.py +194 -0
  737. agent_framework-1.0.0/samples/02-agents/compaction/README.md +23 -0
  738. agent_framework-1.0.0/samples/02-agents/compaction/advanced.py +117 -0
  739. agent_framework-1.0.0/samples/02-agents/compaction/agent_client_overrides.py +144 -0
  740. agent_framework-1.0.0/samples/02-agents/compaction/basics.py +241 -0
  741. agent_framework-1.0.0/samples/02-agents/compaction/compaction_provider.py +249 -0
  742. agent_framework-1.0.0/samples/02-agents/compaction/custom.py +83 -0
  743. agent_framework-1.0.0/samples/02-agents/compaction/tiktoken_tokenizer.py +123 -0
  744. agent_framework-1.0.0/samples/02-agents/context_providers/README.md +28 -0
  745. agent_framework-1.0.0/samples/02-agents/context_providers/azure_ai_foundry_memory.py +173 -0
  746. agent_framework-1.0.0/samples/02-agents/context_providers/azure_ai_search/README.md +268 -0
  747. agent_framework-1.0.0/samples/02-agents/context_providers/azure_ai_search/search_context_agentic.py +146 -0
  748. agent_framework-1.0.0/samples/02-agents/context_providers/azure_ai_search/search_context_semantic.py +117 -0
  749. agent_framework-1.0.0/samples/02-agents/context_providers/mem0/README.md +47 -0
  750. agent_framework-1.0.0/samples/02-agents/context_providers/mem0/mem0_basic.py +84 -0
  751. agent_framework-1.0.0/samples/02-agents/context_providers/mem0/mem0_oss.py +74 -0
  752. agent_framework-1.0.0/samples/02-agents/context_providers/mem0/mem0_sessions.py +170 -0
  753. agent_framework-1.0.0/samples/02-agents/context_providers/redis/README.md +123 -0
  754. agent_framework-1.0.0/samples/02-agents/context_providers/redis/azure_redis_conversation.py +140 -0
  755. agent_framework-1.0.0/samples/02-agents/context_providers/redis/redis_basics.py +279 -0
  756. agent_framework-1.0.0/samples/02-agents/context_providers/redis/redis_conversation.py +124 -0
  757. agent_framework-1.0.0/samples/02-agents/context_providers/redis/redis_sessions.py +257 -0
  758. agent_framework-1.0.0/samples/02-agents/context_providers/simple_context_provider.py +125 -0
  759. agent_framework-1.0.0/samples/02-agents/conversations/README.md +37 -0
  760. agent_framework-1.0.0/samples/02-agents/conversations/cosmos_history_provider.py +98 -0
  761. agent_framework-1.0.0/samples/02-agents/conversations/custom_history_provider.py +90 -0
  762. agent_framework-1.0.0/samples/02-agents/conversations/redis_history_provider.py +270 -0
  763. agent_framework-1.0.0/samples/02-agents/conversations/suspend_resume_session.py +101 -0
  764. agent_framework-1.0.0/samples/02-agents/declarative/README.md +272 -0
  765. agent_framework-1.0.0/samples/02-agents/declarative/azure_openai_responses_agent.py +40 -0
  766. agent_framework-1.0.0/samples/02-agents/declarative/get_weather_agent.py +48 -0
  767. agent_framework-1.0.0/samples/02-agents/declarative/inline_yaml.py +52 -0
  768. agent_framework-1.0.0/samples/02-agents/declarative/mcp_tool_yaml.py +161 -0
  769. agent_framework-1.0.0/samples/02-agents/declarative/microsoft_learn_agent.py +50 -0
  770. agent_framework-1.0.0/samples/02-agents/declarative/openai_agent.py +36 -0
  771. agent_framework-1.0.0/samples/02-agents/devui/.env.example +15 -0
  772. agent_framework-1.0.0/samples/02-agents/devui/.gitignore +19 -0
  773. agent_framework-1.0.0/samples/02-agents/devui/README.md +208 -0
  774. agent_framework-1.0.0/samples/02-agents/devui/agent_foundry/.env.example +5 -0
  775. agent_framework-1.0.0/samples/02-agents/devui/agent_foundry/__init__.py +7 -0
  776. agent_framework-1.0.0/samples/02-agents/devui/agent_foundry/agent.py +88 -0
  777. agent_framework-1.0.0/samples/02-agents/devui/agent_weather/.env.example +5 -0
  778. agent_framework-1.0.0/samples/02-agents/devui/agent_weather/__init__.py +7 -0
  779. agent_framework-1.0.0/samples/02-agents/devui/agent_weather/agent.py +188 -0
  780. agent_framework-1.0.0/samples/02-agents/devui/in_memory_mode.py +135 -0
  781. agent_framework-1.0.0/samples/02-agents/devui/main.py +32 -0
  782. agent_framework-1.0.0/samples/02-agents/devui/workflow_declarative/__init__.py +3 -0
  783. agent_framework-1.0.0/samples/02-agents/devui/workflow_declarative/workflow.py +25 -0
  784. agent_framework-1.0.0/samples/02-agents/devui/workflow_declarative/workflow.yaml +64 -0
  785. agent_framework-1.0.0/samples/02-agents/devui/workflow_fanout/__init__.py +3 -0
  786. agent_framework-1.0.0/samples/02-agents/devui/workflow_fanout/workflow.py +703 -0
  787. agent_framework-1.0.0/samples/02-agents/devui/workflow_spam/__init__.py +7 -0
  788. agent_framework-1.0.0/samples/02-agents/devui/workflow_spam/workflow.py +440 -0
  789. agent_framework-1.0.0/samples/02-agents/devui/workflow_with_agents/.env.example +9 -0
  790. agent_framework-1.0.0/samples/02-agents/devui/workflow_with_agents/__init__.py +7 -0
  791. agent_framework-1.0.0/samples/02-agents/devui/workflow_with_agents/workflow.py +185 -0
  792. agent_framework-1.0.0/samples/02-agents/embeddings/foundry_embeddings.py +94 -0
  793. agent_framework-1.0.0/samples/02-agents/embeddings/openai_embeddings.py +66 -0
  794. agent_framework-1.0.0/samples/02-agents/embeddings/openai_embeddings_on_azure.py +74 -0
  795. agent_framework-1.0.0/samples/02-agents/evaluation/evaluate_agent.py +81 -0
  796. agent_framework-1.0.0/samples/02-agents/evaluation/evaluate_multimodal.py +121 -0
  797. agent_framework-1.0.0/samples/02-agents/evaluation/evaluate_with_expected.py +73 -0
  798. agent_framework-1.0.0/samples/02-agents/feature_stage_introspection.py +83 -0
  799. agent_framework-1.0.0/samples/02-agents/mcp/README.md +25 -0
  800. agent_framework-1.0.0/samples/02-agents/mcp/agent_as_mcp_server.py +80 -0
  801. agent_framework-1.0.0/samples/02-agents/mcp/mcp_api_key_auth.py +60 -0
  802. agent_framework-1.0.0/samples/02-agents/mcp/mcp_github_pat.py +81 -0
  803. agent_framework-1.0.0/samples/02-agents/middleware/README.md +37 -0
  804. agent_framework-1.0.0/samples/02-agents/middleware/agent_and_run_level_middleware.py +301 -0
  805. agent_framework-1.0.0/samples/02-agents/middleware/chat_middleware.py +261 -0
  806. agent_framework-1.0.0/samples/02-agents/middleware/class_based_middleware.py +133 -0
  807. agent_framework-1.0.0/samples/02-agents/middleware/decorator_middleware.py +98 -0
  808. agent_framework-1.0.0/samples/02-agents/middleware/exception_handling_with_middleware.py +84 -0
  809. agent_framework-1.0.0/samples/02-agents/middleware/function_based_middleware.py +120 -0
  810. agent_framework-1.0.0/samples/02-agents/middleware/middleware_termination.py +190 -0
  811. agent_framework-1.0.0/samples/02-agents/middleware/override_result_with_middleware.py +240 -0
  812. agent_framework-1.0.0/samples/02-agents/middleware/runtime_context_delegation.py +487 -0
  813. agent_framework-1.0.0/samples/02-agents/middleware/session_behavior_middleware.py +110 -0
  814. agent_framework-1.0.0/samples/02-agents/middleware/shared_state_middleware.py +140 -0
  815. agent_framework-1.0.0/samples/02-agents/middleware/usage_tracking_middleware.py +184 -0
  816. agent_framework-1.0.0/samples/02-agents/multimodal_input/README.md +119 -0
  817. agent_framework-1.0.0/samples/02-agents/multimodal_input/azure_chat_multimodal.py +48 -0
  818. agent_framework-1.0.0/samples/02-agents/multimodal_input/azure_responses_multimodal.py +81 -0
  819. agent_framework-1.0.0/samples/02-agents/multimodal_input/openai_chat_multimodal.py +115 -0
  820. agent_framework-1.0.0/samples/02-agents/observability/.env.example +49 -0
  821. agent_framework-1.0.0/samples/02-agents/observability/README.md +444 -0
  822. agent_framework-1.0.0/samples/02-agents/observability/__init__.py +0 -0
  823. agent_framework-1.0.0/samples/02-agents/observability/advanced_manual_setup_console_output.py +144 -0
  824. agent_framework-1.0.0/samples/02-agents/observability/advanced_zero_code.py +121 -0
  825. agent_framework-1.0.0/samples/02-agents/observability/agent_observability.py +73 -0
  826. agent_framework-1.0.0/samples/02-agents/observability/configure_otel_providers_with_env_var.py +150 -0
  827. agent_framework-1.0.0/samples/02-agents/observability/configure_otel_providers_with_parameters.py +192 -0
  828. agent_framework-1.0.0/samples/02-agents/observability/foundry_tracing.py +94 -0
  829. agent_framework-1.0.0/samples/02-agents/observability/workflow_observability.py +114 -0
  830. agent_framework-1.0.0/samples/02-agents/providers/README.md +17 -0
  831. agent_framework-1.0.0/samples/02-agents/providers/amazon/README.md +17 -0
  832. agent_framework-1.0.0/samples/02-agents/providers/amazon/bedrock_chat_client.py +65 -0
  833. agent_framework-1.0.0/samples/02-agents/providers/anthropic/README.md +47 -0
  834. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_advanced.py +72 -0
  835. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_basic.py +78 -0
  836. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_basic.py +80 -0
  837. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_mcp.py +88 -0
  838. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_multiple_permissions.py +76 -0
  839. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_session.py +152 -0
  840. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_shell.py +64 -0
  841. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_tools.py +47 -0
  842. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_url.py +45 -0
  843. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_foundry.py +76 -0
  844. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_skills.py +97 -0
  845. agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_with_shell.py +100 -0
  846. agent_framework-1.0.0/samples/02-agents/providers/azure/README.md +48 -0
  847. agent_framework-1.0.0/samples/02-agents/providers/azure/openai_chat_completion_client_basic.py +90 -0
  848. agent_framework-1.0.0/samples/02-agents/providers/azure/openai_chat_completion_client_with_explicit_settings.py +57 -0
  849. agent_framework-1.0.0/samples/02-agents/providers/azure/openai_chat_completion_client_with_function_tools.py +143 -0
  850. agent_framework-1.0.0/samples/02-agents/providers/azure/openai_chat_completion_client_with_session.py +161 -0
  851. agent_framework-1.0.0/samples/02-agents/providers/azure/openai_client_basic.py +90 -0
  852. agent_framework-1.0.0/samples/02-agents/providers/azure/openai_client_with_function_tools.py +137 -0
  853. agent_framework-1.0.0/samples/02-agents/providers/azure/openai_client_with_session.py +152 -0
  854. agent_framework-1.0.0/samples/02-agents/providers/azure/openai_client_with_structured_output.py +93 -0
  855. agent_framework-1.0.0/samples/02-agents/providers/copilotstudio/README.md +105 -0
  856. agent_framework-1.0.0/samples/02-agents/providers/copilotstudio/copilotstudio_basic.py +59 -0
  857. agent_framework-1.0.0/samples/02-agents/providers/copilotstudio/copilotstudio_with_explicit_settings.py +108 -0
  858. agent_framework-1.0.0/samples/02-agents/providers/custom/README.md +69 -0
  859. agent_framework-1.0.0/samples/02-agents/providers/custom/custom_agent.py +213 -0
  860. agent_framework-1.0.0/samples/02-agents/providers/foundry/README.md +47 -0
  861. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_agent_basic.py +42 -0
  862. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_agent_custom_client.py +63 -0
  863. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_agent_hosted.py +37 -0
  864. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_agent_with_function_tools.py +50 -0
  865. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client.py +115 -0
  866. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_basic.py +86 -0
  867. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_code_interpreter_files.py +97 -0
  868. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_image_analysis.py +44 -0
  869. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_code_interpreter.py +57 -0
  870. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_explicit_settings.py +58 -0
  871. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_file_search.py +81 -0
  872. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_function_tools.py +143 -0
  873. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_hosted_mcp.py +265 -0
  874. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_local_mcp.py +66 -0
  875. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_session.py +161 -0
  876. agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_local_agent.py +79 -0
  877. agent_framework-1.0.0/samples/02-agents/providers/github_copilot/README.md +37 -0
  878. agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_basic.py +137 -0
  879. agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_file_operations.py +51 -0
  880. agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_mcp.py +80 -0
  881. agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_multiple_permissions.py +59 -0
  882. agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_session.py +161 -0
  883. agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_shell.py +50 -0
  884. agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_url.py +50 -0
  885. agent_framework-1.0.0/samples/02-agents/providers/ollama/README.md +56 -0
  886. agent_framework-1.0.0/samples/02-agents/providers/ollama/ollama_agent_basic.py +79 -0
  887. agent_framework-1.0.0/samples/02-agents/providers/ollama/ollama_agent_reasoning.py +44 -0
  888. agent_framework-1.0.0/samples/02-agents/providers/ollama/ollama_chat_client.py +53 -0
  889. agent_framework-1.0.0/samples/02-agents/providers/ollama/ollama_chat_multimodal.py +57 -0
  890. agent_framework-1.0.0/samples/02-agents/providers/ollama/ollama_with_openai_chat_client.py +95 -0
  891. agent_framework-1.0.0/samples/02-agents/providers/openai/README.md +63 -0
  892. agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_basic.py +85 -0
  893. agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_explicit_settings.py +53 -0
  894. agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_function_tools.py +136 -0
  895. agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_local_mcp.py +92 -0
  896. agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_runtime_json_schema.py +118 -0
  897. agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_session.py +153 -0
  898. agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_web_search.py +55 -0
  899. agent_framework-1.0.0/samples/02-agents/providers/openai/client_basic.py +85 -0
  900. agent_framework-1.0.0/samples/02-agents/providers/openai/client_image_analysis.py +43 -0
  901. agent_framework-1.0.0/samples/02-agents/providers/openai/client_image_generation.py +107 -0
  902. agent_framework-1.0.0/samples/02-agents/providers/openai/client_reasoning.py +86 -0
  903. agent_framework-1.0.0/samples/02-agents/providers/openai/client_streaming_image_generation.py +91 -0
  904. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_agent_as_tool.py +73 -0
  905. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_code_interpreter.py +57 -0
  906. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_code_interpreter_files.py +90 -0
  907. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_explicit_settings.py +55 -0
  908. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_file_search.py +72 -0
  909. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_function_tools.py +136 -0
  910. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_hosted_mcp.py +246 -0
  911. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_local_mcp.py +97 -0
  912. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_local_shell.py +122 -0
  913. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_runtime_json_schema.py +118 -0
  914. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_session.py +151 -0
  915. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_shell.py +67 -0
  916. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_structured_output.py +92 -0
  917. agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_web_search.py +50 -0
  918. agent_framework-1.0.0/samples/02-agents/response_stream.py +358 -0
  919. agent_framework-1.0.0/samples/02-agents/skills/README.md +61 -0
  920. agent_framework-1.0.0/samples/02-agents/skills/code_defined_skill/README.md +49 -0
  921. agent_framework-1.0.0/samples/02-agents/skills/code_defined_skill/code_defined_skill.py +175 -0
  922. agent_framework-1.0.0/samples/02-agents/skills/file_based_skill/README.md +69 -0
  923. agent_framework-1.0.0/samples/02-agents/skills/file_based_skill/file_based_skill.py +98 -0
  924. agent_framework-1.0.0/samples/02-agents/skills/file_based_skill/skills/unit-converter/SKILL.md +11 -0
  925. agent_framework-1.0.0/samples/02-agents/skills/file_based_skill/skills/unit-converter/references/CONVERSION_TABLES.md +10 -0
  926. agent_framework-1.0.0/samples/02-agents/skills/file_based_skill/skills/unit-converter/scripts/convert.py +28 -0
  927. agent_framework-1.0.0/samples/02-agents/skills/mixed_skills/README.md +100 -0
  928. agent_framework-1.0.0/samples/02-agents/skills/mixed_skills/mixed_skills.py +164 -0
  929. agent_framework-1.0.0/samples/02-agents/skills/mixed_skills/skills/unit-converter/SKILL.md +11 -0
  930. agent_framework-1.0.0/samples/02-agents/skills/mixed_skills/skills/unit-converter/references/CONVERSION_TABLES.md +10 -0
  931. agent_framework-1.0.0/samples/02-agents/skills/mixed_skills/skills/unit-converter/scripts/convert.py +28 -0
  932. agent_framework-1.0.0/samples/02-agents/skills/script_approval/README.md +50 -0
  933. agent_framework-1.0.0/samples/02-agents/skills/script_approval/script_approval.py +129 -0
  934. agent_framework-1.0.0/samples/02-agents/skills/subprocess_script_runner.py +68 -0
  935. agent_framework-1.0.0/samples/02-agents/tools/agent_as_tool_with_session_propagation.py +110 -0
  936. agent_framework-1.0.0/samples/02-agents/tools/control_total_tool_executions.py +354 -0
  937. agent_framework-1.0.0/samples/02-agents/tools/function_invocation_configuration.py +64 -0
  938. agent_framework-1.0.0/samples/02-agents/tools/function_tool_declaration_only.py +80 -0
  939. agent_framework-1.0.0/samples/02-agents/tools/function_tool_from_dict_with_dependency_injection.py +75 -0
  940. agent_framework-1.0.0/samples/02-agents/tools/function_tool_recover_from_failures.py +112 -0
  941. agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_approval.py +162 -0
  942. agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_approval_and_sessions.py +105 -0
  943. agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_explicit_schema.py +86 -0
  944. agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_kwargs.py +63 -0
  945. agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_max_exceptions.py +187 -0
  946. agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_max_invocations.py +90 -0
  947. agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_session_injection.py +57 -0
  948. agent_framework-1.0.0/samples/02-agents/tools/tool_in_class.py +103 -0
  949. agent_framework-1.0.0/samples/02-agents/typed_options.py +182 -0
  950. agent_framework-1.0.0/samples/03-workflows/README.md +180 -0
  951. agent_framework-1.0.0/samples/03-workflows/_start-here/step1_executors_and_edges.py +226 -0
  952. agent_framework-1.0.0/samples/03-workflows/_start-here/step2_agents_in_a_workflow.py +89 -0
  953. agent_framework-1.0.0/samples/03-workflows/_start-here/step3_streaming.py +96 -0
  954. agent_framework-1.0.0/samples/03-workflows/agents/azure_ai_agents_streaming.py +77 -0
  955. agent_framework-1.0.0/samples/03-workflows/agents/azure_ai_agents_with_shared_session.py +112 -0
  956. agent_framework-1.0.0/samples/03-workflows/agents/azure_chat_agents_and_executor.py +159 -0
  957. agent_framework-1.0.0/samples/03-workflows/agents/azure_chat_agents_streaming.py +83 -0
  958. agent_framework-1.0.0/samples/03-workflows/agents/azure_chat_agents_tool_calls_with_feedback.py +323 -0
  959. agent_framework-1.0.0/samples/03-workflows/agents/concurrent_workflow_as_agent.py +84 -0
  960. agent_framework-1.0.0/samples/03-workflows/agents/custom_agent_executors.py +146 -0
  961. agent_framework-1.0.0/samples/03-workflows/agents/group_chat_workflow_as_agent.py +92 -0
  962. agent_framework-1.0.0/samples/03-workflows/agents/handoff_workflow_as_agent.py +235 -0
  963. agent_framework-1.0.0/samples/03-workflows/agents/magentic_workflow_as_agent.py +119 -0
  964. agent_framework-1.0.0/samples/03-workflows/agents/sequential_workflow_as_agent.py +97 -0
  965. agent_framework-1.0.0/samples/03-workflows/agents/workflow_as_agent_human_in_the_loop.py +182 -0
  966. agent_framework-1.0.0/samples/03-workflows/agents/workflow_as_agent_kwargs.py +156 -0
  967. agent_framework-1.0.0/samples/03-workflows/agents/workflow_as_agent_reflection_pattern.py +235 -0
  968. agent_framework-1.0.0/samples/03-workflows/agents/workflow_as_agent_with_session.py +180 -0
  969. agent_framework-1.0.0/samples/03-workflows/checkpoint/checkpoint_with_human_in_the_loop.py +330 -0
  970. agent_framework-1.0.0/samples/03-workflows/checkpoint/checkpoint_with_resume.py +157 -0
  971. agent_framework-1.0.0/samples/03-workflows/checkpoint/sub_workflow_checkpoint.py +415 -0
  972. agent_framework-1.0.0/samples/03-workflows/checkpoint/workflow_as_agent_checkpoint.py +186 -0
  973. agent_framework-1.0.0/samples/03-workflows/composition/sub_workflow_basics.py +206 -0
  974. agent_framework-1.0.0/samples/03-workflows/composition/sub_workflow_kwargs.py +203 -0
  975. agent_framework-1.0.0/samples/03-workflows/composition/sub_workflow_parallel_requests.py +358 -0
  976. agent_framework-1.0.0/samples/03-workflows/composition/sub_workflow_request_interception.py +306 -0
  977. agent_framework-1.0.0/samples/03-workflows/control-flow/edge_condition.py +248 -0
  978. agent_framework-1.0.0/samples/03-workflows/control-flow/multi_selection_edge_group.py +317 -0
  979. agent_framework-1.0.0/samples/03-workflows/control-flow/sequential_executors.py +85 -0
  980. agent_framework-1.0.0/samples/03-workflows/control-flow/sequential_streaming.py +80 -0
  981. agent_framework-1.0.0/samples/03-workflows/control-flow/simple_loop.py +173 -0
  982. agent_framework-1.0.0/samples/03-workflows/control-flow/switch_case_edge_group.py +240 -0
  983. agent_framework-1.0.0/samples/03-workflows/control-flow/workflow_cancellation.py +94 -0
  984. agent_framework-1.0.0/samples/03-workflows/declarative/README.md +77 -0
  985. agent_framework-1.0.0/samples/03-workflows/declarative/__init__.py +3 -0
  986. agent_framework-1.0.0/samples/03-workflows/declarative/agent_to_function_tool/main.py +271 -0
  987. agent_framework-1.0.0/samples/03-workflows/declarative/agent_to_function_tool/workflow.yaml +56 -0
  988. agent_framework-1.0.0/samples/03-workflows/declarative/conditional_workflow/README.md +23 -0
  989. agent_framework-1.0.0/samples/03-workflows/declarative/conditional_workflow/main.py +52 -0
  990. agent_framework-1.0.0/samples/03-workflows/declarative/conditional_workflow/workflow.yaml +69 -0
  991. agent_framework-1.0.0/samples/03-workflows/declarative/customer_support/README.md +37 -0
  992. agent_framework-1.0.0/samples/03-workflows/declarative/customer_support/__init__.py +1 -0
  993. agent_framework-1.0.0/samples/03-workflows/declarative/customer_support/main.py +359 -0
  994. agent_framework-1.0.0/samples/03-workflows/declarative/customer_support/ticketing_plugin.py +79 -0
  995. agent_framework-1.0.0/samples/03-workflows/declarative/customer_support/workflow.yaml +164 -0
  996. agent_framework-1.0.0/samples/03-workflows/declarative/deep_research/README.md +33 -0
  997. agent_framework-1.0.0/samples/03-workflows/declarative/deep_research/__init__.py +1 -0
  998. agent_framework-1.0.0/samples/03-workflows/declarative/deep_research/main.py +218 -0
  999. agent_framework-1.0.0/samples/03-workflows/declarative/function_tools/README.md +94 -0
  1000. agent_framework-1.0.0/samples/03-workflows/declarative/function_tools/main.py +132 -0
  1001. agent_framework-1.0.0/samples/03-workflows/declarative/function_tools/workflow.yaml +22 -0
  1002. agent_framework-1.0.0/samples/03-workflows/declarative/human_in_loop/README.md +59 -0
  1003. agent_framework-1.0.0/samples/03-workflows/declarative/human_in_loop/main.py +72 -0
  1004. agent_framework-1.0.0/samples/03-workflows/declarative/human_in_loop/workflow.yaml +75 -0
  1005. agent_framework-1.0.0/samples/03-workflows/declarative/invoke_function_tool/main.py +116 -0
  1006. agent_framework-1.0.0/samples/03-workflows/declarative/invoke_function_tool/workflow.yaml +51 -0
  1007. agent_framework-1.0.0/samples/03-workflows/declarative/marketing/README.md +76 -0
  1008. agent_framework-1.0.0/samples/03-workflows/declarative/marketing/main.py +108 -0
  1009. agent_framework-1.0.0/samples/03-workflows/declarative/marketing/workflow.yaml +30 -0
  1010. agent_framework-1.0.0/samples/03-workflows/declarative/simple_workflow/README.md +24 -0
  1011. agent_framework-1.0.0/samples/03-workflows/declarative/simple_workflow/main.py +33 -0
  1012. agent_framework-1.0.0/samples/03-workflows/declarative/simple_workflow/workflow.yaml +38 -0
  1013. agent_framework-1.0.0/samples/03-workflows/declarative/student_teacher/README.md +61 -0
  1014. agent_framework-1.0.0/samples/03-workflows/declarative/student_teacher/main.py +106 -0
  1015. agent_framework-1.0.0/samples/03-workflows/declarative/student_teacher/workflow.yaml +98 -0
  1016. agent_framework-1.0.0/samples/03-workflows/evaluation/evaluate_workflow.py +69 -0
  1017. agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/agents_with_HITL.py +235 -0
  1018. agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/agents_with_approval_requests.py +352 -0
  1019. agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/agents_with_declaration_only_tools.py +107 -0
  1020. agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/concurrent_request_info.py +213 -0
  1021. agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/group_chat_request_info.py +182 -0
  1022. agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/guessing_game_with_human_input.py +252 -0
  1023. agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/sequential_request_info.py +149 -0
  1024. agent_framework-1.0.0/samples/03-workflows/observability/executor_io_observation.py +124 -0
  1025. agent_framework-1.0.0/samples/03-workflows/orchestrations/README.md +108 -0
  1026. agent_framework-1.0.0/samples/03-workflows/orchestrations/concurrent_agents.py +144 -0
  1027. agent_framework-1.0.0/samples/03-workflows/orchestrations/concurrent_custom_agent_executors.py +188 -0
  1028. agent_framework-1.0.0/samples/03-workflows/orchestrations/concurrent_custom_aggregator.py +138 -0
  1029. agent_framework-1.0.0/samples/03-workflows/orchestrations/group_chat_agent_manager.py +125 -0
  1030. agent_framework-1.0.0/samples/03-workflows/orchestrations/group_chat_philosophical_debate.py +375 -0
  1031. agent_framework-1.0.0/samples/03-workflows/orchestrations/group_chat_simple_selector.py +146 -0
  1032. agent_framework-1.0.0/samples/03-workflows/orchestrations/handoff_autonomous.py +164 -0
  1033. agent_framework-1.0.0/samples/03-workflows/orchestrations/handoff_simple.py +310 -0
  1034. agent_framework-1.0.0/samples/03-workflows/orchestrations/handoff_with_code_interpreter_file.py +193 -0
  1035. agent_framework-1.0.0/samples/03-workflows/orchestrations/handoff_with_tool_approval_checkpoint_resume.py +257 -0
  1036. agent_framework-1.0.0/samples/03-workflows/orchestrations/magentic.py +157 -0
  1037. agent_framework-1.0.0/samples/03-workflows/orchestrations/magentic_checkpoint.py +319 -0
  1038. agent_framework-1.0.0/samples/03-workflows/orchestrations/magentic_human_plan_review.py +164 -0
  1039. agent_framework-1.0.0/samples/03-workflows/orchestrations/sequential_agents.py +92 -0
  1040. agent_framework-1.0.0/samples/03-workflows/orchestrations/sequential_chain_only_agent_responses.py +84 -0
  1041. agent_framework-1.0.0/samples/03-workflows/orchestrations/sequential_custom_executors.py +116 -0
  1042. agent_framework-1.0.0/samples/03-workflows/parallelism/aggregate_results_of_different_types.py +98 -0
  1043. agent_framework-1.0.0/samples/03-workflows/parallelism/fan_out_fan_in_edges.py +197 -0
  1044. agent_framework-1.0.0/samples/03-workflows/parallelism/map_reduce_and_visualization.py +318 -0
  1045. agent_framework-1.0.0/samples/03-workflows/resources/ambiguous_email.txt +19 -0
  1046. agent_framework-1.0.0/samples/03-workflows/resources/email.txt +18 -0
  1047. agent_framework-1.0.0/samples/03-workflows/resources/long_text.txt +199 -0
  1048. agent_framework-1.0.0/samples/03-workflows/resources/spam.txt +25 -0
  1049. agent_framework-1.0.0/samples/03-workflows/state-management/state_with_agents.py +248 -0
  1050. agent_framework-1.0.0/samples/03-workflows/state-management/workflow_kwargs_global.py +170 -0
  1051. agent_framework-1.0.0/samples/03-workflows/state-management/workflow_kwargs_per_agent.py +222 -0
  1052. agent_framework-1.0.0/samples/03-workflows/tool-approval/concurrent_builder_tool_approval.py +214 -0
  1053. agent_framework-1.0.0/samples/03-workflows/tool-approval/group_chat_builder_tool_approval.py +230 -0
  1054. agent_framework-1.0.0/samples/03-workflows/tool-approval/sequential_builder_tool_approval.py +166 -0
  1055. agent_framework-1.0.0/samples/03-workflows/visualization/concurrent_with_visualization.py +174 -0
  1056. agent_framework-1.0.0/samples/04-hosting/a2a/README.md +74 -0
  1057. agent_framework-1.0.0/samples/04-hosting/a2a/a2a_agent_as_function_tools.py +150 -0
  1058. agent_framework-1.0.0/samples/04-hosting/a2a/a2a_server.http +82 -0
  1059. agent_framework-1.0.0/samples/04-hosting/a2a/a2a_server.py +120 -0
  1060. agent_framework-1.0.0/samples/04-hosting/a2a/agent_definitions.py +172 -0
  1061. agent_framework-1.0.0/samples/04-hosting/a2a/agent_executor.py +123 -0
  1062. agent_framework-1.0.0/samples/04-hosting/a2a/agent_with_a2a.py +112 -0
  1063. agent_framework-1.0.0/samples/04-hosting/a2a/invoice_data.py +227 -0
  1064. agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/README.md +64 -0
  1065. agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/demo.http +22 -0
  1066. agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/function_app.py +52 -0
  1067. agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/host.json +12 -0
  1068. agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/local.settings.json.template +11 -0
  1069. agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/requirements.txt +15 -0
  1070. agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/README.md +104 -0
  1071. agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/demo.http +57 -0
  1072. agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/function_app.py +111 -0
  1073. agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/host.json +20 -0
  1074. agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/local.settings.json.template +11 -0
  1075. agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/requirements.txt +15 -0
  1076. agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/README.md +132 -0
  1077. agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/demo.http +55 -0
  1078. agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/function_app.py +327 -0
  1079. agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/host.json +20 -0
  1080. agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/local.settings.json.template +13 -0
  1081. agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/redis_stream_response_handler.py +201 -0
  1082. agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/requirements.txt +15 -0
  1083. agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/tools.py +164 -0
  1084. agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/README.md +53 -0
  1085. agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/demo.http +9 -0
  1086. agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/function_app.py +174 -0
  1087. agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/host.json +12 -0
  1088. agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/local.settings.json.template +11 -0
  1089. agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/requirements.txt +15 -0
  1090. agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/README.md +58 -0
  1091. agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/demo.http +11 -0
  1092. agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/function_app.py +206 -0
  1093. agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/host.json +12 -0
  1094. agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/local.settings.json.template +11 -0
  1095. agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/requirements.txt +15 -0
  1096. agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/README.md +35 -0
  1097. agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/demo.http +24 -0
  1098. agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/function_app.py +265 -0
  1099. agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/host.json +12 -0
  1100. agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/local.settings.json.template +11 -0
  1101. agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/requirements.txt +15 -0
  1102. agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/README.md +48 -0
  1103. agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/demo.http +45 -0
  1104. agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/function_app.py +402 -0
  1105. agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/host.json +12 -0
  1106. agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/local.settings.json.template +11 -0
  1107. agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/requirements.txt +15 -0
  1108. agent_framework-1.0.0/samples/04-hosting/azure_functions/08_mcp_server/README.md +198 -0
  1109. agent_framework-1.0.0/samples/04-hosting/azure_functions/08_mcp_server/function_app.py +79 -0
  1110. agent_framework-1.0.0/samples/04-hosting/azure_functions/08_mcp_server/host.json +7 -0
  1111. agent_framework-1.0.0/samples/04-hosting/azure_functions/08_mcp_server/local.settings.json.template +10 -0
  1112. agent_framework-1.0.0/samples/04-hosting/azure_functions/08_mcp_server/requirements.txt +15 -0
  1113. agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/.gitignore +18 -0
  1114. agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/README.md +99 -0
  1115. agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/demo.http +31 -0
  1116. agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/function_app.py +287 -0
  1117. agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/host.json +12 -0
  1118. agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/local.settings.json.sample +11 -0
  1119. agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/requirements.txt +15 -0
  1120. agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/.env.sample +3 -0
  1121. agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/.gitignore +2 -0
  1122. agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/README.md +159 -0
  1123. agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/demo.http +32 -0
  1124. agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/function_app.py +245 -0
  1125. agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/host.json +12 -0
  1126. agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/local.settings.json.sample +11 -0
  1127. agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/requirements.txt +15 -0
  1128. agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/.env.template +13 -0
  1129. agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/.gitignore +4 -0
  1130. agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/README.md +194 -0
  1131. agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/demo.http +29 -0
  1132. agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/function_app.py +497 -0
  1133. agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/host.json +12 -0
  1134. agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/local.settings.json.sample +11 -0
  1135. agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/requirements.txt +15 -0
  1136. agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/.gitignore +5 -0
  1137. agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/README.md +141 -0
  1138. agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/demo.http +123 -0
  1139. agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/function_app.py +463 -0
  1140. agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/host.json +12 -0
  1141. agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/local.settings.json.sample +11 -0
  1142. agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/requirements.txt +15 -0
  1143. agent_framework-1.0.0/samples/04-hosting/azure_functions/README.md +47 -0
  1144. agent_framework-1.0.0/samples/04-hosting/durabletask/01_single_agent/README.md +73 -0
  1145. agent_framework-1.0.0/samples/04-hosting/durabletask/01_single_agent/client.py +123 -0
  1146. agent_framework-1.0.0/samples/04-hosting/durabletask/01_single_agent/requirements.txt +14 -0
  1147. agent_framework-1.0.0/samples/04-hosting/durabletask/01_single_agent/sample.py +50 -0
  1148. agent_framework-1.0.0/samples/04-hosting/durabletask/01_single_agent/worker.py +132 -0
  1149. agent_framework-1.0.0/samples/04-hosting/durabletask/02_multi_agent/README.md +80 -0
  1150. agent_framework-1.0.0/samples/04-hosting/durabletask/02_multi_agent/client.py +120 -0
  1151. agent_framework-1.0.0/samples/04-hosting/durabletask/02_multi_agent/requirements.txt +14 -0
  1152. agent_framework-1.0.0/samples/04-hosting/durabletask/02_multi_agent/sample.py +50 -0
  1153. agent_framework-1.0.0/samples/04-hosting/durabletask/02_multi_agent/worker.py +184 -0
  1154. agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/README.md +150 -0
  1155. agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/client.py +186 -0
  1156. agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/redis_stream_response_handler.py +203 -0
  1157. agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/requirements.txt +14 -0
  1158. agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/sample.py +52 -0
  1159. agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/tools.py +168 -0
  1160. agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/worker.py +263 -0
  1161. agent_framework-1.0.0/samples/04-hosting/durabletask/04_single_agent_orchestration_chaining/README.md +68 -0
  1162. agent_framework-1.0.0/samples/04-hosting/durabletask/04_single_agent_orchestration_chaining/client.py +114 -0
  1163. agent_framework-1.0.0/samples/04-hosting/durabletask/04_single_agent_orchestration_chaining/requirements.txt +14 -0
  1164. agent_framework-1.0.0/samples/04-hosting/durabletask/04_single_agent_orchestration_chaining/sample.py +61 -0
  1165. agent_framework-1.0.0/samples/04-hosting/durabletask/04_single_agent_orchestration_chaining/worker.py +215 -0
  1166. agent_framework-1.0.0/samples/04-hosting/durabletask/05_multi_agent_orchestration_concurrency/README.md +71 -0
  1167. agent_framework-1.0.0/samples/04-hosting/durabletask/05_multi_agent_orchestration_concurrency/client.py +114 -0
  1168. agent_framework-1.0.0/samples/04-hosting/durabletask/05_multi_agent_orchestration_concurrency/requirements.txt +14 -0
  1169. agent_framework-1.0.0/samples/04-hosting/durabletask/05_multi_agent_orchestration_concurrency/sample.py +55 -0
  1170. agent_framework-1.0.0/samples/04-hosting/durabletask/05_multi_agent_orchestration_concurrency/worker.py +223 -0
  1171. agent_framework-1.0.0/samples/04-hosting/durabletask/06_multi_agent_orchestration_conditionals/README.md +89 -0
  1172. agent_framework-1.0.0/samples/04-hosting/durabletask/06_multi_agent_orchestration_conditionals/client.py +142 -0
  1173. agent_framework-1.0.0/samples/04-hosting/durabletask/06_multi_agent_orchestration_conditionals/requirements.txt +14 -0
  1174. agent_framework-1.0.0/samples/04-hosting/durabletask/06_multi_agent_orchestration_conditionals/sample.py +77 -0
  1175. agent_framework-1.0.0/samples/04-hosting/durabletask/06_multi_agent_orchestration_conditionals/worker.py +313 -0
  1176. agent_framework-1.0.0/samples/04-hosting/durabletask/07_single_agent_orchestration_hitl/README.md +87 -0
  1177. agent_framework-1.0.0/samples/04-hosting/durabletask/07_single_agent_orchestration_hitl/client.py +284 -0
  1178. agent_framework-1.0.0/samples/04-hosting/durabletask/07_single_agent_orchestration_hitl/requirements.txt +14 -0
  1179. agent_framework-1.0.0/samples/04-hosting/durabletask/07_single_agent_orchestration_hitl/sample.py +52 -0
  1180. agent_framework-1.0.0/samples/04-hosting/durabletask/07_single_agent_orchestration_hitl/worker.py +381 -0
  1181. agent_framework-1.0.0/samples/04-hosting/durabletask/README.md +132 -0
  1182. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/README.md +93 -0
  1183. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/backend/server.py +292 -0
  1184. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/.gitignore +7 -0
  1185. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/index.html +13 -0
  1186. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/package-lock.json +1861 -0
  1187. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/package.json +23 -0
  1188. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/src/App.tsx +996 -0
  1189. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/src/main.tsx +13 -0
  1190. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/src/styles.css +544 -0
  1191. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/src/vite-env.d.ts +3 -0
  1192. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/tsconfig.json +20 -0
  1193. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/tsconfig.node.json +13 -0
  1194. agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/vite.config.ts +12 -0
  1195. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/.gitignore +4 -0
  1196. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/README.md +318 -0
  1197. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/__init__.py +1 -0
  1198. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/app.py +651 -0
  1199. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/attachment_store.py +119 -0
  1200. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/index.html +57 -0
  1201. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/package-lock.json +1482 -0
  1202. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/package.json +27 -0
  1203. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/src/App.tsx +39 -0
  1204. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/src/main.tsx +15 -0
  1205. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/src/vite-env.d.ts +1 -0
  1206. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/tsconfig.json +21 -0
  1207. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/tsconfig.node.json +10 -0
  1208. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/vite.config.ts +24 -0
  1209. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/store.py +348 -0
  1210. agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/weather_widget.py +436 -0
  1211. agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/.env.example +3 -0
  1212. agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/README.md +46 -0
  1213. agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_agent_sample.py +154 -0
  1214. agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_mixed_sample.py +159 -0
  1215. agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_multiturn_sample.py +182 -0
  1216. agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_tool_calls_sample.py +88 -0
  1217. agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_traces_sample.py +114 -0
  1218. agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_workflow_sample.py +176 -0
  1219. agent_framework-1.0.0/samples/05-end-to-end/evaluation/red_teaming/.env.example +8 -0
  1220. agent_framework-1.0.0/samples/05-end-to-end/evaluation/red_teaming/README.md +204 -0
  1221. agent_framework-1.0.0/samples/05-end-to-end/evaluation/red_teaming/red_team_agent_sample.py +146 -0
  1222. agent_framework-1.0.0/samples/05-end-to-end/evaluation/self_reflection/.env.example +1 -0
  1223. agent_framework-1.0.0/samples/05-end-to-end/evaluation/self_reflection/README.md +75 -0
  1224. agent_framework-1.0.0/samples/05-end-to-end/evaluation/self_reflection/resources/suboptimal_groundedness_prompts.jsonl +31 -0
  1225. agent_framework-1.0.0/samples/05-end-to-end/evaluation/self_reflection/self_reflection.py +469 -0
  1226. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/README.md +145 -0
  1227. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_hosted_mcp/Dockerfile +16 -0
  1228. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_hosted_mcp/agent.yaml +30 -0
  1229. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_hosted_mcp/main.py +34 -0
  1230. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_hosted_mcp/requirements.txt +2 -0
  1231. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/.dockerignore +66 -0
  1232. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/.env.sample +3 -0
  1233. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/Dockerfile +16 -0
  1234. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/README.md +162 -0
  1235. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/agent.yaml +27 -0
  1236. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/main.py +144 -0
  1237. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/requirements.txt +2 -0
  1238. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_text_search_rag/Dockerfile +16 -0
  1239. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_text_search_rag/agent.yaml +33 -0
  1240. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_text_search_rag/main.py +123 -0
  1241. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_text_search_rag/requirements.txt +2 -0
  1242. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agents_in_workflow/Dockerfile +16 -0
  1243. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agents_in_workflow/agent.yaml +28 -0
  1244. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agents_in_workflow/main.py +52 -0
  1245. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agents_in_workflow/requirements.txt +2 -0
  1246. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/.dockerignore +51 -0
  1247. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/.env.sample +3 -0
  1248. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/Dockerfile +16 -0
  1249. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/README.md +157 -0
  1250. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/agent.yaml +24 -0
  1251. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/main.py +71 -0
  1252. agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/requirements.txt +2 -0
  1253. agent_framework-1.0.0/samples/05-end-to-end/m365-agent/.env.example +17 -0
  1254. agent_framework-1.0.0/samples/05-end-to-end/m365-agent/README.md +100 -0
  1255. agent_framework-1.0.0/samples/05-end-to-end/m365-agent/m365_agent_demo/app.py +247 -0
  1256. agent_framework-1.0.0/samples/05-end-to-end/neo4j_graphrag/README.md +43 -0
  1257. agent_framework-1.0.0/samples/05-end-to-end/neo4j_graphrag/main.py +112 -0
  1258. agent_framework-1.0.0/samples/05-end-to-end/purview_agent/README.md +144 -0
  1259. agent_framework-1.0.0/samples/05-end-to-end/purview_agent/sample_purview_agent.py +331 -0
  1260. agent_framework-1.0.0/samples/05-end-to-end/workflow_evaluation/.env.example +3 -0
  1261. agent_framework-1.0.0/samples/05-end-to-end/workflow_evaluation/README.md +30 -0
  1262. agent_framework-1.0.0/samples/05-end-to-end/workflow_evaluation/_tools.py +749 -0
  1263. agent_framework-1.0.0/samples/05-end-to-end/workflow_evaluation/create_workflow.py +398 -0
  1264. agent_framework-1.0.0/samples/05-end-to-end/workflow_evaluation/run_evaluation.py +240 -0
  1265. agent_framework-1.0.0/samples/AGENTS.md +116 -0
  1266. agent_framework-1.0.0/samples/README.md +178 -0
  1267. agent_framework-1.0.0/samples/SAMPLE_GUIDELINES.md +188 -0
  1268. agent_framework-1.0.0/samples/__init__.py +0 -0
  1269. agent_framework-1.0.0/samples/autogen-migration/.gitignore +2 -0
  1270. agent_framework-1.0.0/samples/autogen-migration/README.md +61 -0
  1271. agent_framework-1.0.0/samples/autogen-migration/orchestrations/01_round_robin_group_chat.py +193 -0
  1272. agent_framework-1.0.0/samples/autogen-migration/orchestrations/02_selector_group_chat.py +126 -0
  1273. agent_framework-1.0.0/samples/autogen-migration/orchestrations/03_swarm.py +245 -0
  1274. agent_framework-1.0.0/samples/autogen-migration/orchestrations/04_magentic_one.py +172 -0
  1275. agent_framework-1.0.0/samples/autogen-migration/pyrightconfig.json +5 -0
  1276. agent_framework-1.0.0/samples/autogen-migration/single_agent/01_basic_agent.py +75 -0
  1277. agent_framework-1.0.0/samples/autogen-migration/single_agent/02_agent_with_tool.py +97 -0
  1278. agent_framework-1.0.0/samples/autogen-migration/single_agent/03_agent_thread_and_stream.py +98 -0
  1279. agent_framework-1.0.0/samples/autogen-migration/single_agent/04_agent_as_tool.py +138 -0
  1280. agent_framework-1.0.0/samples/semantic-kernel-migration/README.md +72 -0
  1281. agent_framework-1.0.0/samples/semantic-kernel-migration/chat_completion/01_basic_chat_completion.py +63 -0
  1282. agent_framework-1.0.0/samples/semantic-kernel-migration/chat_completion/02_chat_completion_with_tool.py +71 -0
  1283. agent_framework-1.0.0/samples/semantic-kernel-migration/chat_completion/03_chat_completion_thread_and_stream.py +88 -0
  1284. agent_framework-1.0.0/samples/semantic-kernel-migration/copilot_studio/01_basic_copilot_studio_agent.py +51 -0
  1285. agent_framework-1.0.0/samples/semantic-kernel-migration/copilot_studio/02_copilot_studio_streaming.py +57 -0
  1286. agent_framework-1.0.0/samples/semantic-kernel-migration/openai_responses/01_basic_responses_agent.py +60 -0
  1287. agent_framework-1.0.0/samples/semantic-kernel-migration/openai_responses/02_responses_agent_with_tool.py +72 -0
  1288. agent_framework-1.0.0/samples/semantic-kernel-migration/openai_responses/03_responses_agent_structured_output.py +73 -0
  1289. agent_framework-1.0.0/samples/semantic-kernel-migration/orchestrations/concurrent_basic.py +139 -0
  1290. agent_framework-1.0.0/samples/semantic-kernel-migration/orchestrations/group_chat.py +289 -0
  1291. agent_framework-1.0.0/samples/semantic-kernel-migration/orchestrations/handoff.py +305 -0
  1292. agent_framework-1.0.0/samples/semantic-kernel-migration/orchestrations/magentic.py +209 -0
  1293. agent_framework-1.0.0/samples/semantic-kernel-migration/orchestrations/sequential.py +142 -0
  1294. agent_framework-1.0.0/samples/semantic-kernel-migration/processes/fan_out_fan_in_process.py +266 -0
  1295. agent_framework-1.0.0/samples/semantic-kernel-migration/processes/nested_process.py +292 -0
  1296. agent_framework-1.0.0/samples/shared/resources/countries.json +141 -0
  1297. agent_framework-1.0.0/samples/shared/resources/employees.pdf +76 -0
  1298. agent_framework-1.0.0/samples/shared/resources/weather.json +62 -0
  1299. agent_framework-1.0.0/samples/shared/sample_assets/sample.pdf +0 -0
  1300. agent_framework-1.0.0/samples/shared/sample_assets/sample_image.jpg +0 -0
  1301. agent_framework-1.0.0/scripts/__init__.py +5 -0
  1302. agent_framework-1.0.0/scripts/check_md_code_blocks.py +157 -0
  1303. agent_framework-1.0.0/scripts/dependencies/README.md +95 -0
  1304. agent_framework-1.0.0/scripts/dependencies/__init__.py +0 -0
  1305. agent_framework-1.0.0/scripts/dependencies/_dependency_bounds_lower_impl.py +1102 -0
  1306. agent_framework-1.0.0/scripts/dependencies/_dependency_bounds_runtime.py +86 -0
  1307. agent_framework-1.0.0/scripts/dependencies/_dependency_bounds_upper_impl.py +1291 -0
  1308. agent_framework-1.0.0/scripts/dependencies/add_dependency_to_project.py +118 -0
  1309. agent_framework-1.0.0/scripts/dependencies/upgrade_dev_dependencies.py +189 -0
  1310. agent_framework-1.0.0/scripts/dependencies/validate_dependency_bounds.py +505 -0
  1311. agent_framework-1.0.0/scripts/local_mcp_streamable_http_server.py +95 -0
  1312. agent_framework-1.0.0/scripts/run_tasks_in_changed_packages.py +99 -0
  1313. agent_framework-1.0.0/scripts/run_tasks_in_packages_if_exists.py +29 -0
  1314. agent_framework-1.0.0/scripts/sample_validation/README.md +182 -0
  1315. agent_framework-1.0.0/scripts/sample_validation/__init__.py +25 -0
  1316. agent_framework-1.0.0/scripts/sample_validation/__main__.py +155 -0
  1317. agent_framework-1.0.0/scripts/sample_validation/aggregate.py +224 -0
  1318. agent_framework-1.0.0/scripts/sample_validation/const.py +3 -0
  1319. agent_framework-1.0.0/scripts/sample_validation/create_dynamic_workflow_executor.py +324 -0
  1320. agent_framework-1.0.0/scripts/sample_validation/discovery.py +136 -0
  1321. agent_framework-1.0.0/scripts/sample_validation/models.py +161 -0
  1322. agent_framework-1.0.0/scripts/sample_validation/report.py +122 -0
  1323. agent_framework-1.0.0/scripts/sample_validation/run_dynamic_validation_workflow_executor.py +78 -0
  1324. agent_framework-1.0.0/scripts/sample_validation/workflow.py +47 -0
  1325. agent_framework-1.0.0/scripts/task_runner.py +218 -0
  1326. agent_framework-1.0.0/scripts/workspace_poe_tasks.py +698 -0
  1327. agent_framework-1.0.0/shared_tasks.toml +39 -0
  1328. agent_framework-1.0.0/tests/samples/getting_started/test_agent_samples.py +594 -0
  1329. agent_framework-1.0.0/tests/samples/getting_started/test_chat_client_samples.py +133 -0
  1330. agent_framework-1.0.0/tests/samples/getting_started/test_threads_samples.py +52 -0
  1331. agent_framework-1.0.0/uv.lock +7200 -0
  1332. agent_framework-0.0.0/PKG-INFO +0 -5
  1333. agent_framework-0.0.0/agent_framework.egg-info/PKG-INFO +0 -5
  1334. agent_framework-0.0.0/agent_framework.egg-info/SOURCES.txt +0 -5
  1335. agent_framework-0.0.0/agent_framework.egg-info/dependency_links.txt +0 -1
  1336. agent_framework-0.0.0/agent_framework.egg-info/top_level.txt +0 -1
  1337. agent_framework-0.0.0/pyproject.toml +0 -7
  1338. agent_framework-0.0.0/setup.cfg +0 -4
@@ -0,0 +1,85 @@
1
+ {
2
+ "version": "0.2",
3
+ "languageSettings": [
4
+ {
5
+ "languageId": "py",
6
+ "allowCompoundWords": true,
7
+ "locale": "en-US"
8
+ }
9
+ ],
10
+ "language": "en-US",
11
+ "patterns": [
12
+ {
13
+ "name": "import",
14
+ "pattern": "import [a-zA-Z0-9_]+"
15
+ },
16
+ {
17
+ "name": "from import",
18
+ "pattern": "from [a-zA-Z0-9_]+ import [a-zA-Z0-9_]+"
19
+ }
20
+ ],
21
+ "ignorePaths": [
22
+ "samples/**",
23
+ "notebooks/**"
24
+ ],
25
+ "words": [
26
+ "aeiou",
27
+ "agui",
28
+ "aiplatform",
29
+ "azuredocindex",
30
+ "azuredocs",
31
+ "azurefunctions",
32
+ "boto",
33
+ "contentvector",
34
+ "contoso",
35
+ "datamodel",
36
+ "desync",
37
+ "dotenv",
38
+ "endregion",
39
+ "entra",
40
+ "faiss",
41
+ "finalizer",
42
+ "finalizers",
43
+ "genai",
44
+ "generativeai",
45
+ "hnsw",
46
+ "httpx",
47
+ "huggingface",
48
+ "Instrumentor",
49
+ "logit",
50
+ "logprobs",
51
+ "lowlevel",
52
+ "Magentic",
53
+ "mistralai",
54
+ "mongocluster",
55
+ "nd",
56
+ "ndarray",
57
+ "nopep",
58
+ "NOSQL",
59
+ "ollama",
60
+ "Onnx",
61
+ "onyourdatatest",
62
+ "OPENAI",
63
+ "opentelemetry",
64
+ "OTEL",
65
+ "otlp",
66
+ "powerfx",
67
+ "protos",
68
+ "pydantic",
69
+ "pytestmark",
70
+ "qdrant",
71
+ "retrywrites",
72
+ "serde",
73
+ "streamable",
74
+ "superstep",
75
+ "supersteps",
76
+ "templating",
77
+ "uninstrument",
78
+ "vectordb",
79
+ "vectorizable",
80
+ "vectorizer",
81
+ "vectorstoremodel",
82
+ "vertexai",
83
+ "Weaviate"
84
+ ]
85
+ }
@@ -0,0 +1,47 @@
1
+ # Microsoft Foundry
2
+ FOUNDRY_PROJECT_ENDPOINT=""
3
+ # Model used for FoundryChatClient
4
+ FOUNDRY_MODEL=""
5
+ # Foundry Agents (prompt or hosted agents)
6
+ FOUNDRY_AGENT_NAME=""
7
+ FOUNDRY_AGENT_VERSION=""
8
+ # Microsoft Foundry Models endpoint, used by embeddings
9
+ FOUNDRY_MODELS_ENDPOINT=""
10
+ FOUNDRY_MODELS_API_KEY=""
11
+ FOUNDRY_EMBEDDING_MODEL=""
12
+ FOUNDRY_IMAGE_EMBEDDING_MODEL=""
13
+ # Bing connection for web search (optional, used by samples with web search)
14
+ BING_CONNECTION_ID=""
15
+ # Azure AI Search (optional, used by AzureAISearchContextProvider samples)
16
+ AZURE_SEARCH_ENDPOINT=""
17
+ AZURE_SEARCH_API_KEY=""
18
+ AZURE_SEARCH_INDEX_NAME=""
19
+ AZURE_SEARCH_SEMANTIC_CONFIG=""
20
+ AZURE_SEARCH_KNOWLEDGE_BASE_NAME=""
21
+ # Note: For agentic mode Knowledge Bases, also set AZURE_OPENAI_ENDPOINT below
22
+ # (different from AZURE_AI_PROJECT_ENDPOINT - Knowledge Base needs OpenAI endpoint for model calls)
23
+ # OpenAI
24
+ OPENAI_API_KEY=""
25
+ OPENAI_CHAT_COMPLETION_MODEL=""
26
+ OPENAI_CHAT_MODEL=""
27
+ # Azure OpenAI
28
+ AZURE_OPENAI_ENDPOINT=""
29
+ AZURE_OPENAI_CHAT_COMPLETION_MODEL=""
30
+ AZURE_OPENAI_CHAT_MODEL=""
31
+ # Mem0
32
+ MEM0_API_KEY=""
33
+ # Copilot Studio
34
+ COPILOTSTUDIOAGENT__ENVIRONMENTID=""
35
+ COPILOTSTUDIOAGENT__SCHEMANAME=""
36
+ COPILOTSTUDIOAGENT__TENANTID=""
37
+ COPILOTSTUDIOAGENT__AGENTAPPID=""
38
+ # Anthropic
39
+ ANTHROPIC_API_KEY=""
40
+ ANTHROPIC_MODEL=""
41
+ # Ollama
42
+ OLLAMA_ENDPOINT=""
43
+ OLLAMA_MODEL=""
44
+ # Observability
45
+ ENABLE_INSTRUMENTATION=true
46
+ ENABLE_SENSITIVE_DATA=true
47
+ OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317/"
@@ -0,0 +1,6 @@
1
+ ---
2
+ applyTo: 'python/**'
3
+ ---
4
+
5
+ See [AGENTS.md](../../AGENTS.md) for project structure and package documentation.
6
+ Detailed conventions are in the agent skills under `.github/skills/`.
@@ -0,0 +1,95 @@
1
+ ---
2
+ name: python-code-quality
3
+ description: >
4
+ Code quality checks, linting, formatting, and type checking commands for the
5
+ Agent Framework Python codebase. Use this when running checks, fixing lint
6
+ errors, or troubleshooting CI failures.
7
+ ---
8
+
9
+ # Python Code Quality
10
+
11
+ ## Quick Commands
12
+
13
+ All commands run from the `python/` directory:
14
+
15
+ ```bash
16
+ # Syntax formatting + checks (parallel across packages by default)
17
+ uv run poe syntax
18
+ uv run poe syntax -P core
19
+ uv run poe syntax -F # Format only
20
+ uv run poe syntax -C # Check only
21
+ uv run poe syntax -S # Samples only
22
+
23
+ # Type checking
24
+ uv run poe pyright # Pyright fan-out across packages
25
+ uv run poe pyright -P core
26
+ uv run poe pyright -A
27
+ uv run poe mypy # MyPy fan-out across packages
28
+ uv run poe mypy -P core
29
+ uv run poe mypy -A
30
+ uv run poe typing # Both pyright and mypy
31
+ uv run poe typing -P core
32
+ uv run poe typing -A
33
+
34
+ # All package-level checks in parallel (syntax + pyright)
35
+ uv run poe check-packages
36
+
37
+ # Full check (packages + samples + tests + markdown)
38
+ uv run poe check
39
+ uv run poe check -P core
40
+
41
+ # Samples only
42
+ uv run poe check -S
43
+ uv run poe pyright -S
44
+
45
+ # Markdown code blocks
46
+ uv run poe markdown-code-lint
47
+ ```
48
+
49
+ ## Pre-commit Hooks (prek)
50
+
51
+ Prek hooks run automatically on commit. They stay lightweight and only check
52
+ changed files.
53
+
54
+ ```bash
55
+ # Install hooks
56
+ uv run poe prek-install
57
+
58
+ # Run all hooks manually
59
+ uv run prek run -a
60
+
61
+ # Run on last commit
62
+ uv run prek run --last-commit
63
+ ```
64
+
65
+ They run changed-package syntax formatting/checking, markdown code lint only
66
+ when markdown files change, and sample syntax lint/pyright only when files
67
+ under `samples/` change.
68
+ They intentionally do not run workspace `pyright` or `mypy` by default.
69
+
70
+ ## Ruff Configuration
71
+
72
+ - Line length: 120
73
+ - Target: Python 3.10+
74
+ - Auto-fix enabled
75
+ - Rules: ASYNC, B, CPY, D, E, ERA, F, FIX, I, INP, ISC, Q, RET, RSE, RUF, SIM, T20, TD, W, T100, S
76
+ - Scripts directory is excluded from checks
77
+
78
+ ## Pyright Configuration
79
+
80
+ - Strict mode enabled
81
+ - Excludes: tests, .venv, packages/devui/frontend
82
+
83
+ ## Parallel Execution
84
+
85
+ The task runner (`scripts/task_runner.py`) executes the cross-product of
86
+ (package × task) in parallel using ThreadPoolExecutor. Single items run
87
+ in-process with streaming output.
88
+
89
+ ## CI Workflow
90
+
91
+ CI splits into 4 parallel jobs:
92
+ 1. **Pre-commit hooks** — lightweight hooks (SKIP=poe-check)
93
+ 2. **Package checks** — syntax/pyright via check-packages
94
+ 3. **Samples & markdown** — `check -S` plus `markdown-code-lint`
95
+ 4. **Mypy** — change-detected mypy checks
@@ -0,0 +1,114 @@
1
+ ---
2
+ name: python-development
3
+ description: >
4
+ Coding standards, conventions, and patterns for developing Python code in the
5
+ Agent Framework repository. Use this when writing or modifying Python source
6
+ files in the python/ directory.
7
+ ---
8
+
9
+ # Python Development Standards
10
+
11
+ ## File Header
12
+
13
+ Every `.py` file must start with:
14
+
15
+ ```python
16
+ # Copyright (c) Microsoft. All rights reserved.
17
+ ```
18
+
19
+ ## Type Annotations
20
+
21
+ - Always specify return types and parameter types
22
+ - Use `Type | None` instead of `Optional[Type]`
23
+ - Use `from __future__ import annotations` to enable postponed evaluation
24
+ - Use suffix `T` for TypeVar names: `ChatResponseT = TypeVar("ChatResponseT", bound=ChatResponse)`
25
+ - Use `Mapping` instead of `MutableMapping` for read-only input parameters
26
+ - Prefer `# type: ignore[...]` over unnecessary casts, or `isinstance` checks, when these are internally called and executed methods
27
+ But make sure the ignore is specific for both mypy and pyright so that we don't miss other mistakes
28
+
29
+ ## Function Parameters
30
+
31
+ - Positional parameters: up to 3 fully expected parameters
32
+ - Use keyword-only arguments (after `*`) for optional parameters
33
+ - Provide string-based overrides to avoid requiring extra imports:
34
+
35
+ ```python
36
+ def create_agent(name: str, tool_mode: Literal['auto', 'required', 'none'] | ChatToolMode) -> Agent:
37
+ if isinstance(tool_mode, str):
38
+ tool_mode = ChatToolMode(tool_mode)
39
+ ```
40
+
41
+ - Avoid shadowing built-ins (use `next_handler` instead of `next`)
42
+ - Avoid `**kwargs` unless needed for subclass extensibility; prefer named parameters
43
+
44
+ ## Docstrings
45
+
46
+ Use Google-style docstrings for all public APIs:
47
+
48
+ ```python
49
+ def equal(arg1: str, arg2: str) -> bool:
50
+ """Compares two strings and returns True if they are the same.
51
+
52
+ Args:
53
+ arg1: The first string to compare.
54
+ arg2: The second string to compare.
55
+
56
+ Returns:
57
+ True if the strings are the same, False otherwise.
58
+
59
+ Raises:
60
+ ValueError: If one of the strings is empty.
61
+ """
62
+ ```
63
+
64
+ - Always document Agent Framework specific exceptions
65
+ - Explicitly use `Keyword Args` when applicable
66
+ - Only document standard Python exceptions when the condition is non-obvious
67
+
68
+ ## Import Structure
69
+
70
+ ```python
71
+ # Core
72
+ from agent_framework import Agent, Message, tool
73
+
74
+ # Components
75
+ from agent_framework.observability import enable_instrumentation
76
+
77
+ # Connectors (lazy-loaded)
78
+ from agent_framework.openai import OpenAIChatClient
79
+ from agent_framework.foundry import FoundryChatClient
80
+ ```
81
+
82
+ ## Public API and Exports
83
+
84
+ In `__init__.py` files that define package-level public APIs, use direct re-export imports plus an explicit
85
+ `__all__`. Avoid identity aliases like `from ._agents import Agent as Agent`, and avoid
86
+ `from module import *`.
87
+
88
+ Do not define `__all__` in internal non-`__init__.py` modules. Exception: modules intentionally exposed as a
89
+ public import surface (for example, `agent_framework.observability`) should define `__all__`.
90
+
91
+ ```python
92
+ __all__ = ["Agent", "Message", "ChatResponse"]
93
+
94
+ from ._agents import Agent
95
+ from ._types import Message, ChatResponse
96
+ ```
97
+
98
+ ## Performance Guidelines
99
+
100
+ - Cache expensive computations (e.g., JSON schema generation)
101
+ - Prefer `match/case` on `.type` attribute over `isinstance()` in hot paths
102
+ - Avoid redundant serialization — compute once, reuse
103
+
104
+ ## Style
105
+
106
+ - Line length: 120 characters
107
+ - Format only files you changed, not the entire codebase
108
+ - Prefer attributes over inheritance when parameters are mostly the same
109
+ - Async by default — assume everything is asynchronous
110
+
111
+ ## Naming Conventions for Connectors
112
+
113
+ - `_prepare_<object>_for_<purpose>` for methods that prepare data for external services
114
+ - `_parse_<object>_from_<source>` for methods that process data from external services
@@ -0,0 +1,238 @@
1
+ # Copyright (c) Microsoft. All rights reserved.
2
+
3
+ ---
4
+ name: python-feature-lifecycle
5
+ description: >
6
+ Guidance for package and feature lifecycle in the Agent Framework Python
7
+ codebase, including stage meanings, feature-stage decorators, feature enums,
8
+ and how to move APIs from one stage to the next.
9
+ ---
10
+
11
+ # Python Feature Lifecycle
12
+
13
+ ## Two lifecycle levels
14
+
15
+ Agent Framework uses lifecycle at two different levels:
16
+
17
+ 1. **Package lifecycle** — the maturity of the package as a whole
18
+ 2. **Feature lifecycle** — the maturity of a specific API or feature inside that package
19
+
20
+ These are related, but they are **not the same thing**.
21
+
22
+ - The **package stage is the default** for everything in the package.
23
+ - **Feature-stage decorators are only for exceptions** when a feature is behind the package's default stage.
24
+ - Do **not** decorate every class or function just because the package is experimental or release candidate.
25
+
26
+ ### Important default
27
+
28
+ If a package is still in **beta / experimental preview**, all public APIs in that package are experimental by default.
29
+
30
+ - Do **not** add `@experimental(...)` everywhere in that package.
31
+ - The package stage already communicates that default.
32
+
33
+ Once a package moves forward, you can keep individual features behind:
34
+
35
+ - If a package moves to **release candidate**, a feature may remain **experimental**
36
+ - If a package moves to **released / GA**, a feature may remain **experimental** or **release candidate**
37
+
38
+ That is the main use case for feature-stage decorators.
39
+
40
+ ## The four stages
41
+
42
+ ### 1. Experimental
43
+
44
+ Use for features that are still unstable and may change or be removed without notice.
45
+
46
+ Feature-level code pattern:
47
+
48
+ ```python
49
+ from ._feature_stage import ExperimentalFeature, experimental
50
+
51
+
52
+ @experimental(feature_id=ExperimentalFeature.MY_FEATURE)
53
+ class MyFeature:
54
+ ...
55
+ ```
56
+
57
+ Behavior:
58
+
59
+ - Adds an experimental warning block to the docstring
60
+ - Records feature metadata on the decorated object
61
+ - Emits a runtime warning the first time the feature is used (once per feature by default)
62
+
63
+ Enum setup:
64
+
65
+ - Add an all-caps member to `ExperimentalFeature`
66
+ - Reuse the same feature ID across all APIs that belong to the same conceptual feature
67
+
68
+ ### 2. Release candidate
69
+
70
+ Use for features that are nearly stable but may still receive small refinements before GA.
71
+
72
+ Feature-level code pattern:
73
+
74
+ ```python
75
+ from ._feature_stage import ReleaseCandidateFeature, release_candidate
76
+
77
+
78
+ @release_candidate(feature_id=ReleaseCandidateFeature.MY_FEATURE)
79
+ class MyFeature:
80
+ ...
81
+ ```
82
+
83
+ Behavior:
84
+
85
+ - Adds a release-candidate note to the docstring
86
+ - Records feature metadata on the decorated object
87
+ - Does **not** emit the experimental warning
88
+
89
+ Enum setup:
90
+
91
+ - Add an all-caps member to `ReleaseCandidateFeature`
92
+
93
+ ### 3. Released
94
+
95
+ Use for stable GA APIs.
96
+
97
+ Code pattern:
98
+
99
+ - **No feature-stage decorator**
100
+ - **No entry** in `ExperimentalFeature`
101
+ - **No entry** in `ReleaseCandidateFeature`
102
+
103
+ If a feature is fully released, remove any stage-specific feature annotation.
104
+
105
+ ### 4. Deprecated
106
+
107
+ Use for APIs that still exist but should not be used for new code.
108
+
109
+ Code pattern:
110
+
111
+ ```python
112
+ import sys
113
+
114
+ if sys.version_info >= (3, 13):
115
+ from warnings import deprecated # type: ignore # pragma: no cover
116
+ else:
117
+ from typing_extensions import deprecated # type: ignore # pragma: no cover
118
+
119
+
120
+ @deprecated("MyOldFeature is deprecated. Use MyNewFeature instead.")
121
+ class MyOldFeature:
122
+ ...
123
+ ```
124
+
125
+ Behavior:
126
+
127
+ - Uses the repository's version-conditional deprecation import pattern
128
+ - Should describe what to use instead
129
+
130
+ Deprecated APIs should not also carry feature-stage decorators.
131
+
132
+ ## Expected decorators by stage
133
+
134
+ | Feature stage | Expected annotation |
135
+ | --- | --- |
136
+ | Experimental | `@experimental(feature_id=ExperimentalFeature.X)` |
137
+ | Release candidate | `@release_candidate(feature_id=ReleaseCandidateFeature.X)` |
138
+ | Released | No feature-stage decorator |
139
+ | Deprecated | `@deprecated("...")` |
140
+
141
+ ## Feature enums
142
+
143
+ The feature enums are the inventory of currently staged features:
144
+
145
+ - `ExperimentalFeature`
146
+ - `ReleaseCandidateFeature`
147
+
148
+ Guidance:
149
+
150
+ - Use one enum member per conceptual feature, not per class
151
+ - Ideally, an ADR already defines the overall feature boundary and therefore the feature ID that staged APIs for that feature should reuse
152
+ - Keep feature IDs all caps
153
+ - Reuse the same member across related APIs for the same feature
154
+ - Remove enum members when the feature no longer belongs to that stage
155
+ - Treat these enums as **current-stage inventories**, not as a stable consumer introspection API
156
+
157
+ Minimal consumer guidance:
158
+
159
+ - Treat `__feature_stage__` and `__feature_id__` as optional staged metadata, not as stable contracts
160
+ - Use `getattr(obj, "__feature_stage__", None)` and `getattr(obj, "__feature_id__", None)` rather than direct attribute access
161
+ - Treat missing metadata as "no explicit feature-stage annotation"
162
+ - For warning filters while a feature is staged, match the literal feature ID string
163
+ - Do **not** rely on `ExperimentalFeature.X`, `ReleaseCandidateFeature.X`, or the continued presence of `__feature_id__` after a feature moves stages or is released
164
+
165
+ For consumers, the enums are also re-exported from `agent_framework`.
166
+
167
+ For internal implementation code inside `agent_framework`, continue to import the enums and decorators from `._feature_stage`.
168
+
169
+ ## Package stage vs feature stage
170
+
171
+ Use the following rules:
172
+
173
+ ### Package is experimental / beta
174
+
175
+ - All public APIs are experimental by default
176
+ - Do **not** add feature-stage decorators just to restate that
177
+ - Only introduce feature-level annotations later if the package advances first
178
+
179
+ ### Package is release candidate
180
+
181
+ - All public APIs are RC by default
182
+ - Do **not** decorate everything
183
+ - Add `@experimental(...)` only for features that are intentionally still behind the package
184
+
185
+ ### Package is released / GA
186
+
187
+ - All public APIs are released by default
188
+ - Add `@experimental(...)` or `@release_candidate(...)` only for features still being held back
189
+
190
+ ## Moving a feature from one stage to the next
191
+
192
+ ### Experimental -> Release candidate
193
+
194
+ 1. Move the feature ID from `ExperimentalFeature` to `ReleaseCandidateFeature`
195
+ 2. Replace `@experimental(...)` with `@release_candidate(...)`
196
+ 3. Update any tests or docs that mention the old stage
197
+
198
+ ### Experimental -> Released
199
+
200
+ 1. Remove `@experimental(...)`
201
+ 2. Remove the feature from `ExperimentalFeature`
202
+ 3. Do not add a replacement feature-stage decorator
203
+
204
+ ### Release candidate -> Released
205
+
206
+ 1. Remove `@release_candidate(...)`
207
+ 2. Remove the feature from `ReleaseCandidateFeature`
208
+ 3. Leave the API undecorated
209
+
210
+ ### Any stage -> Deprecated
211
+
212
+ 1. Remove any feature-stage decorator
213
+ 2. Remove the feature from the stage enum
214
+ 3. Add `@deprecated("...")`
215
+ 4. Update docs/tests to reflect the replacement path
216
+
217
+ ## Promotion guidance
218
+
219
+ Features do **not** have to pass through every stage.
220
+
221
+ - It is usually a good idea to move features in order when that reflects reality
222
+ - But it is completely acceptable to go **experimental -> released**
223
+ - Do **not** force a feature through release candidate if there is no real RC period
224
+
225
+ Likewise, when a package advances, do not automatically move every feature with it.
226
+
227
+ - Promote features based on actual readiness
228
+ - Keep lagging features explicitly marked only when they are behind the package default
229
+
230
+ ## Practical rules of thumb
231
+
232
+ - **Package default first, feature exceptions second**
233
+ - **Do not decorate everything in preview packages**
234
+ - **Do not double-annotate members of an already-staged class**
235
+ - **Use enums only for currently staged features**
236
+ - **Do not treat stage enums as a compatibility contract**
237
+ - **Treat `__feature_stage__` and `__feature_id__` as optional metadata; use `getattr`**
238
+ - **Remove stage annotations once a feature is released or deprecated**