Skip to main content

ory-llamaindex

Ory Agent Security for LlamaIndex.

Wraps your LlamaIndex tools so every call is authorized against Ory Permissions, traced, and tied to the user → agent identity — built on ory-argus.

pip install ory-llamaindex
from llama_index.core.agent.workflow import FunctionAgent
from ory_llamaindex import guard_tools

agent = FunctionAgent(tools=guard_tools([search_tool, email_tool]), llm=llm)

In enforce mode (ORY_PERMISSION_MODE=enforce) a denied tool raises an error surfaced to the agent; the tool never runs. In observe mode (default) it runs and a permission.observe_deny span is recorded.

For tracing across paths that bypass the wrapped tools, register the instrumentation handler:

from llama_index.core.instrumentation import get_dispatcher
from ory_llamaindex import ory_event_handler
get_dispatcher().add_event_handler(ory_event_handler())

Credentials come from the shared ~/.config/ory-agent-plugins/config.json.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ory_llamaindex-0.14.0.tar.gz (5.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_llamaindex-0.14.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file ory_llamaindex-0.14.0.tar.gz.

File metadata

  • Download URL: ory_llamaindex-0.14.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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_llamaindex-0.14.0.tar.gz
Algorithm Hash digest
SHA256 6cee753a0534620c57b940079abdc078a0d50ae6a92162da038988e5d1313d50
MD5 1d93d92142573e21f95986d3599272b5
BLAKE2b-256 8526c5ba0768e646721efdb9e5d0f1768d01a1101c0d639a50c553b58d371246

See more details on using hashes here.

File details

Details for the file ory_llamaindex-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: ory_llamaindex-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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_llamaindex-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da6057366427051ec4ac97efe05f6a14172f86e3597a1f1f5099f1b5f61801e0
MD5 4f91651df909489bc59f7668c137d6ea
BLAKE2b-256 d7ca9808a592be083f1cbc88d0380f9246a568e45a9c7cba31dfe6346c06d976

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

This release

0.14.0 This release

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