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.
- agent_framework-1.0.0/.cspell.json +85 -0
- agent_framework-1.0.0/.env.example +47 -0
- agent_framework-1.0.0/.github/instructions/python.instructions.md +6 -0
- agent_framework-1.0.0/.github/skills/python-code-quality/SKILL.md +95 -0
- agent_framework-1.0.0/.github/skills/python-development/SKILL.md +114 -0
- agent_framework-1.0.0/.github/skills/python-feature-lifecycle/SKILL.md +238 -0
- agent_framework-1.0.0/.github/skills/python-package-management/SKILL.md +230 -0
- agent_framework-1.0.0/.github/skills/python-samples/SKILL.md +80 -0
- agent_framework-1.0.0/.github/skills/python-testing/SKILL.md +157 -0
- agent_framework-1.0.0/.pre-commit-config.yaml +71 -0
- agent_framework-1.0.0/.vscode/launch.json +34 -0
- agent_framework-1.0.0/.vscode/settings.json +39 -0
- agent_framework-1.0.0/.vscode/tasks.json +247 -0
- agent_framework-1.0.0/AGENTS.md +94 -0
- agent_framework-1.0.0/CHANGELOG.md +886 -0
- agent_framework-1.0.0/CODING_STANDARD.md +742 -0
- agent_framework-1.0.0/DEV_SETUP.md +425 -0
- agent_framework-1.0.0/LICENSE +21 -0
- agent_framework-1.0.0/PACKAGE_STATUS.md +71 -0
- agent_framework-1.0.0/PKG-INFO +286 -0
- agent_framework-1.0.0/README.md +261 -0
- agent_framework-1.0.0/agent_framework_meta/__init__.py +31 -0
- agent_framework-1.0.0/devsetup.sh +10 -0
- agent_framework-1.0.0/packages/a2a/AGENTS.md +23 -0
- agent_framework-1.0.0/packages/a2a/LICENSE +21 -0
- agent_framework-1.0.0/packages/a2a/README.md +20 -0
- agent_framework-1.0.0/packages/a2a/agent_framework_a2a/__init__.py +16 -0
- agent_framework-1.0.0/packages/a2a/agent_framework_a2a/_agent.py +734 -0
- agent_framework-1.0.0/packages/a2a/pyproject.toml +98 -0
- agent_framework-1.0.0/packages/a2a/tests/test_a2a_agent.py +1391 -0
- agent_framework-1.0.0/packages/ag-ui/AGENTS.md +45 -0
- agent_framework-1.0.0/packages/ag-ui/LICENSE +21 -0
- agent_framework-1.0.0/packages/ag-ui/README.md +195 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/__init__.py +38 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_agent.py +128 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_agent_run.py +1085 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_client.py +469 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_endpoint.py +150 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_event_converters.py +234 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_http_service.py +170 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_message_adapters.py +1034 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_orchestration/__init__.py +1 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_orchestration/_helpers.py +247 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_orchestration/_predictive_state.py +232 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_orchestration/_tooling.py +126 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_run_common.py +568 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_types.py +171 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_utils.py +276 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_workflow.py +82 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/_workflow_run.py +741 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui/py.typed +1 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/.env.example +3 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/.vscode/settings.json +5 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/README.md +336 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/__init__.py +7 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/__main__.py +8 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/__init__.py +27 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/document_writer_agent.py +69 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/human_in_the_loop_agent.py +86 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/recipe_agent.py +134 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/research_assistant_agent.py +111 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/simple_agent.py +23 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/subgraphs_agent.py +405 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/task_planner_agent.py +84 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/task_steps_agent.py +338 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/ui_generator_agent.py +193 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/agents/weather_agent.py +81 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/server/__init__.py +1 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/server/api/backend_tool_rendering.py +28 -0
- agent_framework-1.0.0/packages/ag-ui/agent_framework_ag_ui_examples/server/main.py +164 -0
- agent_framework-1.0.0/packages/ag-ui/getting_started/README.md +460 -0
- agent_framework-1.0.0/packages/ag-ui/getting_started/client.py +78 -0
- agent_framework-1.0.0/packages/ag-ui/getting_started/client_advanced.py +245 -0
- agent_framework-1.0.0/packages/ag-ui/getting_started/client_with_agent.py +150 -0
- agent_framework-1.0.0/packages/ag-ui/getting_started/server.py +144 -0
- agent_framework-1.0.0/packages/ag-ui/pyproject.toml +81 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/conftest.py +335 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/event_stream.py +175 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/__init__.py +1 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/conftest.py +13 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_agentic_chat.py +140 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_backend_tools.py +236 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_generative_ui_agent.py +91 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_generative_ui_tool.py +135 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_hitl.py +196 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_predictive_state.py +130 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_shared_state.py +110 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_subgraphs.py +211 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/golden/test_scenario_workflow.py +962 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/sse_helpers.py +72 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_ag_ui_client.py +461 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_agent_wrapper_comprehensive.py +1407 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_approval_result_event.py +450 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_endpoint.py +605 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_event_converters.py +338 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_helpers.py +502 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_http_round_trip.py +346 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_http_service.py +250 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_message_adapters.py +1762 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_message_hygiene.py +402 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_multi_turn.py +332 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_predictive_state.py +320 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_public_exports.py +24 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_run.py +1503 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_run_common.py +122 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_service_thread_id.py +82 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_structured_output.py +263 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_subgraphs_example_agent.py +238 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_tooling.py +231 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_types.py +252 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_utils.py +529 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_workflow_agent.py +112 -0
- agent_framework-1.0.0/packages/ag-ui/tests/ag_ui/test_workflow_run.py +1674 -0
- agent_framework-1.0.0/packages/anthropic/AGENTS.md +28 -0
- agent_framework-1.0.0/packages/anthropic/LICENSE +21 -0
- agent_framework-1.0.0/packages/anthropic/README.md +24 -0
- agent_framework-1.0.0/packages/anthropic/agent_framework_anthropic/__init__.py +26 -0
- agent_framework-1.0.0/packages/anthropic/agent_framework_anthropic/_bedrock_client.py +168 -0
- agent_framework-1.0.0/packages/anthropic/agent_framework_anthropic/_chat_client.py +1485 -0
- agent_framework-1.0.0/packages/anthropic/agent_framework_anthropic/_foundry_client.py +166 -0
- agent_framework-1.0.0/packages/anthropic/agent_framework_anthropic/_vertex_client.py +160 -0
- agent_framework-1.0.0/packages/anthropic/pyproject.toml +98 -0
- agent_framework-1.0.0/packages/anthropic/tests/assets/sample_image.jpg +0 -0
- agent_framework-1.0.0/packages/anthropic/tests/conftest.py +56 -0
- agent_framework-1.0.0/packages/anthropic/tests/test_anthropic_client.py +2695 -0
- agent_framework-1.0.0/packages/anthropic/tests/test_anthropic_provider_clients.py +156 -0
- agent_framework-1.0.0/packages/azure-ai-search/AGENTS.md +28 -0
- agent_framework-1.0.0/packages/azure-ai-search/LICENSE +21 -0
- agent_framework-1.0.0/packages/azure-ai-search/README.md +23 -0
- agent_framework-1.0.0/packages/azure-ai-search/agent_framework_azure_ai_search/__init__.py +16 -0
- agent_framework-1.0.0/packages/azure-ai-search/agent_framework_azure_ai_search/_context_provider.py +998 -0
- agent_framework-1.0.0/packages/azure-ai-search/pyproject.toml +100 -0
- agent_framework-1.0.0/packages/azure-ai-search/tests/test_aisearch_context_provider.py +1689 -0
- agent_framework-1.0.0/packages/azure-cosmos/AGENTS.md +30 -0
- agent_framework-1.0.0/packages/azure-cosmos/LICENSE +21 -0
- agent_framework-1.0.0/packages/azure-cosmos/README.md +47 -0
- agent_framework-1.0.0/packages/azure-cosmos/agent_framework_azure_cosmos/__init__.py +15 -0
- agent_framework-1.0.0/packages/azure-cosmos/agent_framework_azure_cosmos/_history_provider.py +285 -0
- agent_framework-1.0.0/packages/azure-cosmos/pyproject.toml +101 -0
- agent_framework-1.0.0/packages/azure-cosmos/tests/test_cosmos_history_provider.py +411 -0
- agent_framework-1.0.0/packages/azurefunctions/AGENTS.md +23 -0
- agent_framework-1.0.0/packages/azurefunctions/LICENSE +21 -0
- agent_framework-1.0.0/packages/azurefunctions/README.md +28 -0
- agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/__init__.py +15 -0
- agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_app.py +1400 -0
- agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_context.py +171 -0
- agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_entities.py +125 -0
- agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_errors.py +11 -0
- agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_orchestration.py +222 -0
- agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_serialization.py +183 -0
- agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/_workflow.py +993 -0
- agent_framework-1.0.0/packages/azurefunctions/agent_framework_azurefunctions/py.typed +0 -0
- agent_framework-1.0.0/packages/azurefunctions/pyproject.toml +104 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/.env.example +10 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/README.md +81 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/conftest.py +577 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_01_single_agent.py +115 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_02_multi_agent.py +64 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_03_reliable_streaming.py +123 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_04_single_agent_orchestration_chaining.py +57 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_05_multi_agent_orchestration_concurrency.py +59 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_06_multi_agent_orchestration_conditionals.py +77 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_07_single_agent_orchestration_hitl.py +185 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_09_workflow_shared_state.py +97 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_10_workflow_no_shared_state.py +113 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_11_workflow_parallel.py +144 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/integration_tests/test_12_workflow_hitl.py +216 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/test_app.py +1735 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/test_entities.py +313 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/test_errors.py +38 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/test_func_utils.py +450 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/test_multi_agent.py +155 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/test_orchestration.py +399 -0
- agent_framework-1.0.0/packages/azurefunctions/tests/test_workflow.py +328 -0
- agent_framework-1.0.0/packages/bedrock/AGENTS.md +25 -0
- agent_framework-1.0.0/packages/bedrock/LICENSE +21 -0
- agent_framework-1.0.0/packages/bedrock/README.md +19 -0
- agent_framework-1.0.0/packages/bedrock/agent_framework_bedrock/__init__.py +22 -0
- agent_framework-1.0.0/packages/bedrock/agent_framework_bedrock/_chat_client.py +757 -0
- agent_framework-1.0.0/packages/bedrock/agent_framework_bedrock/_embedding_client.py +294 -0
- agent_framework-1.0.0/packages/bedrock/pyproject.toml +97 -0
- agent_framework-1.0.0/packages/bedrock/tests/bedrock/test_bedrock_embedding_client.py +169 -0
- agent_framework-1.0.0/packages/bedrock/tests/test_bedrock_client.py +139 -0
- agent_framework-1.0.0/packages/bedrock/tests/test_bedrock_settings.py +136 -0
- agent_framework-1.0.0/packages/chatkit/.gitignore +3 -0
- agent_framework-1.0.0/packages/chatkit/AGENTS.md +27 -0
- agent_framework-1.0.0/packages/chatkit/LICENSE +21 -0
- agent_framework-1.0.0/packages/chatkit/README.md +127 -0
- agent_framework-1.0.0/packages/chatkit/agent_framework_chatkit/__init__.py +25 -0
- agent_framework-1.0.0/packages/chatkit/agent_framework_chatkit/_converter.py +608 -0
- agent_framework-1.0.0/packages/chatkit/agent_framework_chatkit/_streaming.py +104 -0
- agent_framework-1.0.0/packages/chatkit/agent_framework_chatkit/py.typed +0 -0
- agent_framework-1.0.0/packages/chatkit/pyproject.toml +99 -0
- agent_framework-1.0.0/packages/chatkit/tests/test_converter.py +422 -0
- agent_framework-1.0.0/packages/chatkit/tests/test_streaming.py +143 -0
- agent_framework-1.0.0/packages/claude/AGENTS.md +28 -0
- agent_framework-1.0.0/packages/claude/LICENSE +21 -0
- agent_framework-1.0.0/packages/claude/README.md +11 -0
- agent_framework-1.0.0/packages/claude/agent_framework_claude/__init__.py +18 -0
- agent_framework-1.0.0/packages/claude/agent_framework_claude/_agent.py +817 -0
- agent_framework-1.0.0/packages/claude/pyproject.toml +99 -0
- agent_framework-1.0.0/packages/claude/tests/test_claude_agent.py +1135 -0
- agent_framework-1.0.0/packages/copilotstudio/AGENTS.md +28 -0
- agent_framework-1.0.0/packages/copilotstudio/LICENSE +21 -0
- agent_framework-1.0.0/packages/copilotstudio/README.md +97 -0
- agent_framework-1.0.0/packages/copilotstudio/agent_framework_copilotstudio/__init__.py +13 -0
- agent_framework-1.0.0/packages/copilotstudio/agent_framework_copilotstudio/_acquire_token.py +95 -0
- agent_framework-1.0.0/packages/copilotstudio/agent_framework_copilotstudio/_agent.py +338 -0
- agent_framework-1.0.0/packages/copilotstudio/pyproject.toml +98 -0
- agent_framework-1.0.0/packages/copilotstudio/tests/conftest.py +91 -0
- agent_framework-1.0.0/packages/copilotstudio/tests/test_acquire_token.py +243 -0
- agent_framework-1.0.0/packages/copilotstudio/tests/test_copilot_agent.py +320 -0
- agent_framework-1.0.0/packages/core/.vscode/launch.json +15 -0
- agent_framework-1.0.0/packages/core/AGENTS.md +143 -0
- agent_framework-1.0.0/packages/core/LICENSE +21 -0
- agent_framework-1.0.0/packages/core/README.md +225 -0
- agent_framework-1.0.0/packages/core/agent_framework/__init__.py +446 -0
- agent_framework-1.0.0/packages/core/agent_framework/_agents.py +1742 -0
- agent_framework-1.0.0/packages/core/agent_framework/_clients.py +966 -0
- agent_framework-1.0.0/packages/core/agent_framework/_compaction.py +1313 -0
- agent_framework-1.0.0/packages/core/agent_framework/_docstrings.py +110 -0
- agent_framework-1.0.0/packages/core/agent_framework/_evaluation.py +1923 -0
- agent_framework-1.0.0/packages/core/agent_framework/_feature_stage.py +279 -0
- agent_framework-1.0.0/packages/core/agent_framework/_mcp.py +1682 -0
- agent_framework-1.0.0/packages/core/agent_framework/_middleware.py +1448 -0
- agent_framework-1.0.0/packages/core/agent_framework/_serialization.py +616 -0
- agent_framework-1.0.0/packages/core/agent_framework/_sessions.py +839 -0
- agent_framework-1.0.0/packages/core/agent_framework/_settings.py +293 -0
- agent_framework-1.0.0/packages/core/agent_framework/_skills.py +1546 -0
- agent_framework-1.0.0/packages/core/agent_framework/_telemetry.py +68 -0
- agent_framework-1.0.0/packages/core/agent_framework/_tools.py +2489 -0
- agent_framework-1.0.0/packages/core/agent_framework/_types.py +3597 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/__init__.py +1 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_agent.py +953 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_agent_executor.py +482 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_agent_utils.py +17 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_checkpoint.py +423 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_checkpoint_encoding.py +167 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_const.py +24 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_conversation_history.py +26 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_edge.py +945 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_edge_runner.py +401 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_events.py +425 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_executor.py +754 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_function_executor.py +348 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_message_utils.py +42 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_model_utils.py +51 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_request_info_mixin.py +369 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_runner.py +374 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_runner_context.py +482 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_state.py +127 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_typing_utils.py +379 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_validation.py +436 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_viz.py +442 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_workflow.py +938 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_workflow_builder.py +692 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_workflow_context.py +453 -0
- agent_framework-1.0.0/packages/core/agent_framework/_workflows/_workflow_executor.py +681 -0
- agent_framework-1.0.0/packages/core/agent_framework/a2a/__init__.py +32 -0
- agent_framework-1.0.0/packages/core/agent_framework/a2a/__init__.pyi +9 -0
- agent_framework-1.0.0/packages/core/agent_framework/ag_ui/__init__.py +41 -0
- agent_framework-1.0.0/packages/core/agent_framework/ag_ui/__init__.pyi +21 -0
- agent_framework-1.0.0/packages/core/agent_framework/amazon/__init__.py +50 -0
- agent_framework-1.0.0/packages/core/agent_framework/amazon/__init__.pyi +24 -0
- agent_framework-1.0.0/packages/core/agent_framework/anthropic/__init__.py +56 -0
- agent_framework-1.0.0/packages/core/agent_framework/anthropic/__init__.pyi +28 -0
- agent_framework-1.0.0/packages/core/agent_framework/azure/__init__.py +39 -0
- agent_framework-1.0.0/packages/core/agent_framework/azure/__init__.pyi +32 -0
- agent_framework-1.0.0/packages/core/agent_framework/chatkit/__init__.py +34 -0
- agent_framework-1.0.0/packages/core/agent_framework/chatkit/__init__.pyi +13 -0
- agent_framework-1.0.0/packages/core/agent_framework/declarative/__init__.py +47 -0
- agent_framework-1.0.0/packages/core/agent_framework/declarative/__init__.pyi +29 -0
- agent_framework-1.0.0/packages/core/agent_framework/devui/__init__.py +48 -0
- agent_framework-1.0.0/packages/core/agent_framework/devui/__init__.pyi +27 -0
- agent_framework-1.0.0/packages/core/agent_framework/exceptions.py +262 -0
- agent_framework-1.0.0/packages/core/agent_framework/foundry/__init__.py +51 -0
- agent_framework-1.0.0/packages/core/agent_framework/foundry/__init__.pyi +49 -0
- agent_framework-1.0.0/packages/core/agent_framework/github/__init__.py +38 -0
- agent_framework-1.0.0/packages/core/agent_framework/github/__init__.pyi +13 -0
- agent_framework-1.0.0/packages/core/agent_framework/google/__init__.py +35 -0
- agent_framework-1.0.0/packages/core/agent_framework/google/__init__.pyi +8 -0
- agent_framework-1.0.0/packages/core/agent_framework/lab/__init__.py +10 -0
- agent_framework-1.0.0/packages/core/agent_framework/mem0/__init__.py +32 -0
- agent_framework-1.0.0/packages/core/agent_framework/mem0/__init__.pyi +9 -0
- agent_framework-1.0.0/packages/core/agent_framework/microsoft/__init__.py +59 -0
- agent_framework-1.0.0/packages/core/agent_framework/microsoft/__init__.pyi +35 -0
- agent_framework-1.0.0/packages/core/agent_framework/observability.py +2255 -0
- agent_framework-1.0.0/packages/core/agent_framework/ollama/__init__.py +44 -0
- agent_framework-1.0.0/packages/core/agent_framework/ollama/__init__.pyi +19 -0
- agent_framework-1.0.0/packages/core/agent_framework/openai/__init__.py +47 -0
- agent_framework-1.0.0/packages/core/agent_framework/openai/__init__.pyi +34 -0
- agent_framework-1.0.0/packages/core/agent_framework/orchestrations/__init__.py +84 -0
- agent_framework-1.0.0/packages/core/agent_framework/orchestrations/__init__.pyi +75 -0
- agent_framework-1.0.0/packages/core/agent_framework/py.typed +0 -0
- agent_framework-1.0.0/packages/core/agent_framework/redis/__init__.py +33 -0
- agent_framework-1.0.0/packages/core/agent_framework/redis/__init__.pyi +11 -0
- agent_framework-1.0.0/packages/core/pyproject.toml +130 -0
- agent_framework-1.0.0/packages/core/tests/__init__.py +0 -0
- agent_framework-1.0.0/packages/core/tests/assets/sample_image.jpg +0 -0
- agent_framework-1.0.0/packages/core/tests/conftest.py +89 -0
- agent_framework-1.0.0/packages/core/tests/core/__init__.py +0 -0
- agent_framework-1.0.0/packages/core/tests/core/conftest.py +329 -0
- agent_framework-1.0.0/packages/core/tests/core/test_agents.py +2655 -0
- agent_framework-1.0.0/packages/core/tests/core/test_as_tool_kwargs_propagation.py +371 -0
- agent_framework-1.0.0/packages/core/tests/core/test_azure_namespace.py +10 -0
- agent_framework-1.0.0/packages/core/tests/core/test_clients.py +306 -0
- agent_framework-1.0.0/packages/core/tests/core/test_compaction.py +954 -0
- agent_framework-1.0.0/packages/core/tests/core/test_docstrings.py +244 -0
- agent_framework-1.0.0/packages/core/tests/core/test_embedding_client.py +104 -0
- agent_framework-1.0.0/packages/core/tests/core/test_embedding_types.py +182 -0
- agent_framework-1.0.0/packages/core/tests/core/test_feature_stage.py +427 -0
- agent_framework-1.0.0/packages/core/tests/core/test_foundry_namespace.py +24 -0
- agent_framework-1.0.0/packages/core/tests/core/test_function_invocation_logic.py +3809 -0
- agent_framework-1.0.0/packages/core/tests/core/test_local_eval.py +1028 -0
- agent_framework-1.0.0/packages/core/tests/core/test_mcp.py +4180 -0
- agent_framework-1.0.0/packages/core/tests/core/test_middleware.py +1730 -0
- agent_framework-1.0.0/packages/core/tests/core/test_middleware_context_result.py +450 -0
- agent_framework-1.0.0/packages/core/tests/core/test_middleware_with_agent.py +2304 -0
- agent_framework-1.0.0/packages/core/tests/core/test_middleware_with_chat.py +729 -0
- agent_framework-1.0.0/packages/core/tests/core/test_observability.py +3315 -0
- agent_framework-1.0.0/packages/core/tests/core/test_optional_dependencies.py +181 -0
- agent_framework-1.0.0/packages/core/tests/core/test_serializable_mixin.py +529 -0
- agent_framework-1.0.0/packages/core/tests/core/test_sessions.py +507 -0
- agent_framework-1.0.0/packages/core/tests/core/test_settings.py +348 -0
- agent_framework-1.0.0/packages/core/tests/core/test_skills.py +3133 -0
- agent_framework-1.0.0/packages/core/tests/core/test_telemetry.py +98 -0
- agent_framework-1.0.0/packages/core/tests/core/test_tools.py +1132 -0
- agent_framework-1.0.0/packages/core/tests/core/test_tools_future_annotations.py +134 -0
- agent_framework-1.0.0/packages/core/tests/core/test_types.py +4154 -0
- agent_framework-1.0.0/packages/core/tests/core/utils.py +12 -0
- agent_framework-1.0.0/packages/core/tests/workflow/__init__.py +1 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_agent_executor.py +701 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_agent_executor_tool_calls.py +614 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_agent_run_event_typing.py +38 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_agent_utils.py +79 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_checkpoint.py +1442 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_checkpoint_decode.py +251 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_checkpoint_encode.py +315 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_checkpoint_validation.py +168 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_edge.py +1392 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_executor.py +921 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_executor_future.py +124 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_full_conversation.py +480 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_function_executor.py +897 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_function_executor_future.py +39 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_request_info_and_response.py +324 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_request_info_event_rehydrate.py +357 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_request_info_mixin.py +954 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_runner.py +1000 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_serialization.py +801 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_state.py +303 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_sub_workflow.py +619 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_typing_utils.py +492 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_validation.py +677 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_viz.py +410 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_workflow.py +1221 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_agent.py +1428 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_builder.py +380 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_context.py +277 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_kwargs.py +1025 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_observability.py +505 -0
- agent_framework-1.0.0/packages/core/tests/workflow/test_workflow_states.py +220 -0
- agent_framework-1.0.0/packages/declarative/AGENTS.md +38 -0
- agent_framework-1.0.0/packages/declarative/LICENSE +21 -0
- agent_framework-1.0.0/packages/declarative/README.md +11 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/__init__.py +34 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_loader.py +860 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_models.py +1137 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/__init__.py +143 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_declarative_base.py +906 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_declarative_builder.py +1015 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_executors_agents.py +1025 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_executors_basic.py +639 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_executors_control_flow.py +549 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_executors_external_input.py +344 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_executors_tools.py +713 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_factory.py +745 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_powerfx_functions.py +498 -0
- agent_framework-1.0.0/packages/declarative/agent_framework_declarative/_workflows/_state.py +650 -0
- agent_framework-1.0.0/packages/declarative/pyproject.toml +105 -0
- agent_framework-1.0.0/packages/declarative/tests/conftest.py +20 -0
- agent_framework-1.0.0/packages/declarative/tests/test_declarative_loader.py +1480 -0
- agent_framework-1.0.0/packages/declarative/tests/test_declarative_models.py +1195 -0
- agent_framework-1.0.0/packages/declarative/tests/test_function_tool_executor.py +1378 -0
- agent_framework-1.0.0/packages/declarative/tests/test_graph_coverage.py +2934 -0
- agent_framework-1.0.0/packages/declarative/tests/test_graph_executors.py +1511 -0
- agent_framework-1.0.0/packages/declarative/tests/test_graph_workflow_integration.py +346 -0
- agent_framework-1.0.0/packages/declarative/tests/test_powerfx_functions.py +680 -0
- agent_framework-1.0.0/packages/declarative/tests/test_powerfx_yaml_compatibility.py +611 -0
- agent_framework-1.0.0/packages/declarative/tests/test_workflow_factory.py +972 -0
- agent_framework-1.0.0/packages/declarative/tests/test_workflow_samples_integration.py +237 -0
- agent_framework-1.0.0/packages/declarative/tests/test_workflow_state.py +584 -0
- agent_framework-1.0.0/packages/devui/.gitignore +19 -0
- agent_framework-1.0.0/packages/devui/AGENTS.md +43 -0
- agent_framework-1.0.0/packages/devui/LICENSE +21 -0
- agent_framework-1.0.0/packages/devui/README.md +380 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/__init__.py +267 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_cli.py +201 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_conversations.py +717 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_deployment.py +604 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_discovery.py +968 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_executor.py +1118 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_mapper.py +1834 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_openai/__init__.py +9 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_openai/_executor.py +288 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_server.py +1394 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_session.py +216 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_tracing.py +168 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/_utils.py +685 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/models/__init__.py +94 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/models/_discovery_models.py +204 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/models/_openai_custom.py +411 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/ui/agentframework.svg +33 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/ui/assets/index.css +1 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/ui/assets/index.js +619 -0
- agent_framework-1.0.0/packages/devui/agent_framework_devui/ui/index.html +14 -0
- agent_framework-1.0.0/packages/devui/dev.md +164 -0
- agent_framework-1.0.0/packages/devui/docs/devuiscreen.png +0 -0
- agent_framework-1.0.0/packages/devui/frontend/.gitignore +23 -0
- agent_framework-1.0.0/packages/devui/frontend/README.md +81 -0
- agent_framework-1.0.0/packages/devui/frontend/components.json +21 -0
- agent_framework-1.0.0/packages/devui/frontend/eslint.config.js +31 -0
- agent_framework-1.0.0/packages/devui/frontend/index.html +13 -0
- agent_framework-1.0.0/packages/devui/frontend/package-lock.json +5400 -0
- agent_framework-1.0.0/packages/devui/frontend/package.json +50 -0
- agent_framework-1.0.0/packages/devui/frontend/public/agentframework.svg +33 -0
- agent_framework-1.0.0/packages/devui/frontend/src/App.css +42 -0
- agent_framework-1.0.0/packages/devui/frontend/src/App.tsx +681 -0
- agent_framework-1.0.0/packages/devui/frontend/src/assets/react.svg +1 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/agent-details-modal.tsx +215 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/agent-view.tsx +2111 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/context-inspector.tsx +949 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/index.ts +7 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/message-renderers/OpenAIContentRenderer.tsx +481 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/message-renderers/OpenAIMessageRenderer.tsx +77 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/agent/message-renderers/index.ts +7 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/gallery/gallery-view.tsx +312 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/gallery/index.ts +5 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/gallery/setup-instructions-modal.tsx +207 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/checkpoint-info-modal.tsx +395 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/execution-timeline.tsx +671 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/executor-node.tsx +220 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/hil-timeline-item.tsx +153 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/index.ts +22 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/run-workflow-button.tsx +427 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/schema-form-renderer.tsx +604 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/self-loop-edge.tsx +56 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/workflow-details-modal.tsx +169 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/workflow-flow.tsx +592 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/workflow-input-form.tsx +289 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/workflow-session-manager.tsx +225 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/features/workflow/workflow-view.tsx +1621 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/layout/app-header.tsx +111 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/layout/debug-panel.tsx +1825 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/layout/deployment-modal.tsx +861 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/layout/entity-selector.tsx +229 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/layout/index.ts +9 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/layout/settings-modal.tsx +720 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/mode-toggle.tsx +39 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/theme-provider.tsx +33 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/alert.tsx +48 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/attachment-gallery.tsx +123 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/badge.tsx +36 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/button.tsx +59 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/card.tsx +92 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/chat-message-input.tsx +471 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/checkbox.tsx +32 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/dialog.tsx +126 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/dropdown-menu.tsx +255 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/file-upload.tsx +141 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/input.tsx +21 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/label.tsx +22 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/loading-spinner.tsx +23 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/loading-state.tsx +52 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/markdown-renderer.tsx +565 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/scroll-area.tsx +46 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/select.tsx +183 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/separator.tsx +31 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/switch.tsx +29 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/tabs.tsx +53 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/textarea.tsx +18 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/toast.tsx +89 -0
- agent_framework-1.0.0/packages/devui/frontend/src/components/ui/tooltip.tsx +30 -0
- agent_framework-1.0.0/packages/devui/frontend/src/data/gallery/index.ts +5 -0
- agent_framework-1.0.0/packages/devui/frontend/src/data/gallery/sample-entities.ts +155 -0
- agent_framework-1.0.0/packages/devui/frontend/src/hooks/index.ts +3 -0
- agent_framework-1.0.0/packages/devui/frontend/src/hooks/use-drag-drop.ts +98 -0
- agent_framework-1.0.0/packages/devui/frontend/src/hooks/useCancellableRequest.ts +70 -0
- agent_framework-1.0.0/packages/devui/frontend/src/index.css +184 -0
- agent_framework-1.0.0/packages/devui/frontend/src/lib/utils.ts +6 -0
- agent_framework-1.0.0/packages/devui/frontend/src/main.tsx +22 -0
- agent_framework-1.0.0/packages/devui/frontend/src/services/api.ts +1021 -0
- agent_framework-1.0.0/packages/devui/frontend/src/services/streaming-state.ts +199 -0
- agent_framework-1.0.0/packages/devui/frontend/src/stores/devuiStore.ts +674 -0
- agent_framework-1.0.0/packages/devui/frontend/src/stores/index.ts +5 -0
- agent_framework-1.0.0/packages/devui/frontend/src/types/agent-framework.ts +347 -0
- agent_framework-1.0.0/packages/devui/frontend/src/types/index.ts +327 -0
- agent_framework-1.0.0/packages/devui/frontend/src/types/openai.ts +839 -0
- agent_framework-1.0.0/packages/devui/frontend/src/types/workflow.ts +167 -0
- agent_framework-1.0.0/packages/devui/frontend/src/utils/simple-layout.ts +139 -0
- agent_framework-1.0.0/packages/devui/frontend/src/utils/workflow-utils.ts +771 -0
- agent_framework-1.0.0/packages/devui/frontend/src/vite-env.d.ts +9 -0
- agent_framework-1.0.0/packages/devui/frontend/tsconfig.app.json +29 -0
- agent_framework-1.0.0/packages/devui/frontend/tsconfig.json +13 -0
- agent_framework-1.0.0/packages/devui/frontend/tsconfig.node.json +23 -0
- agent_framework-1.0.0/packages/devui/frontend/vite.config.ts +33 -0
- agent_framework-1.0.0/packages/devui/frontend/yarn.lock +2522 -0
- agent_framework-1.0.0/packages/devui/pyproject.toml +113 -0
- agent_framework-1.0.0/packages/devui/tests/devui/capture_messages.py +227 -0
- agent_framework-1.0.0/packages/devui/tests/devui/conftest.py +552 -0
- agent_framework-1.0.0/packages/devui/tests/devui/test_approval_validation.py +223 -0
- agent_framework-1.0.0/packages/devui/tests/devui/test_checkpoints.py +460 -0
- agent_framework-1.0.0/packages/devui/tests/devui/test_cleanup_hooks.py +379 -0
- agent_framework-1.0.0/packages/devui/tests/devui/test_conversations.py +321 -0
- agent_framework-1.0.0/packages/devui/tests/devui/test_discovery.py +340 -0
- agent_framework-1.0.0/packages/devui/tests/devui/test_execution.py +836 -0
- agent_framework-1.0.0/packages/devui/tests/devui/test_mapper.py +753 -0
- agent_framework-1.0.0/packages/devui/tests/devui/test_multimodal_workflow.py +152 -0
- agent_framework-1.0.0/packages/devui/tests/devui/test_openai_sdk_integration.py +266 -0
- agent_framework-1.0.0/packages/devui/tests/devui/test_schema_generation.py +231 -0
- agent_framework-1.0.0/packages/devui/tests/devui/test_server.py +405 -0
- agent_framework-1.0.0/packages/durabletask/AGENTS.md +57 -0
- agent_framework-1.0.0/packages/durabletask/LICENSE +21 -0
- agent_framework-1.0.0/packages/durabletask/README.md +32 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/__init__.py +108 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_callbacks.py +40 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_client.py +92 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_constants.py +130 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_durable_agent_state.py +1334 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_entities.py +353 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_executors.py +527 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_models.py +331 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_orchestration_context.py +76 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_response_utils.py +76 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_shim.py +166 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/_worker.py +203 -0
- agent_framework-1.0.0/packages/durabletask/agent_framework_durabletask/py.typed +0 -0
- agent_framework-1.0.0/packages/durabletask/pyproject.toml +110 -0
- agent_framework-1.0.0/packages/durabletask/tests/integration_tests/.env.example +13 -0
- agent_framework-1.0.0/packages/durabletask/tests/integration_tests/README.md +110 -0
- agent_framework-1.0.0/packages/durabletask/tests/integration_tests/conftest.py +494 -0
- agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_01_dt_single_agent.py +85 -0
- agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_02_dt_multi_agent.py +99 -0
- agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_03_dt_single_agent_streaming.py +223 -0
- agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_04_dt_single_agent_orchestration_chaining.py +100 -0
- agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_05_dt_multi_agent_orchestration_concurrency.py +76 -0
- agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_06_dt_multi_agent_orchestration_conditionals.py +75 -0
- agent_framework-1.0.0/packages/durabletask/tests/integration_tests/test_07_dt_single_agent_orchestration_hitl.py +163 -0
- agent_framework-1.0.0/packages/durabletask/tests/test_agent_session_id.py +310 -0
- agent_framework-1.0.0/packages/durabletask/tests/test_client.py +133 -0
- agent_framework-1.0.0/packages/durabletask/tests/test_durable_agent_state.py +525 -0
- agent_framework-1.0.0/packages/durabletask/tests/test_durable_entities.py +768 -0
- agent_framework-1.0.0/packages/durabletask/tests/test_executors.py +581 -0
- agent_framework-1.0.0/packages/durabletask/tests/test_models.py +309 -0
- agent_framework-1.0.0/packages/durabletask/tests/test_orchestration_context.py +87 -0
- agent_framework-1.0.0/packages/durabletask/tests/test_shim.py +228 -0
- agent_framework-1.0.0/packages/durabletask/tests/test_worker.py +168 -0
- agent_framework-1.0.0/packages/foundry/LICENSE +21 -0
- agent_framework-1.0.0/packages/foundry/README.md +3 -0
- agent_framework-1.0.0/packages/foundry/agent_framework_foundry/__init__.py +41 -0
- agent_framework-1.0.0/packages/foundry/agent_framework_foundry/_agent.py +736 -0
- agent_framework-1.0.0/packages/foundry/agent_framework_foundry/_chat_client.py +573 -0
- agent_framework-1.0.0/packages/foundry/agent_framework_foundry/_embedding_client.py +396 -0
- agent_framework-1.0.0/packages/foundry/agent_framework_foundry/_foundry_evals.py +895 -0
- agent_framework-1.0.0/packages/foundry/agent_framework_foundry/_memory_provider.py +274 -0
- agent_framework-1.0.0/packages/foundry/pyproject.toml +106 -0
- agent_framework-1.0.0/packages/foundry/tests/assets/sample_image.jpg +0 -0
- agent_framework-1.0.0/packages/foundry/tests/foundry/conftest.py +78 -0
- agent_framework-1.0.0/packages/foundry/tests/foundry/test_foundry_agent.py +467 -0
- agent_framework-1.0.0/packages/foundry/tests/foundry/test_foundry_chat_client.py +812 -0
- agent_framework-1.0.0/packages/foundry/tests/foundry/test_foundry_embedding_client.py +314 -0
- agent_framework-1.0.0/packages/foundry/tests/foundry/test_foundry_memory_provider.py +501 -0
- agent_framework-1.0.0/packages/foundry/tests/test_foundry_evals.py +2591 -0
- agent_framework-1.0.0/packages/foundry_local/AGENTS.md +24 -0
- agent_framework-1.0.0/packages/foundry_local/LICENSE +21 -0
- agent_framework-1.0.0/packages/foundry_local/README.md +13 -0
- agent_framework-1.0.0/packages/foundry_local/agent_framework_foundry_local/__init__.py +17 -0
- agent_framework-1.0.0/packages/foundry_local/agent_framework_foundry_local/_foundry_local_client.py +348 -0
- agent_framework-1.0.0/packages/foundry_local/agent_framework_foundry_local/py.typed +0 -0
- agent_framework-1.0.0/packages/foundry_local/pyproject.toml +98 -0
- agent_framework-1.0.0/packages/foundry_local/tests/conftest.py +55 -0
- agent_framework-1.0.0/packages/foundry_local/tests/test_foundry_local_client.py +216 -0
- agent_framework-1.0.0/packages/github_copilot/AGENTS.md +26 -0
- agent_framework-1.0.0/packages/github_copilot/LICENSE +21 -0
- agent_framework-1.0.0/packages/github_copilot/README.md +11 -0
- agent_framework-1.0.0/packages/github_copilot/agent_framework_github_copilot/__init__.py +17 -0
- agent_framework-1.0.0/packages/github_copilot/agent_framework_github_copilot/_agent.py +772 -0
- agent_framework-1.0.0/packages/github_copilot/pyproject.toml +104 -0
- agent_framework-1.0.0/packages/github_copilot/tests/test_github_copilot_agent.py +1900 -0
- agent_framework-1.0.0/packages/lab/.gitignore +13 -0
- agent_framework-1.0.0/packages/lab/AGENTS.md +22 -0
- agent_framework-1.0.0/packages/lab/LICENSE +21 -0
- agent_framework-1.0.0/packages/lab/README.md +119 -0
- agent_framework-1.0.0/packages/lab/gaia/README.md +52 -0
- agent_framework-1.0.0/packages/lab/gaia/agent_framework_lab_gaia/__init__.py +26 -0
- agent_framework-1.0.0/packages/lab/gaia/agent_framework_lab_gaia/_types.py +79 -0
- agent_framework-1.0.0/packages/lab/gaia/agent_framework_lab_gaia/gaia.py +712 -0
- agent_framework-1.0.0/packages/lab/gaia/agent_framework_lab_gaia/py.typed +1 -0
- agent_framework-1.0.0/packages/lab/gaia/samples/azure_ai_agent.py +67 -0
- agent_framework-1.0.0/packages/lab/gaia/samples/gaia_sample.py +295 -0
- agent_framework-1.0.0/packages/lab/gaia/samples/openai_agent.py +61 -0
- agent_framework-1.0.0/packages/lab/gaia/tests/test_gaia.py +36 -0
- agent_framework-1.0.0/packages/lab/lightning/.gitattributes +2 -0
- agent_framework-1.0.0/packages/lab/lightning/README.md +191 -0
- agent_framework-1.0.0/packages/lab/lightning/agent_framework_lab_lightning/__init__.py +37 -0
- agent_framework-1.0.0/packages/lab/lightning/agent_framework_lab_lightning/py.typed +0 -0
- agent_framework-1.0.0/packages/lab/lightning/assets/train_math_agent.png +0 -0
- agent_framework-1.0.0/packages/lab/lightning/assets/train_tau2_agent.png +0 -0
- agent_framework-1.0.0/packages/lab/lightning/samples/data/math/test.jsonl +20 -0
- agent_framework-1.0.0/packages/lab/lightning/samples/data/math/train.jsonl +64 -0
- agent_framework-1.0.0/packages/lab/lightning/samples/train_math_agent.py +331 -0
- agent_framework-1.0.0/packages/lab/lightning/samples/train_tau2_agent.py +231 -0
- agent_framework-1.0.0/packages/lab/lightning/tests/test_lightning.py +163 -0
- agent_framework-1.0.0/packages/lab/namespace/agent_framework/__init__.py +4 -0
- agent_framework-1.0.0/packages/lab/namespace/agent_framework/lab/__init__.py +4 -0
- agent_framework-1.0.0/packages/lab/namespace/agent_framework/lab/gaia/__init__.py +28 -0
- agent_framework-1.0.0/packages/lab/namespace/agent_framework/lab/lightning/__init__.py +6 -0
- agent_framework-1.0.0/packages/lab/namespace/agent_framework/lab/tau2/__init__.py +20 -0
- agent_framework-1.0.0/packages/lab/pyproject.toml +199 -0
- agent_framework-1.0.0/packages/lab/tau2/README.md +198 -0
- agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/__init__.py +22 -0
- agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/_message_utils.py +121 -0
- agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/_sliding_window.py +121 -0
- agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/_tau2_utils.py +257 -0
- agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/py.typed +0 -0
- agent_framework-1.0.0/packages/lab/tau2/agent_framework_lab_tau2/runner.py +440 -0
- agent_framework-1.0.0/packages/lab/tau2/samples/.env.example +4 -0
- agent_framework-1.0.0/packages/lab/tau2/samples/run_benchmark.py +279 -0
- agent_framework-1.0.0/packages/lab/tau2/tests/test_message_utils.py +283 -0
- agent_framework-1.0.0/packages/lab/tau2/tests/test_sliding_window.py +213 -0
- agent_framework-1.0.0/packages/lab/tau2/tests/test_tau2_utils.py +213 -0
- agent_framework-1.0.0/packages/mem0/AGENTS.md +30 -0
- agent_framework-1.0.0/packages/mem0/LICENSE +21 -0
- agent_framework-1.0.0/packages/mem0/README.md +31 -0
- agent_framework-1.0.0/packages/mem0/agent_framework_mem0/__init__.py +21 -0
- agent_framework-1.0.0/packages/mem0/agent_framework_mem0/_context_provider.py +188 -0
- agent_framework-1.0.0/packages/mem0/pyproject.toml +98 -0
- agent_framework-1.0.0/packages/mem0/tests/test_mem0_context_provider.py +432 -0
- agent_framework-1.0.0/packages/ollama/AGENTS.md +26 -0
- agent_framework-1.0.0/packages/ollama/LICENSE +21 -0
- agent_framework-1.0.0/packages/ollama/README.md +13 -0
- agent_framework-1.0.0/packages/ollama/agent_framework_ollama/__init__.py +21 -0
- agent_framework-1.0.0/packages/ollama/agent_framework_ollama/_chat_client.py +591 -0
- agent_framework-1.0.0/packages/ollama/agent_framework_ollama/_embedding_client.py +230 -0
- agent_framework-1.0.0/packages/ollama/agent_framework_ollama/py.typed +0 -0
- agent_framework-1.0.0/packages/ollama/pyproject.toml +105 -0
- agent_framework-1.0.0/packages/ollama/tests/ollama/test_ollama_embedding_client.py +150 -0
- agent_framework-1.0.0/packages/ollama/tests/test_ollama_chat_client.py +570 -0
- agent_framework-1.0.0/packages/openai/AGENTS.md +34 -0
- agent_framework-1.0.0/packages/openai/LICENSE +21 -0
- agent_framework-1.0.0/packages/openai/README.md +113 -0
- agent_framework-1.0.0/packages/openai/agent_framework_openai/__init__.py +45 -0
- agent_framework-1.0.0/packages/openai/agent_framework_openai/_chat_client.py +2717 -0
- agent_framework-1.0.0/packages/openai/agent_framework_openai/_chat_completion_client.py +1316 -0
- agent_framework-1.0.0/packages/openai/agent_framework_openai/_embedding_client.py +500 -0
- agent_framework-1.0.0/packages/openai/agent_framework_openai/_exceptions.py +90 -0
- agent_framework-1.0.0/packages/openai/agent_framework_openai/_shared.py +342 -0
- agent_framework-1.0.0/packages/openai/agent_framework_openai/py.typed +0 -0
- agent_framework-1.0.0/packages/openai/pyproject.toml +97 -0
- agent_framework-1.0.0/packages/openai/tests/assets/sample_image.jpg +0 -0
- agent_framework-1.0.0/packages/openai/tests/openai/conftest.py +201 -0
- agent_framework-1.0.0/packages/openai/tests/openai/test_openai_chat_client.py +4018 -0
- agent_framework-1.0.0/packages/openai/tests/openai/test_openai_chat_client_azure.py +519 -0
- agent_framework-1.0.0/packages/openai/tests/openai/test_openai_chat_completion_client.py +1752 -0
- agent_framework-1.0.0/packages/openai/tests/openai/test_openai_chat_completion_client_azure.py +408 -0
- agent_framework-1.0.0/packages/openai/tests/openai/test_openai_chat_completion_client_base.py +425 -0
- agent_framework-1.0.0/packages/openai/tests/openai/test_openai_embedding_client.py +263 -0
- agent_framework-1.0.0/packages/openai/tests/openai/test_openai_embedding_client_azure.py +245 -0
- agent_framework-1.0.0/packages/openai/tests/openai/test_openai_shared.py +54 -0
- agent_framework-1.0.0/packages/orchestrations/LICENSE +21 -0
- agent_framework-1.0.0/packages/orchestrations/README.md +76 -0
- agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/__init__.py +110 -0
- agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_base_group_chat_orchestrator.py +570 -0
- agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_concurrent.py +418 -0
- agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_group_chat.py +1004 -0
- agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_handoff.py +1186 -0
- agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_magentic.py +1773 -0
- agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_orchestration_request_info.py +153 -0
- agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_orchestration_state.py +93 -0
- agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_orchestrator_helpers.py +71 -0
- agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/_sequential.py +288 -0
- agent_framework-1.0.0/packages/orchestrations/agent_framework_orchestrations/py.typed +0 -0
- agent_framework-1.0.0/packages/orchestrations/pyproject.toml +96 -0
- agent_framework-1.0.0/packages/orchestrations/tests/test_concurrent.py +336 -0
- agent_framework-1.0.0/packages/orchestrations/tests/test_group_chat.py +1065 -0
- agent_framework-1.0.0/packages/orchestrations/tests/test_handoff.py +1162 -0
- agent_framework-1.0.0/packages/orchestrations/tests/test_magentic.py +1144 -0
- agent_framework-1.0.0/packages/orchestrations/tests/test_orchestration_request_info.py +253 -0
- agent_framework-1.0.0/packages/orchestrations/tests/test_sequential.py +392 -0
- agent_framework-1.0.0/packages/purview/AGENTS.md +44 -0
- agent_framework-1.0.0/packages/purview/LICENSE +21 -0
- agent_framework-1.0.0/packages/purview/README.md +323 -0
- agent_framework-1.0.0/packages/purview/agent_framework_purview/__init__.py +27 -0
- agent_framework-1.0.0/packages/purview/agent_framework_purview/_cache.py +189 -0
- agent_framework-1.0.0/packages/purview/agent_framework_purview/_client.py +233 -0
- agent_framework-1.0.0/packages/purview/agent_framework_purview/_exceptions.py +32 -0
- agent_framework-1.0.0/packages/purview/agent_framework_purview/_middleware.py +247 -0
- agent_framework-1.0.0/packages/purview/agent_framework_purview/_models.py +1033 -0
- agent_framework-1.0.0/packages/purview/agent_framework_purview/_processor.py +360 -0
- agent_framework-1.0.0/packages/purview/agent_framework_purview/_settings.py +84 -0
- agent_framework-1.0.0/packages/purview/pyproject.toml +97 -0
- agent_framework-1.0.0/packages/purview/tests/purview/conftest.py +68 -0
- agent_framework-1.0.0/packages/purview/tests/purview/test_cache.py +215 -0
- agent_framework-1.0.0/packages/purview/tests/purview/test_chat_middleware.py +415 -0
- agent_framework-1.0.0/packages/purview/tests/purview/test_exceptions.py +47 -0
- agent_framework-1.0.0/packages/purview/tests/purview/test_middleware.py +430 -0
- agent_framework-1.0.0/packages/purview/tests/purview/test_processor.py +706 -0
- agent_framework-1.0.0/packages/purview/tests/purview/test_purview_client.py +609 -0
- agent_framework-1.0.0/packages/purview/tests/purview/test_purview_models.py +243 -0
- agent_framework-1.0.0/packages/purview/tests/purview/test_settings.py +82 -0
- agent_framework-1.0.0/packages/redis/AGENTS.md +25 -0
- agent_framework-1.0.0/packages/redis/LICENSE +21 -0
- agent_framework-1.0.0/packages/redis/README.md +53 -0
- agent_framework-1.0.0/packages/redis/agent_framework_redis/__init__.py +16 -0
- agent_framework-1.0.0/packages/redis/agent_framework_redis/_context_provider.py +426 -0
- agent_framework-1.0.0/packages/redis/agent_framework_redis/_history_provider.py +194 -0
- agent_framework-1.0.0/packages/redis/pyproject.toml +100 -0
- agent_framework-1.0.0/packages/redis/tests/test_providers.py +530 -0
- agent_framework-1.0.0/pyproject.toml +426 -0
- agent_framework-1.0.0/pyrightconfig.samples.json +16 -0
- agent_framework-1.0.0/pyrightconfig.samples.py310.json +17 -0
- agent_framework-1.0.0/samples/01-get-started/01_hello_agent.py +51 -0
- agent_framework-1.0.0/samples/01-get-started/02_add_tools.py +58 -0
- agent_framework-1.0.0/samples/01-get-started/03_multi_turn.py +47 -0
- agent_framework-1.0.0/samples/01-get-started/04_memory.py +105 -0
- agent_framework-1.0.0/samples/01-get-started/05_first_workflow.py +70 -0
- agent_framework-1.0.0/samples/01-get-started/06_host_your_agent.py +40 -0
- agent_framework-1.0.0/samples/01-get-started/README.md +36 -0
- agent_framework-1.0.0/samples/02-agents/__init__.py +0 -0
- agent_framework-1.0.0/samples/02-agents/auto_retry.py +255 -0
- agent_framework-1.0.0/samples/02-agents/background_responses.py +143 -0
- agent_framework-1.0.0/samples/02-agents/chat_client/README.md +78 -0
- agent_framework-1.0.0/samples/02-agents/chat_client/built_in_chat_clients.py +131 -0
- agent_framework-1.0.0/samples/02-agents/chat_client/chat_response_cancellation.py +44 -0
- agent_framework-1.0.0/samples/02-agents/chat_client/custom_chat_client.py +213 -0
- agent_framework-1.0.0/samples/02-agents/chat_client/require_per_service_call_history_persistence.py +194 -0
- agent_framework-1.0.0/samples/02-agents/compaction/README.md +23 -0
- agent_framework-1.0.0/samples/02-agents/compaction/advanced.py +117 -0
- agent_framework-1.0.0/samples/02-agents/compaction/agent_client_overrides.py +144 -0
- agent_framework-1.0.0/samples/02-agents/compaction/basics.py +241 -0
- agent_framework-1.0.0/samples/02-agents/compaction/compaction_provider.py +249 -0
- agent_framework-1.0.0/samples/02-agents/compaction/custom.py +83 -0
- agent_framework-1.0.0/samples/02-agents/compaction/tiktoken_tokenizer.py +123 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/README.md +28 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/azure_ai_foundry_memory.py +173 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/azure_ai_search/README.md +268 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/azure_ai_search/search_context_agentic.py +146 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/azure_ai_search/search_context_semantic.py +117 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/mem0/README.md +47 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/mem0/mem0_basic.py +84 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/mem0/mem0_oss.py +74 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/mem0/mem0_sessions.py +170 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/redis/README.md +123 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/redis/azure_redis_conversation.py +140 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/redis/redis_basics.py +279 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/redis/redis_conversation.py +124 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/redis/redis_sessions.py +257 -0
- agent_framework-1.0.0/samples/02-agents/context_providers/simple_context_provider.py +125 -0
- agent_framework-1.0.0/samples/02-agents/conversations/README.md +37 -0
- agent_framework-1.0.0/samples/02-agents/conversations/cosmos_history_provider.py +98 -0
- agent_framework-1.0.0/samples/02-agents/conversations/custom_history_provider.py +90 -0
- agent_framework-1.0.0/samples/02-agents/conversations/redis_history_provider.py +270 -0
- agent_framework-1.0.0/samples/02-agents/conversations/suspend_resume_session.py +101 -0
- agent_framework-1.0.0/samples/02-agents/declarative/README.md +272 -0
- agent_framework-1.0.0/samples/02-agents/declarative/azure_openai_responses_agent.py +40 -0
- agent_framework-1.0.0/samples/02-agents/declarative/get_weather_agent.py +48 -0
- agent_framework-1.0.0/samples/02-agents/declarative/inline_yaml.py +52 -0
- agent_framework-1.0.0/samples/02-agents/declarative/mcp_tool_yaml.py +161 -0
- agent_framework-1.0.0/samples/02-agents/declarative/microsoft_learn_agent.py +50 -0
- agent_framework-1.0.0/samples/02-agents/declarative/openai_agent.py +36 -0
- agent_framework-1.0.0/samples/02-agents/devui/.env.example +15 -0
- agent_framework-1.0.0/samples/02-agents/devui/.gitignore +19 -0
- agent_framework-1.0.0/samples/02-agents/devui/README.md +208 -0
- agent_framework-1.0.0/samples/02-agents/devui/agent_foundry/.env.example +5 -0
- agent_framework-1.0.0/samples/02-agents/devui/agent_foundry/__init__.py +7 -0
- agent_framework-1.0.0/samples/02-agents/devui/agent_foundry/agent.py +88 -0
- agent_framework-1.0.0/samples/02-agents/devui/agent_weather/.env.example +5 -0
- agent_framework-1.0.0/samples/02-agents/devui/agent_weather/__init__.py +7 -0
- agent_framework-1.0.0/samples/02-agents/devui/agent_weather/agent.py +188 -0
- agent_framework-1.0.0/samples/02-agents/devui/in_memory_mode.py +135 -0
- agent_framework-1.0.0/samples/02-agents/devui/main.py +32 -0
- agent_framework-1.0.0/samples/02-agents/devui/workflow_declarative/__init__.py +3 -0
- agent_framework-1.0.0/samples/02-agents/devui/workflow_declarative/workflow.py +25 -0
- agent_framework-1.0.0/samples/02-agents/devui/workflow_declarative/workflow.yaml +64 -0
- agent_framework-1.0.0/samples/02-agents/devui/workflow_fanout/__init__.py +3 -0
- agent_framework-1.0.0/samples/02-agents/devui/workflow_fanout/workflow.py +703 -0
- agent_framework-1.0.0/samples/02-agents/devui/workflow_spam/__init__.py +7 -0
- agent_framework-1.0.0/samples/02-agents/devui/workflow_spam/workflow.py +440 -0
- agent_framework-1.0.0/samples/02-agents/devui/workflow_with_agents/.env.example +9 -0
- agent_framework-1.0.0/samples/02-agents/devui/workflow_with_agents/__init__.py +7 -0
- agent_framework-1.0.0/samples/02-agents/devui/workflow_with_agents/workflow.py +185 -0
- agent_framework-1.0.0/samples/02-agents/embeddings/foundry_embeddings.py +94 -0
- agent_framework-1.0.0/samples/02-agents/embeddings/openai_embeddings.py +66 -0
- agent_framework-1.0.0/samples/02-agents/embeddings/openai_embeddings_on_azure.py +74 -0
- agent_framework-1.0.0/samples/02-agents/evaluation/evaluate_agent.py +81 -0
- agent_framework-1.0.0/samples/02-agents/evaluation/evaluate_multimodal.py +121 -0
- agent_framework-1.0.0/samples/02-agents/evaluation/evaluate_with_expected.py +73 -0
- agent_framework-1.0.0/samples/02-agents/feature_stage_introspection.py +83 -0
- agent_framework-1.0.0/samples/02-agents/mcp/README.md +25 -0
- agent_framework-1.0.0/samples/02-agents/mcp/agent_as_mcp_server.py +80 -0
- agent_framework-1.0.0/samples/02-agents/mcp/mcp_api_key_auth.py +60 -0
- agent_framework-1.0.0/samples/02-agents/mcp/mcp_github_pat.py +81 -0
- agent_framework-1.0.0/samples/02-agents/middleware/README.md +37 -0
- agent_framework-1.0.0/samples/02-agents/middleware/agent_and_run_level_middleware.py +301 -0
- agent_framework-1.0.0/samples/02-agents/middleware/chat_middleware.py +261 -0
- agent_framework-1.0.0/samples/02-agents/middleware/class_based_middleware.py +133 -0
- agent_framework-1.0.0/samples/02-agents/middleware/decorator_middleware.py +98 -0
- agent_framework-1.0.0/samples/02-agents/middleware/exception_handling_with_middleware.py +84 -0
- agent_framework-1.0.0/samples/02-agents/middleware/function_based_middleware.py +120 -0
- agent_framework-1.0.0/samples/02-agents/middleware/middleware_termination.py +190 -0
- agent_framework-1.0.0/samples/02-agents/middleware/override_result_with_middleware.py +240 -0
- agent_framework-1.0.0/samples/02-agents/middleware/runtime_context_delegation.py +487 -0
- agent_framework-1.0.0/samples/02-agents/middleware/session_behavior_middleware.py +110 -0
- agent_framework-1.0.0/samples/02-agents/middleware/shared_state_middleware.py +140 -0
- agent_framework-1.0.0/samples/02-agents/middleware/usage_tracking_middleware.py +184 -0
- agent_framework-1.0.0/samples/02-agents/multimodal_input/README.md +119 -0
- agent_framework-1.0.0/samples/02-agents/multimodal_input/azure_chat_multimodal.py +48 -0
- agent_framework-1.0.0/samples/02-agents/multimodal_input/azure_responses_multimodal.py +81 -0
- agent_framework-1.0.0/samples/02-agents/multimodal_input/openai_chat_multimodal.py +115 -0
- agent_framework-1.0.0/samples/02-agents/observability/.env.example +49 -0
- agent_framework-1.0.0/samples/02-agents/observability/README.md +444 -0
- agent_framework-1.0.0/samples/02-agents/observability/__init__.py +0 -0
- agent_framework-1.0.0/samples/02-agents/observability/advanced_manual_setup_console_output.py +144 -0
- agent_framework-1.0.0/samples/02-agents/observability/advanced_zero_code.py +121 -0
- agent_framework-1.0.0/samples/02-agents/observability/agent_observability.py +73 -0
- agent_framework-1.0.0/samples/02-agents/observability/configure_otel_providers_with_env_var.py +150 -0
- agent_framework-1.0.0/samples/02-agents/observability/configure_otel_providers_with_parameters.py +192 -0
- agent_framework-1.0.0/samples/02-agents/observability/foundry_tracing.py +94 -0
- agent_framework-1.0.0/samples/02-agents/observability/workflow_observability.py +114 -0
- agent_framework-1.0.0/samples/02-agents/providers/README.md +17 -0
- agent_framework-1.0.0/samples/02-agents/providers/amazon/README.md +17 -0
- agent_framework-1.0.0/samples/02-agents/providers/amazon/bedrock_chat_client.py +65 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/README.md +47 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_advanced.py +72 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_basic.py +78 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_basic.py +80 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_mcp.py +88 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_multiple_permissions.py +76 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_session.py +152 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_shell.py +64 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_tools.py +47 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_claude_with_url.py +45 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_foundry.py +76 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_skills.py +97 -0
- agent_framework-1.0.0/samples/02-agents/providers/anthropic/anthropic_with_shell.py +100 -0
- agent_framework-1.0.0/samples/02-agents/providers/azure/README.md +48 -0
- agent_framework-1.0.0/samples/02-agents/providers/azure/openai_chat_completion_client_basic.py +90 -0
- agent_framework-1.0.0/samples/02-agents/providers/azure/openai_chat_completion_client_with_explicit_settings.py +57 -0
- agent_framework-1.0.0/samples/02-agents/providers/azure/openai_chat_completion_client_with_function_tools.py +143 -0
- agent_framework-1.0.0/samples/02-agents/providers/azure/openai_chat_completion_client_with_session.py +161 -0
- agent_framework-1.0.0/samples/02-agents/providers/azure/openai_client_basic.py +90 -0
- agent_framework-1.0.0/samples/02-agents/providers/azure/openai_client_with_function_tools.py +137 -0
- agent_framework-1.0.0/samples/02-agents/providers/azure/openai_client_with_session.py +152 -0
- agent_framework-1.0.0/samples/02-agents/providers/azure/openai_client_with_structured_output.py +93 -0
- agent_framework-1.0.0/samples/02-agents/providers/copilotstudio/README.md +105 -0
- agent_framework-1.0.0/samples/02-agents/providers/copilotstudio/copilotstudio_basic.py +59 -0
- agent_framework-1.0.0/samples/02-agents/providers/copilotstudio/copilotstudio_with_explicit_settings.py +108 -0
- agent_framework-1.0.0/samples/02-agents/providers/custom/README.md +69 -0
- agent_framework-1.0.0/samples/02-agents/providers/custom/custom_agent.py +213 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/README.md +47 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_agent_basic.py +42 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_agent_custom_client.py +63 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_agent_hosted.py +37 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_agent_with_function_tools.py +50 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client.py +115 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_basic.py +86 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_code_interpreter_files.py +97 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_image_analysis.py +44 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_code_interpreter.py +57 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_explicit_settings.py +58 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_file_search.py +81 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_function_tools.py +143 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_hosted_mcp.py +265 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_local_mcp.py +66 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_chat_client_with_session.py +161 -0
- agent_framework-1.0.0/samples/02-agents/providers/foundry/foundry_local_agent.py +79 -0
- agent_framework-1.0.0/samples/02-agents/providers/github_copilot/README.md +37 -0
- agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_basic.py +137 -0
- agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_file_operations.py +51 -0
- agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_mcp.py +80 -0
- agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_multiple_permissions.py +59 -0
- agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_session.py +161 -0
- agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_shell.py +50 -0
- agent_framework-1.0.0/samples/02-agents/providers/github_copilot/github_copilot_with_url.py +50 -0
- agent_framework-1.0.0/samples/02-agents/providers/ollama/README.md +56 -0
- agent_framework-1.0.0/samples/02-agents/providers/ollama/ollama_agent_basic.py +79 -0
- agent_framework-1.0.0/samples/02-agents/providers/ollama/ollama_agent_reasoning.py +44 -0
- agent_framework-1.0.0/samples/02-agents/providers/ollama/ollama_chat_client.py +53 -0
- agent_framework-1.0.0/samples/02-agents/providers/ollama/ollama_chat_multimodal.py +57 -0
- agent_framework-1.0.0/samples/02-agents/providers/ollama/ollama_with_openai_chat_client.py +95 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/README.md +63 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_basic.py +85 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_explicit_settings.py +53 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_function_tools.py +136 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_local_mcp.py +92 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_runtime_json_schema.py +118 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_session.py +153 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/chat_completion_client_with_web_search.py +55 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_basic.py +85 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_image_analysis.py +43 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_image_generation.py +107 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_reasoning.py +86 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_streaming_image_generation.py +91 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_agent_as_tool.py +73 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_code_interpreter.py +57 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_code_interpreter_files.py +90 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_explicit_settings.py +55 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_file_search.py +72 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_function_tools.py +136 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_hosted_mcp.py +246 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_local_mcp.py +97 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_local_shell.py +122 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_runtime_json_schema.py +118 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_session.py +151 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_shell.py +67 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_structured_output.py +92 -0
- agent_framework-1.0.0/samples/02-agents/providers/openai/client_with_web_search.py +50 -0
- agent_framework-1.0.0/samples/02-agents/response_stream.py +358 -0
- agent_framework-1.0.0/samples/02-agents/skills/README.md +61 -0
- agent_framework-1.0.0/samples/02-agents/skills/code_defined_skill/README.md +49 -0
- agent_framework-1.0.0/samples/02-agents/skills/code_defined_skill/code_defined_skill.py +175 -0
- agent_framework-1.0.0/samples/02-agents/skills/file_based_skill/README.md +69 -0
- agent_framework-1.0.0/samples/02-agents/skills/file_based_skill/file_based_skill.py +98 -0
- agent_framework-1.0.0/samples/02-agents/skills/file_based_skill/skills/unit-converter/SKILL.md +11 -0
- agent_framework-1.0.0/samples/02-agents/skills/file_based_skill/skills/unit-converter/references/CONVERSION_TABLES.md +10 -0
- agent_framework-1.0.0/samples/02-agents/skills/file_based_skill/skills/unit-converter/scripts/convert.py +28 -0
- agent_framework-1.0.0/samples/02-agents/skills/mixed_skills/README.md +100 -0
- agent_framework-1.0.0/samples/02-agents/skills/mixed_skills/mixed_skills.py +164 -0
- agent_framework-1.0.0/samples/02-agents/skills/mixed_skills/skills/unit-converter/SKILL.md +11 -0
- agent_framework-1.0.0/samples/02-agents/skills/mixed_skills/skills/unit-converter/references/CONVERSION_TABLES.md +10 -0
- agent_framework-1.0.0/samples/02-agents/skills/mixed_skills/skills/unit-converter/scripts/convert.py +28 -0
- agent_framework-1.0.0/samples/02-agents/skills/script_approval/README.md +50 -0
- agent_framework-1.0.0/samples/02-agents/skills/script_approval/script_approval.py +129 -0
- agent_framework-1.0.0/samples/02-agents/skills/subprocess_script_runner.py +68 -0
- agent_framework-1.0.0/samples/02-agents/tools/agent_as_tool_with_session_propagation.py +110 -0
- agent_framework-1.0.0/samples/02-agents/tools/control_total_tool_executions.py +354 -0
- agent_framework-1.0.0/samples/02-agents/tools/function_invocation_configuration.py +64 -0
- agent_framework-1.0.0/samples/02-agents/tools/function_tool_declaration_only.py +80 -0
- agent_framework-1.0.0/samples/02-agents/tools/function_tool_from_dict_with_dependency_injection.py +75 -0
- agent_framework-1.0.0/samples/02-agents/tools/function_tool_recover_from_failures.py +112 -0
- agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_approval.py +162 -0
- agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_approval_and_sessions.py +105 -0
- agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_explicit_schema.py +86 -0
- agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_kwargs.py +63 -0
- agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_max_exceptions.py +187 -0
- agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_max_invocations.py +90 -0
- agent_framework-1.0.0/samples/02-agents/tools/function_tool_with_session_injection.py +57 -0
- agent_framework-1.0.0/samples/02-agents/tools/tool_in_class.py +103 -0
- agent_framework-1.0.0/samples/02-agents/typed_options.py +182 -0
- agent_framework-1.0.0/samples/03-workflows/README.md +180 -0
- agent_framework-1.0.0/samples/03-workflows/_start-here/step1_executors_and_edges.py +226 -0
- agent_framework-1.0.0/samples/03-workflows/_start-here/step2_agents_in_a_workflow.py +89 -0
- agent_framework-1.0.0/samples/03-workflows/_start-here/step3_streaming.py +96 -0
- agent_framework-1.0.0/samples/03-workflows/agents/azure_ai_agents_streaming.py +77 -0
- agent_framework-1.0.0/samples/03-workflows/agents/azure_ai_agents_with_shared_session.py +112 -0
- agent_framework-1.0.0/samples/03-workflows/agents/azure_chat_agents_and_executor.py +159 -0
- agent_framework-1.0.0/samples/03-workflows/agents/azure_chat_agents_streaming.py +83 -0
- agent_framework-1.0.0/samples/03-workflows/agents/azure_chat_agents_tool_calls_with_feedback.py +323 -0
- agent_framework-1.0.0/samples/03-workflows/agents/concurrent_workflow_as_agent.py +84 -0
- agent_framework-1.0.0/samples/03-workflows/agents/custom_agent_executors.py +146 -0
- agent_framework-1.0.0/samples/03-workflows/agents/group_chat_workflow_as_agent.py +92 -0
- agent_framework-1.0.0/samples/03-workflows/agents/handoff_workflow_as_agent.py +235 -0
- agent_framework-1.0.0/samples/03-workflows/agents/magentic_workflow_as_agent.py +119 -0
- agent_framework-1.0.0/samples/03-workflows/agents/sequential_workflow_as_agent.py +97 -0
- agent_framework-1.0.0/samples/03-workflows/agents/workflow_as_agent_human_in_the_loop.py +182 -0
- agent_framework-1.0.0/samples/03-workflows/agents/workflow_as_agent_kwargs.py +156 -0
- agent_framework-1.0.0/samples/03-workflows/agents/workflow_as_agent_reflection_pattern.py +235 -0
- agent_framework-1.0.0/samples/03-workflows/agents/workflow_as_agent_with_session.py +180 -0
- agent_framework-1.0.0/samples/03-workflows/checkpoint/checkpoint_with_human_in_the_loop.py +330 -0
- agent_framework-1.0.0/samples/03-workflows/checkpoint/checkpoint_with_resume.py +157 -0
- agent_framework-1.0.0/samples/03-workflows/checkpoint/sub_workflow_checkpoint.py +415 -0
- agent_framework-1.0.0/samples/03-workflows/checkpoint/workflow_as_agent_checkpoint.py +186 -0
- agent_framework-1.0.0/samples/03-workflows/composition/sub_workflow_basics.py +206 -0
- agent_framework-1.0.0/samples/03-workflows/composition/sub_workflow_kwargs.py +203 -0
- agent_framework-1.0.0/samples/03-workflows/composition/sub_workflow_parallel_requests.py +358 -0
- agent_framework-1.0.0/samples/03-workflows/composition/sub_workflow_request_interception.py +306 -0
- agent_framework-1.0.0/samples/03-workflows/control-flow/edge_condition.py +248 -0
- agent_framework-1.0.0/samples/03-workflows/control-flow/multi_selection_edge_group.py +317 -0
- agent_framework-1.0.0/samples/03-workflows/control-flow/sequential_executors.py +85 -0
- agent_framework-1.0.0/samples/03-workflows/control-flow/sequential_streaming.py +80 -0
- agent_framework-1.0.0/samples/03-workflows/control-flow/simple_loop.py +173 -0
- agent_framework-1.0.0/samples/03-workflows/control-flow/switch_case_edge_group.py +240 -0
- agent_framework-1.0.0/samples/03-workflows/control-flow/workflow_cancellation.py +94 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/README.md +77 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/__init__.py +3 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/agent_to_function_tool/main.py +271 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/agent_to_function_tool/workflow.yaml +56 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/conditional_workflow/README.md +23 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/conditional_workflow/main.py +52 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/conditional_workflow/workflow.yaml +69 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/customer_support/README.md +37 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/customer_support/__init__.py +1 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/customer_support/main.py +359 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/customer_support/ticketing_plugin.py +79 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/customer_support/workflow.yaml +164 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/deep_research/README.md +33 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/deep_research/__init__.py +1 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/deep_research/main.py +218 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/function_tools/README.md +94 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/function_tools/main.py +132 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/function_tools/workflow.yaml +22 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/human_in_loop/README.md +59 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/human_in_loop/main.py +72 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/human_in_loop/workflow.yaml +75 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/invoke_function_tool/main.py +116 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/invoke_function_tool/workflow.yaml +51 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/marketing/README.md +76 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/marketing/main.py +108 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/marketing/workflow.yaml +30 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/simple_workflow/README.md +24 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/simple_workflow/main.py +33 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/simple_workflow/workflow.yaml +38 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/student_teacher/README.md +61 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/student_teacher/main.py +106 -0
- agent_framework-1.0.0/samples/03-workflows/declarative/student_teacher/workflow.yaml +98 -0
- agent_framework-1.0.0/samples/03-workflows/evaluation/evaluate_workflow.py +69 -0
- agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/agents_with_HITL.py +235 -0
- agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/agents_with_approval_requests.py +352 -0
- agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/agents_with_declaration_only_tools.py +107 -0
- agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/concurrent_request_info.py +213 -0
- agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/group_chat_request_info.py +182 -0
- agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/guessing_game_with_human_input.py +252 -0
- agent_framework-1.0.0/samples/03-workflows/human-in-the-loop/sequential_request_info.py +149 -0
- agent_framework-1.0.0/samples/03-workflows/observability/executor_io_observation.py +124 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/README.md +108 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/concurrent_agents.py +144 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/concurrent_custom_agent_executors.py +188 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/concurrent_custom_aggregator.py +138 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/group_chat_agent_manager.py +125 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/group_chat_philosophical_debate.py +375 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/group_chat_simple_selector.py +146 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/handoff_autonomous.py +164 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/handoff_simple.py +310 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/handoff_with_code_interpreter_file.py +193 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/handoff_with_tool_approval_checkpoint_resume.py +257 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/magentic.py +157 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/magentic_checkpoint.py +319 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/magentic_human_plan_review.py +164 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/sequential_agents.py +92 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/sequential_chain_only_agent_responses.py +84 -0
- agent_framework-1.0.0/samples/03-workflows/orchestrations/sequential_custom_executors.py +116 -0
- agent_framework-1.0.0/samples/03-workflows/parallelism/aggregate_results_of_different_types.py +98 -0
- agent_framework-1.0.0/samples/03-workflows/parallelism/fan_out_fan_in_edges.py +197 -0
- agent_framework-1.0.0/samples/03-workflows/parallelism/map_reduce_and_visualization.py +318 -0
- agent_framework-1.0.0/samples/03-workflows/resources/ambiguous_email.txt +19 -0
- agent_framework-1.0.0/samples/03-workflows/resources/email.txt +18 -0
- agent_framework-1.0.0/samples/03-workflows/resources/long_text.txt +199 -0
- agent_framework-1.0.0/samples/03-workflows/resources/spam.txt +25 -0
- agent_framework-1.0.0/samples/03-workflows/state-management/state_with_agents.py +248 -0
- agent_framework-1.0.0/samples/03-workflows/state-management/workflow_kwargs_global.py +170 -0
- agent_framework-1.0.0/samples/03-workflows/state-management/workflow_kwargs_per_agent.py +222 -0
- agent_framework-1.0.0/samples/03-workflows/tool-approval/concurrent_builder_tool_approval.py +214 -0
- agent_framework-1.0.0/samples/03-workflows/tool-approval/group_chat_builder_tool_approval.py +230 -0
- agent_framework-1.0.0/samples/03-workflows/tool-approval/sequential_builder_tool_approval.py +166 -0
- agent_framework-1.0.0/samples/03-workflows/visualization/concurrent_with_visualization.py +174 -0
- agent_framework-1.0.0/samples/04-hosting/a2a/README.md +74 -0
- agent_framework-1.0.0/samples/04-hosting/a2a/a2a_agent_as_function_tools.py +150 -0
- agent_framework-1.0.0/samples/04-hosting/a2a/a2a_server.http +82 -0
- agent_framework-1.0.0/samples/04-hosting/a2a/a2a_server.py +120 -0
- agent_framework-1.0.0/samples/04-hosting/a2a/agent_definitions.py +172 -0
- agent_framework-1.0.0/samples/04-hosting/a2a/agent_executor.py +123 -0
- agent_framework-1.0.0/samples/04-hosting/a2a/agent_with_a2a.py +112 -0
- agent_framework-1.0.0/samples/04-hosting/a2a/invoice_data.py +227 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/README.md +64 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/demo.http +22 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/function_app.py +52 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/host.json +12 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/local.settings.json.template +11 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/01_single_agent/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/README.md +104 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/demo.http +57 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/function_app.py +111 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/host.json +20 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/local.settings.json.template +11 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/02_multi_agent/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/README.md +132 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/demo.http +55 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/function_app.py +327 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/host.json +20 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/local.settings.json.template +13 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/redis_stream_response_handler.py +201 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/03_reliable_streaming/tools.py +164 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/README.md +53 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/demo.http +9 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/function_app.py +174 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/host.json +12 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/local.settings.json.template +11 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/04_single_agent_orchestration_chaining/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/README.md +58 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/demo.http +11 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/function_app.py +206 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/host.json +12 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/local.settings.json.template +11 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/05_multi_agent_orchestration_concurrency/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/README.md +35 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/demo.http +24 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/function_app.py +265 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/host.json +12 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/local.settings.json.template +11 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/06_multi_agent_orchestration_conditionals/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/README.md +48 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/demo.http +45 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/function_app.py +402 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/host.json +12 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/local.settings.json.template +11 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/07_single_agent_orchestration_hitl/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/08_mcp_server/README.md +198 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/08_mcp_server/function_app.py +79 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/08_mcp_server/host.json +7 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/08_mcp_server/local.settings.json.template +10 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/08_mcp_server/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/.gitignore +18 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/README.md +99 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/demo.http +31 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/function_app.py +287 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/host.json +12 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/local.settings.json.sample +11 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/09_workflow_shared_state/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/.env.sample +3 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/.gitignore +2 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/README.md +159 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/demo.http +32 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/function_app.py +245 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/host.json +12 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/local.settings.json.sample +11 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/10_workflow_no_shared_state/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/.env.template +13 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/.gitignore +4 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/README.md +194 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/demo.http +29 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/function_app.py +497 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/host.json +12 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/local.settings.json.sample +11 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/11_workflow_parallel/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/.gitignore +5 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/README.md +141 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/demo.http +123 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/function_app.py +463 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/host.json +12 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/local.settings.json.sample +11 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/12_workflow_hitl/requirements.txt +15 -0
- agent_framework-1.0.0/samples/04-hosting/azure_functions/README.md +47 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/01_single_agent/README.md +73 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/01_single_agent/client.py +123 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/01_single_agent/requirements.txt +14 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/01_single_agent/sample.py +50 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/01_single_agent/worker.py +132 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/02_multi_agent/README.md +80 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/02_multi_agent/client.py +120 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/02_multi_agent/requirements.txt +14 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/02_multi_agent/sample.py +50 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/02_multi_agent/worker.py +184 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/README.md +150 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/client.py +186 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/redis_stream_response_handler.py +203 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/requirements.txt +14 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/sample.py +52 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/tools.py +168 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/03_single_agent_streaming/worker.py +263 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/04_single_agent_orchestration_chaining/README.md +68 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/04_single_agent_orchestration_chaining/client.py +114 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/04_single_agent_orchestration_chaining/requirements.txt +14 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/04_single_agent_orchestration_chaining/sample.py +61 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/04_single_agent_orchestration_chaining/worker.py +215 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/05_multi_agent_orchestration_concurrency/README.md +71 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/05_multi_agent_orchestration_concurrency/client.py +114 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/05_multi_agent_orchestration_concurrency/requirements.txt +14 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/05_multi_agent_orchestration_concurrency/sample.py +55 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/05_multi_agent_orchestration_concurrency/worker.py +223 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/06_multi_agent_orchestration_conditionals/README.md +89 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/06_multi_agent_orchestration_conditionals/client.py +142 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/06_multi_agent_orchestration_conditionals/requirements.txt +14 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/06_multi_agent_orchestration_conditionals/sample.py +77 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/06_multi_agent_orchestration_conditionals/worker.py +313 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/07_single_agent_orchestration_hitl/README.md +87 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/07_single_agent_orchestration_hitl/client.py +284 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/07_single_agent_orchestration_hitl/requirements.txt +14 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/07_single_agent_orchestration_hitl/sample.py +52 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/07_single_agent_orchestration_hitl/worker.py +381 -0
- agent_framework-1.0.0/samples/04-hosting/durabletask/README.md +132 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/README.md +93 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/backend/server.py +292 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/.gitignore +7 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/index.html +13 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/package-lock.json +1861 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/package.json +23 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/src/App.tsx +996 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/src/main.tsx +13 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/src/styles.css +544 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/src/vite-env.d.ts +3 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/tsconfig.json +20 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/tsconfig.node.json +13 -0
- agent_framework-1.0.0/samples/05-end-to-end/ag_ui_workflow_handoff/frontend/vite.config.ts +12 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/.gitignore +4 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/README.md +318 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/__init__.py +1 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/app.py +651 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/attachment_store.py +119 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/index.html +57 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/package-lock.json +1482 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/package.json +27 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/src/App.tsx +39 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/src/main.tsx +15 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/src/vite-env.d.ts +1 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/tsconfig.json +21 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/tsconfig.node.json +10 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/frontend/vite.config.ts +24 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/store.py +348 -0
- agent_framework-1.0.0/samples/05-end-to-end/chatkit-integration/weather_widget.py +436 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/.env.example +3 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/README.md +46 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_agent_sample.py +154 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_mixed_sample.py +159 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_multiturn_sample.py +182 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_tool_calls_sample.py +88 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_traces_sample.py +114 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/foundry_evals/evaluate_workflow_sample.py +176 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/red_teaming/.env.example +8 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/red_teaming/README.md +204 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/red_teaming/red_team_agent_sample.py +146 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/self_reflection/.env.example +1 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/self_reflection/README.md +75 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/self_reflection/resources/suboptimal_groundedness_prompts.jsonl +31 -0
- agent_framework-1.0.0/samples/05-end-to-end/evaluation/self_reflection/self_reflection.py +469 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/README.md +145 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_hosted_mcp/Dockerfile +16 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_hosted_mcp/agent.yaml +30 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_hosted_mcp/main.py +34 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_hosted_mcp/requirements.txt +2 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/.dockerignore +66 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/.env.sample +3 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/Dockerfile +16 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/README.md +162 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/agent.yaml +27 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/main.py +144 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_local_tools/requirements.txt +2 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_text_search_rag/Dockerfile +16 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_text_search_rag/agent.yaml +33 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_text_search_rag/main.py +123 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agent_with_text_search_rag/requirements.txt +2 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agents_in_workflow/Dockerfile +16 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agents_in_workflow/agent.yaml +28 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agents_in_workflow/main.py +52 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/agents_in_workflow/requirements.txt +2 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/.dockerignore +51 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/.env.sample +3 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/Dockerfile +16 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/README.md +157 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/agent.yaml +24 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/main.py +71 -0
- agent_framework-1.0.0/samples/05-end-to-end/hosted_agents/writer_reviewer_agents_in_workflow/requirements.txt +2 -0
- agent_framework-1.0.0/samples/05-end-to-end/m365-agent/.env.example +17 -0
- agent_framework-1.0.0/samples/05-end-to-end/m365-agent/README.md +100 -0
- agent_framework-1.0.0/samples/05-end-to-end/m365-agent/m365_agent_demo/app.py +247 -0
- agent_framework-1.0.0/samples/05-end-to-end/neo4j_graphrag/README.md +43 -0
- agent_framework-1.0.0/samples/05-end-to-end/neo4j_graphrag/main.py +112 -0
- agent_framework-1.0.0/samples/05-end-to-end/purview_agent/README.md +144 -0
- agent_framework-1.0.0/samples/05-end-to-end/purview_agent/sample_purview_agent.py +331 -0
- agent_framework-1.0.0/samples/05-end-to-end/workflow_evaluation/.env.example +3 -0
- agent_framework-1.0.0/samples/05-end-to-end/workflow_evaluation/README.md +30 -0
- agent_framework-1.0.0/samples/05-end-to-end/workflow_evaluation/_tools.py +749 -0
- agent_framework-1.0.0/samples/05-end-to-end/workflow_evaluation/create_workflow.py +398 -0
- agent_framework-1.0.0/samples/05-end-to-end/workflow_evaluation/run_evaluation.py +240 -0
- agent_framework-1.0.0/samples/AGENTS.md +116 -0
- agent_framework-1.0.0/samples/README.md +178 -0
- agent_framework-1.0.0/samples/SAMPLE_GUIDELINES.md +188 -0
- agent_framework-1.0.0/samples/__init__.py +0 -0
- agent_framework-1.0.0/samples/autogen-migration/.gitignore +2 -0
- agent_framework-1.0.0/samples/autogen-migration/README.md +61 -0
- agent_framework-1.0.0/samples/autogen-migration/orchestrations/01_round_robin_group_chat.py +193 -0
- agent_framework-1.0.0/samples/autogen-migration/orchestrations/02_selector_group_chat.py +126 -0
- agent_framework-1.0.0/samples/autogen-migration/orchestrations/03_swarm.py +245 -0
- agent_framework-1.0.0/samples/autogen-migration/orchestrations/04_magentic_one.py +172 -0
- agent_framework-1.0.0/samples/autogen-migration/pyrightconfig.json +5 -0
- agent_framework-1.0.0/samples/autogen-migration/single_agent/01_basic_agent.py +75 -0
- agent_framework-1.0.0/samples/autogen-migration/single_agent/02_agent_with_tool.py +97 -0
- agent_framework-1.0.0/samples/autogen-migration/single_agent/03_agent_thread_and_stream.py +98 -0
- agent_framework-1.0.0/samples/autogen-migration/single_agent/04_agent_as_tool.py +138 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/README.md +72 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/chat_completion/01_basic_chat_completion.py +63 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/chat_completion/02_chat_completion_with_tool.py +71 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/chat_completion/03_chat_completion_thread_and_stream.py +88 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/copilot_studio/01_basic_copilot_studio_agent.py +51 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/copilot_studio/02_copilot_studio_streaming.py +57 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/openai_responses/01_basic_responses_agent.py +60 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/openai_responses/02_responses_agent_with_tool.py +72 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/openai_responses/03_responses_agent_structured_output.py +73 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/orchestrations/concurrent_basic.py +139 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/orchestrations/group_chat.py +289 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/orchestrations/handoff.py +305 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/orchestrations/magentic.py +209 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/orchestrations/sequential.py +142 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/processes/fan_out_fan_in_process.py +266 -0
- agent_framework-1.0.0/samples/semantic-kernel-migration/processes/nested_process.py +292 -0
- agent_framework-1.0.0/samples/shared/resources/countries.json +141 -0
- agent_framework-1.0.0/samples/shared/resources/employees.pdf +76 -0
- agent_framework-1.0.0/samples/shared/resources/weather.json +62 -0
- agent_framework-1.0.0/samples/shared/sample_assets/sample.pdf +0 -0
- agent_framework-1.0.0/samples/shared/sample_assets/sample_image.jpg +0 -0
- agent_framework-1.0.0/scripts/__init__.py +5 -0
- agent_framework-1.0.0/scripts/check_md_code_blocks.py +157 -0
- agent_framework-1.0.0/scripts/dependencies/README.md +95 -0
- agent_framework-1.0.0/scripts/dependencies/__init__.py +0 -0
- agent_framework-1.0.0/scripts/dependencies/_dependency_bounds_lower_impl.py +1102 -0
- agent_framework-1.0.0/scripts/dependencies/_dependency_bounds_runtime.py +86 -0
- agent_framework-1.0.0/scripts/dependencies/_dependency_bounds_upper_impl.py +1291 -0
- agent_framework-1.0.0/scripts/dependencies/add_dependency_to_project.py +118 -0
- agent_framework-1.0.0/scripts/dependencies/upgrade_dev_dependencies.py +189 -0
- agent_framework-1.0.0/scripts/dependencies/validate_dependency_bounds.py +505 -0
- agent_framework-1.0.0/scripts/local_mcp_streamable_http_server.py +95 -0
- agent_framework-1.0.0/scripts/run_tasks_in_changed_packages.py +99 -0
- agent_framework-1.0.0/scripts/run_tasks_in_packages_if_exists.py +29 -0
- agent_framework-1.0.0/scripts/sample_validation/README.md +182 -0
- agent_framework-1.0.0/scripts/sample_validation/__init__.py +25 -0
- agent_framework-1.0.0/scripts/sample_validation/__main__.py +155 -0
- agent_framework-1.0.0/scripts/sample_validation/aggregate.py +224 -0
- agent_framework-1.0.0/scripts/sample_validation/const.py +3 -0
- agent_framework-1.0.0/scripts/sample_validation/create_dynamic_workflow_executor.py +324 -0
- agent_framework-1.0.0/scripts/sample_validation/discovery.py +136 -0
- agent_framework-1.0.0/scripts/sample_validation/models.py +161 -0
- agent_framework-1.0.0/scripts/sample_validation/report.py +122 -0
- agent_framework-1.0.0/scripts/sample_validation/run_dynamic_validation_workflow_executor.py +78 -0
- agent_framework-1.0.0/scripts/sample_validation/workflow.py +47 -0
- agent_framework-1.0.0/scripts/task_runner.py +218 -0
- agent_framework-1.0.0/scripts/workspace_poe_tasks.py +698 -0
- agent_framework-1.0.0/shared_tasks.toml +39 -0
- agent_framework-1.0.0/tests/samples/getting_started/test_agent_samples.py +594 -0
- agent_framework-1.0.0/tests/samples/getting_started/test_chat_client_samples.py +133 -0
- agent_framework-1.0.0/tests/samples/getting_started/test_threads_samples.py +52 -0
- agent_framework-1.0.0/uv.lock +7200 -0
- agent_framework-0.0.0/PKG-INFO +0 -5
- agent_framework-0.0.0/agent_framework.egg-info/PKG-INFO +0 -5
- agent_framework-0.0.0/agent_framework.egg-info/SOURCES.txt +0 -5
- agent_framework-0.0.0/agent_framework.egg-info/dependency_links.txt +0 -1
- agent_framework-0.0.0/agent_framework.egg-info/top_level.txt +0 -1
- agent_framework-0.0.0/pyproject.toml +0 -7
- 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,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**
|