aiyoplane-microsoft-agent-framework 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.
@@ -0,0 +1,42 @@
1
+ """aiyoplane-microsoft-agent-framework.
2
+
3
+ AEAP Composition Boundary Adapter for the Microsoft Agent Framework.
4
+
5
+ Microsoft Agent Framework (the successor to AutoGen + Semantic Kernel)
6
+ exposes an explicit middleware primitive for intercepting agent actions.
7
+ That middleware primitive is architecturally close to the AEAP Composition
8
+ Boundary; this adapter wires AEAP's Runtime Decision Point directly into
9
+ the middleware chain.
10
+
11
+ Aiyoplane, Inc. - Apache 2.0 licensed.
12
+ https://aiyoplane.com
13
+
14
+ Specification: https://github.com/aiyoplane/aeap
15
+ """
16
+
17
+ from aiyoplane_microsoft_agent_framework.adapter import (
18
+ AiyoAgentMiddleware,
19
+ IntentBuilder,
20
+ aiyo_middleware,
21
+ wrap_action,
22
+ )
23
+ from aiyoplane_microsoft_agent_framework.errors import (
24
+ AdapterConfigError,
25
+ AiyoMSAgentFrameworkError,
26
+ BlockedByPolicy,
27
+ EscalationRequired,
28
+ )
29
+
30
+ __version__ = "1.0.0"
31
+
32
+ __all__ = [
33
+ "AiyoAgentMiddleware",
34
+ "aiyo_middleware",
35
+ "wrap_action",
36
+ "IntentBuilder",
37
+ "AiyoMSAgentFrameworkError",
38
+ "AdapterConfigError",
39
+ "BlockedByPolicy",
40
+ "EscalationRequired",
41
+ "__version__",
42
+ ]
@@ -0,0 +1,285 @@
1
+ """AEAP Composition Boundary Adapter for the Microsoft Agent Framework.
2
+
3
+ Microsoft Agent Framework exposes an explicit middleware primitive for
4
+ intercepting agent actions. The adapter provides two integration surfaces:
5
+
6
+ 1. **`AiyoAgentMiddleware`** — a middleware class to register in the agent's
7
+ middleware chain. It intercepts action invocations, builds an AEAP Intent,
8
+ calls the RDP, and composes the verdict into the middleware response.
9
+
10
+ 2. **`wrap_action`** — a function-level wrapper that gates a single callable
11
+ with the AEAP RDP, suitable for use in workflow nodes or as a direct
12
+ function-call interceptor outside the middleware chain.
13
+
14
+ Both surfaces compose with the framework's own workflow, telemetry, session,
15
+ and tool machinery — they do not replace any of them.
16
+
17
+ The exact middleware base class provided by the framework varies by framework
18
+ version; this adapter targets the current public middleware shape and allows
19
+ override via the `middleware_base` parameter when the framework exposes
20
+ alternative base classes.
21
+
22
+ Fail-closed semantics
23
+ ---------------------
24
+
25
+ Every ambiguous condition — missing intent_builder, missing tool_config
26
+ entry, RDP unreachable, non-dict Intent — results in BlockedByPolicy.
27
+ """
28
+
29
+ from __future__ import annotations
30
+
31
+ import asyncio
32
+ import functools
33
+ import inspect
34
+ from typing import Any, Awaitable, Callable, Dict, Optional, Union
35
+
36
+ from aiyoplane_microsoft_agent_framework.errors import (
37
+ AdapterConfigError,
38
+ BlockedByPolicy,
39
+ EscalationRequired,
40
+ )
41
+
42
+ # Signature: (action_payload: Dict[str, Any]) -> Dict[str, Any]
43
+ IntentBuilder = Callable[[Dict[str, Any]], Dict[str, Any]]
44
+
45
+ ActionCallable = Callable[..., Union[Any, Awaitable[Any]]]
46
+
47
+
48
+ def _build_intent(builder: IntentBuilder, payload: Dict[str, Any], action_name: str) -> Dict[str, Any]:
49
+ if not callable(builder):
50
+ raise AdapterConfigError(
51
+ f"intent_builder for action '{action_name}' is not callable"
52
+ )
53
+ try:
54
+ intent = builder(payload)
55
+ except Exception as exc:
56
+ raise BlockedByPolicy(
57
+ f"intent_builder for action '{action_name}' raised: {exc!r}",
58
+ reason_code="INTENT_BUILD_FAILED",
59
+ ) from exc
60
+ if not isinstance(intent, dict):
61
+ raise BlockedByPolicy(
62
+ f"intent_builder for action '{action_name}' did not return a dict",
63
+ reason_code="INTENT_SHAPE_INVALID",
64
+ )
65
+ return intent
66
+
67
+
68
+ async def _evaluate_rdp(authz: Any, tool_name: str, intent: Dict[str, Any]) -> Any:
69
+ if authz is None or not hasattr(authz, "wrap"):
70
+ raise AdapterConfigError(
71
+ "adapter received an invalid authz (missing .wrap); fail closed"
72
+ )
73
+
74
+ try:
75
+ wrap = authz.wrap(tool_name)
76
+ except Exception as exc:
77
+ raise BlockedByPolicy(
78
+ f"authz.wrap('{tool_name}') failed: {exc!r}",
79
+ reason_code=type(exc).__name__,
80
+ ) from exc
81
+
82
+ async def _passthrough(args: Dict[str, Any], ctx: Any) -> Any:
83
+ return ctx
84
+
85
+ wrapped = wrap(_passthrough)
86
+
87
+ try:
88
+ if inspect.iscoroutinefunction(wrapped):
89
+ ctx = await wrapped(dict(intent), None)
90
+ else:
91
+ ctx = wrapped(dict(intent), None)
92
+ if inspect.isawaitable(ctx):
93
+ ctx = await ctx
94
+ except Exception as exc:
95
+ msg = str(exc)
96
+ if "escalat" in msg.lower() or "ESCALATE" in msg:
97
+ raise EscalationRequired(
98
+ f"AEAP ESCALATE verdict for action '{tool_name}' (intent={intent!r}): {msg}",
99
+ extra={"inner_exception": type(exc).__name__, "intent": intent},
100
+ ) from exc
101
+ raise BlockedByPolicy(
102
+ f"AEAP non-ALLOW verdict for action '{tool_name}' (intent={intent!r}): {msg}",
103
+ reason_code=type(exc).__name__,
104
+ extra={"inner_exception": type(exc).__name__, "intent": intent},
105
+ ) from exc
106
+
107
+ return ctx
108
+
109
+
110
+ class AiyoAgentMiddleware:
111
+ """AEAP middleware for the Microsoft Agent Framework.
112
+
113
+ Register this middleware with your Agent to attach an AEAP Composition
114
+ Boundary to every action matching an entry in `authz.tool_config`.
115
+
116
+ The adapter intercepts the agent's `invoke_action` (or equivalent) call,
117
+ builds an Intent from the action payload using the per-action intent
118
+ builder, and either forwards the action to the next middleware (on ALLOW)
119
+ or raises BlockedByPolicy / EscalationRequired.
120
+
121
+ Usage::
122
+
123
+ from agent_framework import Agent
124
+ from aiyoplane_mcp_authz import create_aiyo_mcp_authz, create_local_rdp
125
+ from aiyoplane_microsoft_agent_framework import AiyoAgentMiddleware
126
+
127
+ authz = create_aiyo_mcp_authz(
128
+ rdp=create_local_rdp(policy=my_policy),
129
+ tool_config={
130
+ "transfer_funds": {"aiyo_gated": True, "action": {"type": "payment"}},
131
+ },
132
+ )
133
+
134
+ aiyo_mw = AiyoAgentMiddleware(
135
+ authz=authz,
136
+ intent_builders={
137
+ "transfer_funds": lambda payload: {
138
+ "type": "payment",
139
+ "amount": payload["amount"],
140
+ },
141
+ },
142
+ )
143
+
144
+ agent = Agent(name="banker", middleware=[aiyo_mw, ...])
145
+ """
146
+
147
+ def __init__(
148
+ self,
149
+ *,
150
+ authz: Any,
151
+ intent_builders: Dict[str, IntentBuilder],
152
+ attach_receipt_key: str = "aeap_receipt",
153
+ ) -> None:
154
+ if authz is None or not hasattr(authz, "wrap"):
155
+ raise AdapterConfigError("AiyoAgentMiddleware requires an authz with .wrap")
156
+ if not isinstance(intent_builders, dict):
157
+ raise AdapterConfigError("AiyoAgentMiddleware requires intent_builders dict")
158
+ self._authz = authz
159
+ self._intent_builders = intent_builders
160
+ self._attach_receipt_key = attach_receipt_key
161
+
162
+ async def before_action(self, context: Any, action: Any) -> None:
163
+ """Middleware hook invoked before each action.
164
+
165
+ `action` is expected to carry a `name` attribute (or key) identifying
166
+ the action, and a `payload` / `arguments` / `kwargs` mapping. The exact
167
+ shape depends on the framework version; the adapter accepts either.
168
+ """
169
+ action_name = self._action_name(action)
170
+ if action_name is None:
171
+ return # Unidentifiable action; let it pass (framework's own middleware chain will handle it)
172
+
173
+ builder = self._intent_builders.get(action_name)
174
+ if builder is None:
175
+ return # Non-AEAP-gated action; explicit opt-in only
176
+
177
+ payload = self._action_payload(action)
178
+ intent = _build_intent(builder, payload, action_name)
179
+ ctx = await _evaluate_rdp(self._authz, action_name, intent)
180
+
181
+ # On ALLOW, attach the receipt to the middleware context for downstream inspection.
182
+ if context is not None and ctx is not None:
183
+ setattr(context, self._attach_receipt_key, getattr(ctx, "receipt", None))
184
+
185
+ def _action_name(self, action: Any) -> Optional[str]:
186
+ for attr in ("name", "action_name", "tool_name"):
187
+ v = getattr(action, attr, None)
188
+ if isinstance(v, str) and v:
189
+ return v
190
+ if isinstance(action, dict):
191
+ for key in ("name", "action_name", "tool_name"):
192
+ v = action.get(key)
193
+ if isinstance(v, str) and v:
194
+ return v
195
+ return None
196
+
197
+ def _action_payload(self, action: Any) -> Dict[str, Any]:
198
+ for attr in ("payload", "arguments", "kwargs", "args"):
199
+ v = getattr(action, attr, None)
200
+ if isinstance(v, dict):
201
+ return v
202
+ if isinstance(action, dict):
203
+ for key in ("payload", "arguments", "kwargs", "args"):
204
+ v = action.get(key)
205
+ if isinstance(v, dict):
206
+ return v
207
+ return {}
208
+
209
+
210
+ def aiyo_middleware(
211
+ *,
212
+ authz: Any,
213
+ intent_builders: Dict[str, IntentBuilder],
214
+ attach_receipt_key: str = "aeap_receipt",
215
+ ) -> AiyoAgentMiddleware:
216
+ """Convenience factory returning a configured :class:`AiyoAgentMiddleware`."""
217
+ return AiyoAgentMiddleware(
218
+ authz=authz,
219
+ intent_builders=intent_builders,
220
+ attach_receipt_key=attach_receipt_key,
221
+ )
222
+
223
+
224
+ def wrap_action(
225
+ fn: ActionCallable,
226
+ *,
227
+ authz: Any,
228
+ tool_name: str,
229
+ intent_builder: IntentBuilder,
230
+ attach_receipt: bool = False,
231
+ ) -> ActionCallable:
232
+ """Function-level wrapper: gate a single callable with the AEAP RDP.
233
+
234
+ Use when the middleware chain integration isn't suitable (e.g. direct
235
+ function invocations outside the agent's middleware pipeline, or workflow
236
+ nodes defined as plain functions).
237
+
238
+ Decorator form is supported:
239
+
240
+ @wrap_action(authz=..., tool_name="deploy", intent_builder=...)
241
+ def deploy(target: str) -> str: ...
242
+ """
243
+ if not callable(intent_builder):
244
+ raise AdapterConfigError("wrap_action requires an intent_builder callable")
245
+ if not isinstance(tool_name, str) or not tool_name:
246
+ raise AdapterConfigError("wrap_action requires a non-empty tool_name")
247
+
248
+ if not callable(fn):
249
+ # Decorator form: return a decorator.
250
+ decorator_target = fn
251
+ raise AdapterConfigError(
252
+ f"wrap_action expected a callable, got {type(decorator_target).__name__}"
253
+ )
254
+
255
+ is_coro = inspect.iscoroutinefunction(fn)
256
+
257
+ if is_coro:
258
+ @functools.wraps(fn)
259
+ async def async_wrapped(**kwargs: Any) -> Any:
260
+ intent = _build_intent(intent_builder, kwargs, tool_name)
261
+ ctx = await _evaluate_rdp(authz, tool_name, intent)
262
+ result = await fn(**kwargs)
263
+ if attach_receipt:
264
+ return {"result": result, "aeap_receipt": getattr(ctx, "receipt", None)}
265
+ return result
266
+ return async_wrapped
267
+
268
+ @functools.wraps(fn)
269
+ def sync_wrapped(**kwargs: Any) -> Any:
270
+ intent = _build_intent(intent_builder, kwargs, tool_name)
271
+ try:
272
+ loop = asyncio.get_event_loop()
273
+ if loop.is_running():
274
+ import nest_asyncio # type: ignore
275
+ nest_asyncio.apply()
276
+ except RuntimeError:
277
+ loop = asyncio.new_event_loop()
278
+ asyncio.set_event_loop(loop)
279
+ ctx = loop.run_until_complete(_evaluate_rdp(authz, tool_name, intent))
280
+ result = fn(**kwargs)
281
+ if attach_receipt:
282
+ return {"result": result, "aeap_receipt": getattr(ctx, "receipt", None)}
283
+ return result
284
+
285
+ return sync_wrapped
@@ -0,0 +1,47 @@
1
+ """Typed errors raised by the AEAP Composition Boundary Adapter for Microsoft Agent Framework."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Any, Dict, Optional
6
+
7
+
8
+ class AiyoMSAgentFrameworkError(Exception):
9
+ """Base class for all adapter-raised errors."""
10
+
11
+
12
+ class AdapterConfigError(AiyoMSAgentFrameworkError):
13
+ """Adapter configuration is invalid. Fail-closed semantics."""
14
+
15
+
16
+ class BlockedByPolicy(AiyoMSAgentFrameworkError):
17
+ """The RDP returned verdict=BLOCK. The action MUST NOT execute."""
18
+
19
+ def __init__(
20
+ self,
21
+ message: str,
22
+ *,
23
+ reason_code: Optional[str] = None,
24
+ intent_id: Optional[str] = None,
25
+ extra: Optional[Dict[str, Any]] = None,
26
+ ) -> None:
27
+ super().__init__(message)
28
+ self.reason_code = reason_code
29
+ self.intent_id = intent_id
30
+ self.extra = extra or {}
31
+
32
+
33
+ class EscalationRequired(AiyoMSAgentFrameworkError):
34
+ """The RDP returned verdict=ESCALATE. The action is held pending resolution."""
35
+
36
+ def __init__(
37
+ self,
38
+ message: str,
39
+ *,
40
+ escalation_id: Optional[str] = None,
41
+ intent_id: Optional[str] = None,
42
+ extra: Optional[Dict[str, Any]] = None,
43
+ ) -> None:
44
+ super().__init__(message)
45
+ self.escalation_id = escalation_id
46
+ self.intent_id = intent_id
47
+ self.extra = extra or {}
File without changes
@@ -0,0 +1,184 @@
1
+ Metadata-Version: 2.4
2
+ Name: aiyoplane-microsoft-agent-framework
3
+ Version: 1.0.0
4
+ Summary: AEAP Composition Boundary Adapter for the Microsoft Agent Framework. Thin wrapper that attaches the Runtime Decision Point to agent middleware and workflow execution.
5
+ Author-email: "Aiyoplane, Inc." <rashon@aiyoplane.com>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://aiyoplane.com
8
+ Project-URL: Documentation, https://github.com/aiyoplane/microsoft-agent-framework-python
9
+ Project-URL: Repository, https://github.com/aiyoplane/microsoft-agent-framework-python
10
+ Project-URL: Issues, https://github.com/aiyoplane/microsoft-agent-framework-python/issues
11
+ Project-URL: Trust Surface, https://aiyoplane.com/trust
12
+ Project-URL: AEAP Specification, https://github.com/aiyoplane/aeap
13
+ Keywords: aiyo,aiyoplane,aeap,microsoft,agent-framework,autogen,semantic-kernel,authorization,runtime-decision-point,rdp,execution-receipt,composition-boundary,middleware,workflow,enterprise-agents
14
+ Classifier: Development Status :: 5 - Production/Stable
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Topic :: Security
24
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
+ Requires-Python: >=3.9
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ License-File: NOTICE
29
+ Requires-Dist: aiyoplane-mcp-authz>=1.0.1
30
+ Requires-Dist: agent-framework>=0.1.0
31
+ Provides-Extra: test
32
+ Requires-Dist: pytest>=7.0; extra == "test"
33
+ Requires-Dist: pytest-asyncio>=0.21; extra == "test"
34
+ Dynamic: license-file
35
+
36
+ # aiyoplane-microsoft-agent-framework
37
+
38
+ **AEAP Composition Boundary Adapter for the Microsoft Agent Framework.**
39
+
40
+ A thin wrapper that attaches the AEAP Runtime Decision Point (RDP) to the Microsoft Agent Framework's middleware chain and workflow nodes. Consequential actions produce independently verifiable Execution Receipts. The adapter composes with the framework's own middleware, telemetry, session, and tool machinery.
41
+
42
+ ```bash
43
+ pip install aiyoplane-microsoft-agent-framework
44
+ ```
45
+
46
+ ## Why Microsoft Agent Framework
47
+
48
+ Microsoft's current Agent Framework — the successor to AutoGen and Semantic Kernel — explicitly includes **middleware for intercepting agent actions** as a first-class architectural primitive. That middleware primitive is architecturally adjacent to the AEAP Composition Boundary, which makes this one of the cleanest adapter integrations in the Wave 1 set. AEAP sits in the middleware chain; the agent gets independently verifiable authorization for every consequential action without application code changes.
49
+
50
+ The framework also positions **workflows** around explicit execution paths — nodes with declared pre- and post-conditions. AEAP's second integration surface in this adapter is the workflow-node wrapper.
51
+
52
+ See the [AEAP specification](https://github.com/aiyoplane/aeap) §9 for the Composition Boundary primitive this adapter realizes.
53
+
54
+ ## Minimal usage — middleware integration
55
+
56
+ ```python
57
+ from agent_framework import Agent
58
+ from aiyoplane_mcp_authz import create_aiyo_mcp_authz, create_local_rdp
59
+ from aiyoplane_microsoft_agent_framework import (
60
+ AiyoAgentMiddleware,
61
+ BlockedByPolicy,
62
+ EscalationRequired,
63
+ )
64
+
65
+ policy = {
66
+ "rules": [
67
+ {"action_type": "payment", "amount_max": 1_000, "effect": "allow"},
68
+ {"action_type": "payment", "amount_max": 10_000, "effect": "escalate"},
69
+ {"action_type": "payment", "effect": "block"},
70
+ ]
71
+ }
72
+
73
+ authz = create_aiyo_mcp_authz(
74
+ rdp=create_local_rdp(policy=policy),
75
+ tool_config={
76
+ "transfer_funds": {"aiyo_gated": True, "action": {"type": "payment"}},
77
+ },
78
+ )
79
+
80
+ aiyo_mw = AiyoAgentMiddleware(
81
+ authz=authz,
82
+ intent_builders={
83
+ "transfer_funds": lambda payload: {
84
+ "type": "payment",
85
+ "amount": payload["amount"],
86
+ "target": payload["to_account"],
87
+ },
88
+ },
89
+ )
90
+
91
+ agent = Agent(
92
+ name="banker",
93
+ instructions="Help the user manage their accounts.",
94
+ middleware=[aiyo_mw, ...],
95
+ )
96
+ ```
97
+
98
+ The middleware pattern: AEAP runs before every action matching an entry in `intent_builders`. Non-registered actions pass through unchanged (explicit opt-in).
99
+
100
+ ## Minimal usage — workflow node wrapping
101
+
102
+ For workflow nodes defined as plain callables, use `wrap_action`:
103
+
104
+ ```python
105
+ from aiyoplane_microsoft_agent_framework import wrap_action
106
+
107
+ async def deploy(target: str, artifact_hash: str) -> str:
108
+ return actually_deploy(target, artifact_hash)
109
+
110
+ guarded_deploy = wrap_action(
111
+ deploy,
112
+ authz=authz,
113
+ tool_name="deploy",
114
+ intent_builder=lambda kwargs: {
115
+ "type": "deploy",
116
+ "target": kwargs["target"],
117
+ "artifact": kwargs["artifact_hash"],
118
+ },
119
+ )
120
+
121
+ # Register with your workflow the usual way.
122
+ ```
123
+
124
+ ## Composition Boundary — what the adapter actually does
125
+
126
+ For each gated action:
127
+
128
+ 1. **Intent construction.** `intent_builder(action_payload)` produces an AEAP Intent payload.
129
+ 2. **RDP evaluation.** Via `aiyoplane-mcp-authz`'s AiyoAuthz middleware.
130
+ 3. **Verdict composition.**
131
+ - **ALLOW** → action proceeds to the next middleware / inner function; receipt attached to context.
132
+ - **ESCALATE** → `EscalationRequired` is raised.
133
+ - **BLOCK** → `BlockedByPolicy` is raised; the action never executes.
134
+ 4. **Fail-closed default** on every ambiguous condition.
135
+
136
+ ## Local vs. hosted RDP
137
+
138
+ ```python
139
+ from aiyoplane_mcp_authz import create_local_rdp, create_hosted_rdp
140
+
141
+ # Development:
142
+ authz = create_aiyo_mcp_authz(rdp=create_local_rdp(policy=policy), tool_config={...})
143
+
144
+ # Production:
145
+ authz = create_aiyo_mcp_authz(
146
+ rdp=create_hosted_rdp(api_key="aiyo_live_..."),
147
+ tool_config={...},
148
+ )
149
+ ```
150
+
151
+ ## API reference
152
+
153
+ ### `AiyoAgentMiddleware(*, authz, intent_builders, attach_receipt_key="aeap_receipt")`
154
+
155
+ Middleware class. Register in the agent's middleware chain. Hook: `before_action(context, action)`.
156
+
157
+ ### `aiyo_middleware(*, authz, intent_builders, attach_receipt_key="aeap_receipt")`
158
+
159
+ Convenience factory for `AiyoAgentMiddleware`.
160
+
161
+ ### `wrap_action(fn, *, authz, tool_name, intent_builder, attach_receipt=False)`
162
+
163
+ Function-level wrapper for workflow nodes or direct function invocations outside the middleware chain.
164
+
165
+ ### Exceptions
166
+
167
+ - `AiyoMSAgentFrameworkError` — base class
168
+ - `AdapterConfigError`, `BlockedByPolicy`, `EscalationRequired`
169
+
170
+ ## License
171
+
172
+ Apache License 2.0.
173
+
174
+ ## Links
175
+
176
+ - **AEAP specification:** https://github.com/aiyoplane/aeap
177
+ - **Underlying implementation:** [`aiyoplane-mcp-authz`](https://pypi.org/project/aiyoplane-mcp-authz/)
178
+ - **Node sibling:** `@aiyoplane/microsoft-agent-framework` on npm
179
+ - **Trust surface:** https://aiyoplane.com/trust
180
+ - **Issues:** https://github.com/aiyoplane/microsoft-agent-framework-python/issues
181
+
182
+ Microsoft, Microsoft Agent Framework, AutoGen, and Semantic Kernel are trademarks of Microsoft Corporation. This package is an independent AEAP Composition Boundary Adapter and is not affiliated with or endorsed by Microsoft Corporation.
183
+
184
+ **Verify First. Execute Second.**
@@ -0,0 +1,10 @@
1
+ aiyoplane_microsoft_agent_framework/__init__.py,sha256=zfScRg1-LU8Vd8Ne4atqIZVzV9BsA2kvKw3zteK2U6w,1098
2
+ aiyoplane_microsoft_agent_framework/adapter.py,sha256=ekOk-WuTgiTPNsKQxTZnUbHBSto_xjIbYRk4DaudPUM,10522
3
+ aiyoplane_microsoft_agent_framework/errors.py,sha256=qJihLor-01C5kGtXZfQlZxHdSbA45hIyihiTkKI1Q0k,1370
4
+ aiyoplane_microsoft_agent_framework/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ aiyoplane_microsoft_agent_framework-1.0.0.dist-info/licenses/LICENSE,sha256=-OdJqG9mDZ4kXHYNCZxUWnQoYicjQclQmcfiobi-M48,10728
6
+ aiyoplane_microsoft_agent_framework-1.0.0.dist-info/licenses/NOTICE,sha256=ACqhkC-TPTraL8wHnvGquqCMPgb7Pz9emOkqgVoe1ss,806
7
+ aiyoplane_microsoft_agent_framework-1.0.0.dist-info/METADATA,sha256=kPSXxbFVXT_psHDreGeUeajWKuhKkFPi41pfraSs2wc,7293
8
+ aiyoplane_microsoft_agent_framework-1.0.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
9
+ aiyoplane_microsoft_agent_framework-1.0.0.dist-info/top_level.txt,sha256=c_alEYG7I2r67PadCgDUYsVNBy_HU5SiCOaTK6ckqQE,36
10
+ aiyoplane_microsoft_agent_framework-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for describing the origin of the Work and
141
+ reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 Aiyoplane, Inc.
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,20 @@
1
+ aiyoplane-microsoft-agent-framework
2
+ Copyright 2026 Aiyoplane, Inc.
3
+
4
+ This product includes software developed by Aiyoplane, Inc.
5
+ (https://aiyoplane.com).
6
+
7
+ Licensed under the Apache License, Version 2.0.
8
+
9
+ ----------------------------------------------------------------------
10
+
11
+ This package is an AEAP Composition Boundary Adapter — a thin wrapper
12
+ that attaches the AEAP Runtime Decision Point (via aiyoplane-mcp-authz)
13
+ to the Microsoft Agent Framework middleware and workflow execution surface.
14
+
15
+ Specification: https://github.com/aiyoplane/aeap
16
+ Trust surface: https://aiyoplane.com/trust
17
+
18
+ Microsoft, Microsoft Agent Framework, AutoGen, and Semantic Kernel are
19
+ trademarks of Microsoft Corporation. This package is an independent AEAP
20
+ adapter and is not affiliated with or endorsed by Microsoft Corporation.
@@ -0,0 +1 @@
1
+ aiyoplane_microsoft_agent_framework