Skip to main content

ory-llamaindex

Ory Agent Security for LlamaIndex.

Wraps your LlamaIndex tools so every call is authorized against Ory Permissions, audited, 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 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 activity event is recorded.

For activity 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-1.0.1.tar.gz (5.8 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-1.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ory_llamaindex-1.0.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6c67e0ab07b31db39933d341b67d5b0b5324481b30efee10414e617e94117064
MD5 dd871486071fd57a891bcdeb22363e97
BLAKE2b-256 262adc382510de58e926e8cc781b3ba3d66414138acc44e760f4a43337810167

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ory_llamaindex-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9ecb4ebdd453f7f3f24d5b0039cf02848907965e708640d0ed1bd844d9f844c
MD5 ec93270b2652cf1a7c89a8c3c37b858e
BLAKE2b-256 b5d8b10ecf7647c18b686bfc2d6d24619ab0fa1062135d0805345941a6a29541

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

This release

1.0.1 This release

2 files

1.0.0

2 files

0.14.0

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