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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ory_adk-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4819170eb5005cb0663ddbfff40adbc760babbdfd13a7537f09b10e7a5b63be1
MD5 d57e7e2b4b83db47147670241b43a233
BLAKE2b-256 cf150a8d969835abd0b5ee1399f037a679f04139c2cf499178b8fa904bc227eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ory_adk-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 30fac6b28b5bc143166876819a20aa07f88d70925052537cbb2e01a174bcb895
MD5 32ee8b5b1d7a7ff34c5426c0c2b9b0fd
BLAKE2b-256 80b42edda642024c6199f81b842f8a7901a1c1667cfb03dd3de1f46f8a0bc319

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

This release

1.0.1 This release

2 files

1.0.0

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