agent-framework-declarative 1.0.2__tar.gz → 1.0.3__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_declarative-1.0.2 → agent_framework_declarative-1.0.3}/PKG-INFO +2 -2
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_executors_mcp.py +1 -1
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_executors_tools.py +6 -1
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/pyproject.toml +2 -2
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/LICENSE +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/README.md +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/__init__.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_feature_usage.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_loader.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_models.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/__init__.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_declarative_base.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_declarative_builder.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_errors.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_executors_agents.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_executors_basic.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_executors_control_flow.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_executors_external_input.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_executors_http.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_factory.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_http_handler.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_mcp_handler.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_powerfx_functions.py +0 -0
- {agent_framework_declarative-1.0.2 → agent_framework_declarative-1.0.3}/agent_framework_declarative/_workflows/_state.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agent-framework-declarative
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: Declarative specification support for Microsoft Agent Framework.
|
|
5
5
|
Author-email: Microsoft <af-support@microsoft.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
16
|
Classifier: Typing :: Typed
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: agent-framework-core>=1.
|
|
18
|
+
Requires-Dist: agent-framework-core>=1.15.0,<2
|
|
19
19
|
Requires-Dist: httpx>=0.27,<1
|
|
20
20
|
Requires-Dist: powerfx>=0.0.32,<0.0.35; python_version < '3.14'
|
|
21
21
|
Requires-Dist: pyyaml>=6.0,<7.0
|
|
@@ -284,7 +284,7 @@ class InvokeMcpToolActionExecutor(DeclarativeActionExecutor):
|
|
|
284
284
|
output_messages_path = _get_output_path(self._action_def, "messages")
|
|
285
285
|
output_result_path = _get_output_path(self._action_def, "result")
|
|
286
286
|
|
|
287
|
-
if
|
|
287
|
+
if response.approved is not True:
|
|
288
288
|
logger.info(
|
|
289
289
|
"%s: MCP tool '%s' rejected: %s",
|
|
290
290
|
self.__class__.__name__,
|
|
@@ -82,6 +82,11 @@ class ToolApprovalResponse:
|
|
|
82
82
|
approved: bool
|
|
83
83
|
reason: str | None = None
|
|
84
84
|
|
|
85
|
+
def __post_init__(self) -> None:
|
|
86
|
+
"""Reject non-boolean approval decisions."""
|
|
87
|
+
if not isinstance(self.approved, bool):
|
|
88
|
+
raise TypeError("approved must be a bool.")
|
|
89
|
+
|
|
85
90
|
|
|
86
91
|
# ============================================================================
|
|
87
92
|
# Result Types
|
|
@@ -524,7 +529,7 @@ class BaseToolExecutor(DeclarativeActionExecutor):
|
|
|
524
529
|
messages_var, result_var, auto_send = self._get_output_config()
|
|
525
530
|
|
|
526
531
|
# Check if approved
|
|
527
|
-
if
|
|
532
|
+
if response.approved is not True:
|
|
528
533
|
logger.info(f"{self.__class__.__name__}: tool invocation rejected: {response.reason}")
|
|
529
534
|
|
|
530
535
|
# Store rejection status (don't raise error)
|
|
@@ -4,7 +4,7 @@ description = "Declarative specification support for Microsoft Agent Framework."
|
|
|
4
4
|
authors = [{ name = "Microsoft", email = "af-support@microsoft.com"}]
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.3"
|
|
8
8
|
license-files = ["LICENSE"]
|
|
9
9
|
urls.homepage = "https://aka.ms/agent-framework"
|
|
10
10
|
urls.source = "https://github.com/microsoft/agent-framework/tree/main/python"
|
|
@@ -22,7 +22,7 @@ classifiers = [
|
|
|
22
22
|
"Typing :: Typed",
|
|
23
23
|
]
|
|
24
24
|
dependencies = [
|
|
25
|
-
"agent-framework-core>=1.
|
|
25
|
+
"agent-framework-core>=1.15.0,<2",
|
|
26
26
|
"httpx>=0.27,<1",
|
|
27
27
|
"powerfx>=0.0.32,<0.0.35; python_version < '3.14'",
|
|
28
28
|
"pyyaml>=6.0,<7.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|