Skip to main content

Agent Observability Python Framework Module: LlamaIndex

agento11y-llamaindex provides callback handlers that map LlamaIndex workflow/agent events into agento11y generation recorder lifecycles.

Installation

pip install agento11y agento11y-llamaindex
pip install llama-index

Quickstart

from agento11y import Client
from agento11y_llamaindex import with_agento11y_llamaindex_callbacks

client = Client()
config = with_agento11y_llamaindex_callbacks(None, client=client, provider_resolver="auto")
# query_engine = index.as_query_engine(callback_manager=config["callback_manager"])

Native callback manager wiring

from agento11y import Client
from agento11y_llamaindex import with_agento11y_llamaindex_callbacks

client = Client()
config = with_agento11y_llamaindex_callbacks(None, client=client, provider_resolver="auto")
# query_engine = index.as_query_engine(callback_manager=config["callback_manager"])

Conversation mapping

Conversation ID precedence:

  1. conversation_id / session_id / group_id
  2. thread_id
  3. fallback agento11y:framework:llamaindex:<run_id>

Metadata and lineage

  • Required: agento11y.framework.run_type
  • Optional lineage: agento11y.framework.run_id, agento11y.framework.thread_id, agento11y.framework.parent_run_id, agento11y.framework.component_name, agento11y.framework.retry_attempt, agento11y.framework.event_id

Provider resolver

Model prefix inference:

  • gpt-/o1/o3/o4 -> openai
  • claude- -> anthropic
  • gemini- -> gemini
  • fallback custom

Troubleshooting

  • Reuse stable workflow/session IDs to keep conversation grouping stable.
  • Keep capture_inputs/capture_outputs enabled while validating mappings.
  • Call client.flush() at checkpoints and client.shutdown() on exit.

Metadata

Release files for agento11y-llamaindex 0.18.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agento11y-llamaindex 0.18.0
File Size Uploaded
agento11y_llamaindex-0.18.0.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agento11y-llamaindex 0.18.0
File Interpreter ABI Platform
agento11y_llamaindex-0.18.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / agento11y_llamaindex-0.18.0.tar.gz

Download URL agento11y_llamaindex-0.18.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
913360f87853b7299776a0d782b6ac721f1d2d357b5ee8e537633eeab3558cbb
BLAKE2b-256 checksum
How to use checksums
6b8c7dd2e2b801b74513cf36ada23a8a07e7c408d4767c754303a1be0da329a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / agento11y_llamaindex-0.18.0-py3-none-any.whl

Download URL agento11y_llamaindex-0.18.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc28fb698719c9f872ace1515e2a5488224042bca304a42463ede45f7e3f0e84
BLAKE2b-256 checksum
How to use checksums
3045408cf2a69d9096a143b1e92d9ae99246cb6261ce7b5af0db733af30693cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.18.0 This release

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.12.0

2 release files

0.10.0

2 release files

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