Skip to main content

Ory Agent Security for the Microsoft Agent Framework — per-tool authorization, tracing, and identity propagation via function middleware. Built on ory-argus.

Project description

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, traces invocations, and propagates the user → agent identity — built on ory-argus.

pip install ory-agent-framework
from ory_agent_framework import ory_function_middleware

agent = chat_client.create_agent(
    instructions="…",
    tools=[search, send_email],
    middleware=[ory_function_middleware()],
)

In enforce mode (ORY_PERMISSION_MODE=enforce) a denied call sets the result to the denial and terminates without invoking the function. In observe mode (default) the function runs and a permission.observe_deny span is recorded.

Credentials come from the shared ~/.config/ory-agent-plugins/config.json.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ory_agent_framework-0.11.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file ory_agent_framework-0.11.1-py3-none-any.whl.

File metadata

  • Download URL: ory_agent_framework-0.11.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ory_agent_framework-0.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06920991477d8f2275fe75039e4ff32f059f1f47f6b4ddd5d5629d73b51f3946
MD5 b8f957ee5507d84f7efc35691899b9d1
BLAKE2b-256 2f61b2e272384a86f40dc5bf5d77c5e6da5a2dbb3c0a3fc1d53c803d09b53ba9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page