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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ory_llamaindex-0.13.9.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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.13.9.tar.gz
Algorithm Hash digest
SHA256 786597eba61ecdf88564dbd45c04df448f6e3f7555228277b84dca591a4ff707
MD5 e9e25193c585a10966c842d10da41b74
BLAKE2b-256 40c01c5ea704e73f496b6fc3e6a9a5a68baa5b7d53fd0ad63d6cf4a7d956fde8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ory_llamaindex-0.13.9-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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.13.9-py3-none-any.whl
Algorithm Hash digest
SHA256 cc3a9dccc276e7e956a77886255c90b6ee3e0d20096f13159ea74e169bd919c9
MD5 d464e61934d776531d1446083b8aff4f
BLAKE2b-256 0c81cefc37642ee2f247ee8f43d8ff16dc5568d088784ae1bc36f990f0900743

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

0.14.0

2 files

This release

0.13.9 This release

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