ory-agent-framework
Ory Agent Security for the Microsoft Agent Framework (the successor to AutoGen + Semantic Kernel).
Gates every function/tool call through Ory Permissions via function middleware, records
invocations, and propagates the user → agent identity — built on
ory-argus.
pip install ory-agent-framework
This release supports the stable Microsoft Agent Framework 1.x middleware API and is tested
against 1.20 (agent-framework>=1.20,<2).
from ory_agent_framework import ory_function_middleware
agent = chat_client.create_agent(
instructions="…",
tools=[search, send_email],
# Register Ory explicitly as function middleware.
middleware=[ory_function_middleware()],
)
ory_function_middleware() returns SDK-native function middleware. It uses the stable
zero-argument continuation and reads successful output from context.result. In enforce mode
a denied call raises MiddlewareTermination with the denial result and never invokes the
function. In observe mode (default) the function runs and a permission.observe_deny
activity event is recorded. Successful calls record tool.complete; exceptions record
tool.fail before being re-raised.
Credentials come from the shared ~/.config/ory-agent-plugins/config.json.
Metadata
Release files for ory-agent-framework 1.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ory_agent_framework-1.5.3.tar.gz | 5.1 kB | Without provenance | Details for ory_agent_framework-1.5.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ory_agent_framework-1.5.3-py3-none-any.whl | Python 3 | none | any | Details for ory_agent_framework-1.5.3-py3-none-any.whl |
Total release size: 8.7 kB
Release files / ory_agent_framework-1.5.3.tar.gz
| Download URL | ory_agent_framework-1.5.3.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2be9b08d5369e63e275f9f379fbb45b627a042c7d0636212583eb099f9dff6c9
|
|
BLAKE2b-256 checksum How to use checksums |
8c99fa7b746a879ddd39a74e75bac7b069788de72be298c076b2e6b1d9b474a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ory_agent_framework-1.5.3-py3-none-any.whl
| Download URL | ory_agent_framework-1.5.3-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b301bb51cdc26bec5c93b86fb172dfd988f4b259faee5860c591d0ace04c34f1
|
|
BLAKE2b-256 checksum How to use checksums |
1376d16d7feeae4b6ecb371856cda231fae43d2781c56f741aaf137ad0952104
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for ory-agent-framework 1.5.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.