aiyoplane-microsoft-agent-framework 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.
@@ -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,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,149 @@
1
+ # aiyoplane-microsoft-agent-framework
2
+
3
+ **AEAP Composition Boundary Adapter for the Microsoft Agent Framework.**
4
+
5
+ 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.
6
+
7
+ ```bash
8
+ pip install aiyoplane-microsoft-agent-framework
9
+ ```
10
+
11
+ ## Why Microsoft Agent Framework
12
+
13
+ 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.
14
+
15
+ 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.
16
+
17
+ See the [AEAP specification](https://github.com/aiyoplane/aeap) §9 for the Composition Boundary primitive this adapter realizes.
18
+
19
+ ## Minimal usage — middleware integration
20
+
21
+ ```python
22
+ from agent_framework import Agent
23
+ from aiyoplane_mcp_authz import create_aiyo_mcp_authz, create_local_rdp
24
+ from aiyoplane_microsoft_agent_framework import (
25
+ AiyoAgentMiddleware,
26
+ BlockedByPolicy,
27
+ EscalationRequired,
28
+ )
29
+
30
+ policy = {
31
+ "rules": [
32
+ {"action_type": "payment", "amount_max": 1_000, "effect": "allow"},
33
+ {"action_type": "payment", "amount_max": 10_000, "effect": "escalate"},
34
+ {"action_type": "payment", "effect": "block"},
35
+ ]
36
+ }
37
+
38
+ authz = create_aiyo_mcp_authz(
39
+ rdp=create_local_rdp(policy=policy),
40
+ tool_config={
41
+ "transfer_funds": {"aiyo_gated": True, "action": {"type": "payment"}},
42
+ },
43
+ )
44
+
45
+ aiyo_mw = AiyoAgentMiddleware(
46
+ authz=authz,
47
+ intent_builders={
48
+ "transfer_funds": lambda payload: {
49
+ "type": "payment",
50
+ "amount": payload["amount"],
51
+ "target": payload["to_account"],
52
+ },
53
+ },
54
+ )
55
+
56
+ agent = Agent(
57
+ name="banker",
58
+ instructions="Help the user manage their accounts.",
59
+ middleware=[aiyo_mw, ...],
60
+ )
61
+ ```
62
+
63
+ The middleware pattern: AEAP runs before every action matching an entry in `intent_builders`. Non-registered actions pass through unchanged (explicit opt-in).
64
+
65
+ ## Minimal usage — workflow node wrapping
66
+
67
+ For workflow nodes defined as plain callables, use `wrap_action`:
68
+
69
+ ```python
70
+ from aiyoplane_microsoft_agent_framework import wrap_action
71
+
72
+ async def deploy(target: str, artifact_hash: str) -> str:
73
+ return actually_deploy(target, artifact_hash)
74
+
75
+ guarded_deploy = wrap_action(
76
+ deploy,
77
+ authz=authz,
78
+ tool_name="deploy",
79
+ intent_builder=lambda kwargs: {
80
+ "type": "deploy",
81
+ "target": kwargs["target"],
82
+ "artifact": kwargs["artifact_hash"],
83
+ },
84
+ )
85
+
86
+ # Register with your workflow the usual way.
87
+ ```
88
+
89
+ ## Composition Boundary — what the adapter actually does
90
+
91
+ For each gated action:
92
+
93
+ 1. **Intent construction.** `intent_builder(action_payload)` produces an AEAP Intent payload.
94
+ 2. **RDP evaluation.** Via `aiyoplane-mcp-authz`'s AiyoAuthz middleware.
95
+ 3. **Verdict composition.**
96
+ - **ALLOW** → action proceeds to the next middleware / inner function; receipt attached to context.
97
+ - **ESCALATE** → `EscalationRequired` is raised.
98
+ - **BLOCK** → `BlockedByPolicy` is raised; the action never executes.
99
+ 4. **Fail-closed default** on every ambiguous condition.
100
+
101
+ ## Local vs. hosted RDP
102
+
103
+ ```python
104
+ from aiyoplane_mcp_authz import create_local_rdp, create_hosted_rdp
105
+
106
+ # Development:
107
+ authz = create_aiyo_mcp_authz(rdp=create_local_rdp(policy=policy), tool_config={...})
108
+
109
+ # Production:
110
+ authz = create_aiyo_mcp_authz(
111
+ rdp=create_hosted_rdp(api_key="aiyo_live_..."),
112
+ tool_config={...},
113
+ )
114
+ ```
115
+
116
+ ## API reference
117
+
118
+ ### `AiyoAgentMiddleware(*, authz, intent_builders, attach_receipt_key="aeap_receipt")`
119
+
120
+ Middleware class. Register in the agent's middleware chain. Hook: `before_action(context, action)`.
121
+
122
+ ### `aiyo_middleware(*, authz, intent_builders, attach_receipt_key="aeap_receipt")`
123
+
124
+ Convenience factory for `AiyoAgentMiddleware`.
125
+
126
+ ### `wrap_action(fn, *, authz, tool_name, intent_builder, attach_receipt=False)`
127
+
128
+ Function-level wrapper for workflow nodes or direct function invocations outside the middleware chain.
129
+
130
+ ### Exceptions
131
+
132
+ - `AiyoMSAgentFrameworkError` — base class
133
+ - `AdapterConfigError`, `BlockedByPolicy`, `EscalationRequired`
134
+
135
+ ## License
136
+
137
+ Apache License 2.0.
138
+
139
+ ## Links
140
+
141
+ - **AEAP specification:** https://github.com/aiyoplane/aeap
142
+ - **Underlying implementation:** [`aiyoplane-mcp-authz`](https://pypi.org/project/aiyoplane-mcp-authz/)
143
+ - **Node sibling:** `@aiyoplane/microsoft-agent-framework` on npm
144
+ - **Trust surface:** https://aiyoplane.com/trust
145
+ - **Issues:** https://github.com/aiyoplane/microsoft-agent-framework-python/issues
146
+
147
+ 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.
148
+
149
+ **Verify First. Execute Second.**
@@ -0,0 +1,63 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "aiyoplane-microsoft-agent-framework"
7
+ version = "1.0.0"
8
+ description = "AEAP Composition Boundary Adapter for the Microsoft Agent Framework. Thin wrapper that attaches the Runtime Decision Point to agent middleware and workflow execution."
9
+ readme = "README.md"
10
+ license = {text = "Apache-2.0"}
11
+ authors = [{name = "Aiyoplane, Inc.", email = "rashon@aiyoplane.com"}]
12
+ requires-python = ">=3.9"
13
+ keywords = [
14
+ "aiyo",
15
+ "aiyoplane",
16
+ "aeap",
17
+ "microsoft",
18
+ "agent-framework",
19
+ "autogen",
20
+ "semantic-kernel",
21
+ "authorization",
22
+ "runtime-decision-point",
23
+ "rdp",
24
+ "execution-receipt",
25
+ "composition-boundary",
26
+ "middleware",
27
+ "workflow",
28
+ "enterprise-agents",
29
+ ]
30
+ classifiers = [
31
+ "Development Status :: 5 - Production/Stable",
32
+ "Intended Audience :: Developers",
33
+ "License :: OSI Approved :: Apache Software License",
34
+ "Operating System :: OS Independent",
35
+ "Programming Language :: Python :: 3",
36
+ "Programming Language :: Python :: 3.9",
37
+ "Programming Language :: Python :: 3.10",
38
+ "Programming Language :: Python :: 3.11",
39
+ "Programming Language :: Python :: 3.12",
40
+ "Topic :: Security",
41
+ "Topic :: Software Development :: Libraries :: Python Modules",
42
+ ]
43
+ dependencies = [
44
+ "aiyoplane-mcp-authz>=1.0.1",
45
+ "agent-framework>=0.1.0",
46
+ ]
47
+
48
+ [project.optional-dependencies]
49
+ test = ["pytest>=7.0", "pytest-asyncio>=0.21"]
50
+
51
+ [project.urls]
52
+ Homepage = "https://aiyoplane.com"
53
+ Documentation = "https://github.com/aiyoplane/microsoft-agent-framework-python"
54
+ Repository = "https://github.com/aiyoplane/microsoft-agent-framework-python"
55
+ Issues = "https://github.com/aiyoplane/microsoft-agent-framework-python/issues"
56
+ "Trust Surface" = "https://aiyoplane.com/trust"
57
+ "AEAP Specification" = "https://github.com/aiyoplane/aeap"
58
+
59
+ [tool.setuptools.packages.find]
60
+ where = ["src"]
61
+
62
+ [tool.setuptools.package-data]
63
+ aiyoplane_microsoft_agent_framework = ["py.typed"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -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
+ ]