Skip to main content

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ory-agent-framework 1.5.1
File Size Uploaded Provenance Actions
ory_agent_framework-1.5.1.tar.gz 5.1 kB Without provenance Details for ory_agent_framework-1.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ory-agent-framework 1.5.1
File Interpreter ABI Platform Actions
ory_agent_framework-1.5.1-py3-none-any.whl Python 3 none any Details for ory_agent_framework-1.5.1-py3-none-any.whl

Total release size: 8.7 kB

Release files / ory_agent_framework-1.5.1.tar.gz

Download URL ory_agent_framework-1.5.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c235fb5e11b117febc15d4b732e7a731764c345a7aa9260826806eeb5ee1d15e
BLAKE2b-256 checksum
How to use checksums
ab2a7dc250c9fa1394eab4c6650a98b49c994014cffa52b4940af79a613188fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","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.1-py3-none-any.whl

Download URL ory_agent_framework-1.5.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6461905b854562221e640d922880a3f93f687eb9518176f91c86eaf9e04de5b
BLAKE2b-256 checksum
How to use checksums
dc80349c62c8f7df77e46d6968c1d48611e08a8c69c1851e985457f12e874a45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","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.1

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.

Release history Release notifications | RSS feed

This release

1.5.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page