Skip to main content

ory-adk

Ory Agent Security for the Google Agent Development Kit (ADK).

Authorizes every tool call against Ory Permissions via ADK's before/after tool callbacks, records invocation activity, and propagates user → agent → sub-agent identity — built on ory-argus.

pip install ory-adk
from google.adk.agents import Agent
from ory_adk import ory_before_tool_callback, ory_after_tool_callback

agent = Agent(
    name="assistant",
    model="gemini-2.5-flash",
    tools=[search, send_email],
    before_tool_callback=ory_before_tool_callback(),   # gate every tool call
    after_tool_callback=ory_after_tool_callback(),     # record completions
)

In enforce mode a denied tool is skipped — ADK returns the denial to the model and the tool never runs. In observe mode (default) the tool runs and a permission.observe_deny activity event is recorded. When the model delegates to a sub-agent (transfer_to_agent), a sub-agent identity + agent→subagent delegation are recorded.

Credentials come from the shared ~/.config/ory-agent-plugins/config.json, so a login from any Ory harness or ory-argus login is reused automatically. See docs/sdk-integrations.md.

Download files

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

Source Distribution

ory_adk-1.0.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

ory_adk-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ory_adk-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 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_adk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1aef2411c1e4a604656837d305a3352fda37fdc472bbcd02ddf6779c93b4598e
MD5 e9d35d8e0e679c01fc8c24cb7d2b9992
BLAKE2b-256 43c9c0eee0b3c3e6623442c96d31bd28b0c68276c82c6bd1a72bd62fb2d2a335

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ory_adk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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_adk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 981a3b2d13afe955d36a89965c11c87dbb5b90263f2809d413dd501b30164fad
MD5 8540565960927b47acb53a72d30b8509
BLAKE2b-256 7e9e49c8675c07cc96872952cc784237bfdd84b220ce429a30becbe07201f8d5

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

1 file

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