agent-framework-declarative 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. agent_framework_declarative-1.0.0/LICENSE +21 -0
  2. agent_framework_declarative-1.0.0/PKG-INFO +49 -0
  3. agent_framework_declarative-1.0.0/README.md +22 -0
  4. agent_framework_declarative-1.0.0/agent_framework_declarative/__init__.py +71 -0
  5. agent_framework_declarative-1.0.0/agent_framework_declarative/_loader.py +868 -0
  6. agent_framework_declarative-1.0.0/agent_framework_declarative/_models.py +1154 -0
  7. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/__init__.py +167 -0
  8. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_declarative_base.py +1226 -0
  9. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_declarative_builder.py +1057 -0
  10. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_errors.py +38 -0
  11. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_executors_agents.py +1025 -0
  12. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_executors_basic.py +574 -0
  13. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_executors_control_flow.py +461 -0
  14. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_executors_external_input.py +243 -0
  15. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_executors_http.py +417 -0
  16. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_executors_mcp.py +549 -0
  17. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_executors_tools.py +660 -0
  18. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_factory.py +808 -0
  19. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_http_handler.py +237 -0
  20. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_mcp_handler.py +581 -0
  21. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_powerfx_functions.py +498 -0
  22. agent_framework_declarative-1.0.0/agent_framework_declarative/_workflows/_state.py +650 -0
  23. agent_framework_declarative-1.0.0/pyproject.toml +107 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: agent-framework-declarative
3
+ Version: 1.0.0
4
+ Summary: Declarative specification support for Microsoft Agent Framework.
5
+ Author-email: Microsoft <af-support@microsoft.com>
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Typing :: Typed
17
+ License-File: LICENSE
18
+ Requires-Dist: agent-framework-core>=1.9.0,<2
19
+ Requires-Dist: httpx>=0.27,<1
20
+ Requires-Dist: powerfx>=0.0.32,<0.0.35; python_version < '3.14'
21
+ Requires-Dist: pyyaml>=6.0,<7.0
22
+ Project-URL: homepage, https://aka.ms/agent-framework
23
+ Project-URL: issues, https://github.com/microsoft/agent-framework/issues
24
+ Project-URL: release_notes, https://github.com/microsoft/agent-framework/releases?q=tag%3Apython-1&expanded=true
25
+ Project-URL: source, https://github.com/microsoft/agent-framework/tree/main/python
26
+
27
+ # Get Started with Microsoft Agent Framework Declarative
28
+
29
+ Please install this package via pip:
30
+
31
+ ```bash
32
+ pip install agent-framework-declarative
33
+ ```
34
+
35
+ ## Release stage
36
+
37
+ This package ships at two different stability levels:
38
+
39
+ - **Declarative workflows** (`WorkflowFactory`, executors, handlers, and the
40
+ `_workflows` surface) are **stable**.
41
+ - **Declarative agents** (`AgentFactory` and the YAML agent loading/parsing path:
42
+ `DeclarativeLoaderError`, `ProviderLookupError`, `ProviderTypeMapping`) are
43
+ **experimental** and may change or be removed in future versions without notice.
44
+ Using any of these symbols emits an `ExperimentalWarning` on first use.
45
+
46
+ ## Declarative features
47
+
48
+ The declarative packages provides support for building agents based on a declarative yaml specification.
49
+
@@ -0,0 +1,22 @@
1
+ # Get Started with Microsoft Agent Framework Declarative
2
+
3
+ Please install this package via pip:
4
+
5
+ ```bash
6
+ pip install agent-framework-declarative
7
+ ```
8
+
9
+ ## Release stage
10
+
11
+ This package ships at two different stability levels:
12
+
13
+ - **Declarative workflows** (`WorkflowFactory`, executors, handlers, and the
14
+ `_workflows` surface) are **stable**.
15
+ - **Declarative agents** (`AgentFactory` and the YAML agent loading/parsing path:
16
+ `DeclarativeLoaderError`, `ProviderLookupError`, `ProviderTypeMapping`) are
17
+ **experimental** and may change or be removed in future versions without notice.
18
+ Using any of these symbols emits an `ExperimentalWarning` on first use.
19
+
20
+ ## Declarative features
21
+
22
+ The declarative packages provides support for building agents based on a declarative yaml specification.
@@ -0,0 +1,71 @@
1
+ # Copyright (c) Microsoft. All rights reserved.
2
+
3
+ """Declarative specification support for Microsoft Agent Framework.
4
+
5
+ Release stage:
6
+
7
+ * The declarative-workflows surface (``WorkflowFactory``, executors, handlers,
8
+ etc.) is stable.
9
+ * The declarative-agents surface (``AgentFactory`` and the YAML agent
10
+ loading/parsing path: ``DeclarativeLoaderError``, ``ProviderLookupError``,
11
+ ``ProviderTypeMapping``) is *experimental* and may change or be removed in
12
+ future versions without notice. Using these symbols emits an
13
+ ``ExperimentalWarning`` on first use.
14
+ """
15
+
16
+ from importlib import metadata
17
+
18
+ from ._loader import AgentFactory, DeclarativeLoaderError, ProviderLookupError, ProviderTypeMapping
19
+ from ._workflows import (
20
+ AgentExternalInputRequest,
21
+ AgentExternalInputResponse,
22
+ DeclarativeActionError,
23
+ DeclarativeWorkflowError,
24
+ DefaultHttpRequestHandler,
25
+ DefaultMCPToolHandler,
26
+ ExternalInputRequest,
27
+ ExternalInputResponse,
28
+ HttpRequestHandler,
29
+ HttpRequestInfo,
30
+ HttpRequestResult,
31
+ MCPToolApprovalRequest,
32
+ MCPToolHandler,
33
+ MCPToolInvocation,
34
+ MCPToolResult,
35
+ ToolApprovalRequest,
36
+ ToolApprovalResponse,
37
+ WorkflowFactory,
38
+ WorkflowState,
39
+ )
40
+
41
+ try:
42
+ __version__ = metadata.version(__name__)
43
+ except metadata.PackageNotFoundError:
44
+ __version__ = "0.0.0" # Fallback for development mode
45
+
46
+ __all__ = [
47
+ "AgentExternalInputRequest",
48
+ "AgentExternalInputResponse",
49
+ "AgentFactory",
50
+ "DeclarativeActionError",
51
+ "DeclarativeLoaderError",
52
+ "DeclarativeWorkflowError",
53
+ "DefaultHttpRequestHandler",
54
+ "DefaultMCPToolHandler",
55
+ "ExternalInputRequest",
56
+ "ExternalInputResponse",
57
+ "HttpRequestHandler",
58
+ "HttpRequestInfo",
59
+ "HttpRequestResult",
60
+ "MCPToolApprovalRequest",
61
+ "MCPToolHandler",
62
+ "MCPToolInvocation",
63
+ "MCPToolResult",
64
+ "ProviderLookupError",
65
+ "ProviderTypeMapping",
66
+ "ToolApprovalRequest",
67
+ "ToolApprovalResponse",
68
+ "WorkflowFactory",
69
+ "WorkflowState",
70
+ "__version__",
71
+ ]