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