Skip to main content

ory-pydantic-ai

Ory Agent Security for Pydantic AI.

Wraps any toolset in an Ory-gating WrapperToolset so every tool call is authorized against Ory Permissions, audited, and tied to the user → agent identity — built on ory-argus.

pip install ory-pydantic-ai
from pydantic_ai import Agent
from ory_pydantic_ai import wrap_toolset

agent = Agent(model, toolsets=[wrap_toolset(my_toolset)])

In enforce mode a denied tool raises ModelRetry with the denial, so the model is told the call was refused and the tool never runs. In observe mode (default) the tool runs and a permission.observe_deny activity event is recorded.

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

Download files

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

Source Distribution

ory_pydantic_ai-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

ory_pydantic_ai-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file ory_pydantic_ai-1.0.0.tar.gz.

File metadata

  • Download URL: ory_pydantic_ai-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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}

File hashes

Hashes for ory_pydantic_ai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9b6218e5a8f6ab025b59fb979f6749b3b78390ce0779625ef41bc96e5e94a083
MD5 4e5d62edd334a2998daa7bf1c8b0fe03
BLAKE2b-256 d239b18f47e76ace2f2f712eea84e5fa44b9c49a85c6f7f7a374e8c5f51dec8b

See more details on using hashes here.

File details

Details for the file ory_pydantic_ai-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ory_pydantic_ai-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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}

File hashes

Hashes for ory_pydantic_ai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 396e4acdddd2b6fef89d21f9d6f677b198eed00c1505b6cade2db076b20b6914
MD5 9d472a188d3a2d8e57da03945cd060a4
BLAKE2b-256 64ac9d757ce0a1ffeafb633dd449642e2eaf56a1eb40978ff1b7dafd3e6aeed9

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

1.0.1

2 files

This release

1.0.0 This release

2 files

0.14.0

2 files

0.13.9

2 files

0.12.1

2 files

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