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.1
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.1.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ory_openai_agents-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / ory_openai_agents-1.2.1.tar.gz
| Download URL | ory_openai_agents-1.2.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e44a8187147ff86e7345c1a8fc38cc35864f6619627759605c2d09ec1f53160c
|
|
BLAKE2b-256 checksum How to use checksums |
ad65ba5e832ceb5f39a4b11c250ed1178a5f0910ab8a94d3975795ab32ac5541
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.1-py3-none-any.whl
| Download URL | ory_openai_agents-1.2.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a22b67ad3d76988511ea9e39cdd6686b36c1e508fe71e8f572b550462a42647
|
|
BLAKE2b-256 checksum How to use checksums |
8b057ac0a9582418b2d3ee5f794e914b855f6cde5331e7ee5d217e4fbccece7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|