agent-framework-declarative 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agent_framework_declarative/__init__.py +71 -0
- agent_framework_declarative/_loader.py +868 -0
- agent_framework_declarative/_models.py +1154 -0
- agent_framework_declarative/_workflows/__init__.py +167 -0
- agent_framework_declarative/_workflows/_declarative_base.py +1226 -0
- agent_framework_declarative/_workflows/_declarative_builder.py +1057 -0
- agent_framework_declarative/_workflows/_errors.py +38 -0
- agent_framework_declarative/_workflows/_executors_agents.py +1025 -0
- agent_framework_declarative/_workflows/_executors_basic.py +574 -0
- agent_framework_declarative/_workflows/_executors_control_flow.py +461 -0
- agent_framework_declarative/_workflows/_executors_external_input.py +243 -0
- agent_framework_declarative/_workflows/_executors_http.py +417 -0
- agent_framework_declarative/_workflows/_executors_mcp.py +549 -0
- agent_framework_declarative/_workflows/_executors_tools.py +660 -0
- agent_framework_declarative/_workflows/_factory.py +808 -0
- agent_framework_declarative/_workflows/_http_handler.py +237 -0
- agent_framework_declarative/_workflows/_mcp_handler.py +581 -0
- agent_framework_declarative/_workflows/_powerfx_functions.py +498 -0
- agent_framework_declarative/_workflows/_state.py +650 -0
- agent_framework_declarative-1.0.0.dist-info/METADATA +49 -0
- agent_framework_declarative-1.0.0.dist-info/RECORD +23 -0
- agent_framework_declarative-1.0.0.dist-info/WHEEL +4 -0
- agent_framework_declarative-1.0.0.dist-info/licenses/LICENSE +21 -0
|
@@ -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
|
+
]
|