ory-openai-agents
Ory Agent Security for the OpenAI Agents SDK.
Authorizes every tool call against Ory Permissions via a tool-input guardrail, records
invocations, and propagates user → agent identity — built on
ory-argus.
pip install ory-openai-agents
from agents import Agent, Runner
from ory_openai_agents import ory_tool_input_guardrail, ory_run_hooks
agent = Agent(
name="assistant",
tools=[search, send_email],
tool_input_guardrails=[ory_tool_input_guardrail()], # gate every tool call
)
Runner.run(agent, "…", hooks=ory_run_hooks()) # record completed calls
- observe (default): denied tools still run; a
permission.observe_denyactivity event is recorded. - enforce: denied tools are rejected — the model receives the denial and the tool never executes.
Credentials are read from the shared ~/.config/ory-agent-plugins/config.json, so a login
from any Ory harness or ory-argus login is reused automatically.
Metadata
Release files for ory-openai-agents 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ory_openai_agents-1.2.3.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ory_openai_agents-1.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / ory_openai_agents-1.2.3.tar.gz
| Download URL | ory_openai_agents-1.2.3.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad7f538d8df12ad48b7ba96a8be34a33eafb7717f563a613e1c0c25f5c48cb63
|
|
BLAKE2b-256 checksum How to use checksums |
733ba5b9390c9dacbcfd86ff8fb5ade8c2c5532e643b0089de302ab7bea219b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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}
|
Release files / ory_openai_agents-1.2.3-py3-none-any.whl
| Download URL | ory_openai_agents-1.2.3-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e1a5b18a8b49ff86e4adb94973d27ca3a33d7d80c0186b95d8492c7e130f4d2
|
|
BLAKE2b-256 checksum How to use checksums |
9344598350a1e9d50558ff6e8ad8310603239e529cf8c41fb9e1693a5bf4c13f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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}
|