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, traces invocations, 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(),     # trace completions
)

In enforce mode (ORY_PERMISSION_MODE=enforce) 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 span 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-0.13.9.tar.gz (4.6 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-0.13.9-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ory_adk-0.13.9.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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-0.13.9.tar.gz
Algorithm Hash digest
SHA256 a0b78421c0c1daeb90a01762189d1e6ab5943a654388148dbc55f114fc7446b8
MD5 1459eadbe022bc3f5831ea36881bb762
BLAKE2b-256 637ece2f24ffa97a726cf78f34ab299abe4ae66d8a7cf55f3c4c7956f814b0c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ory_adk-0.13.9-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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-0.13.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6b0bb49620db2d7fea64f7450ba5d3194ee66598e6de8931a6480b2fe5284a03
MD5 93260bcd7d7577ebe364dd906fd26513
BLAKE2b-256 8651dd6ae759fe44129d939d8d6fdaba058179d2ca03c823470ad005566f3b00

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

0.14.0

2 files

This release

0.13.9 This release

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