Skip to main content

Sigil Python Framework Module: LlamaIndex

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

Installation

pip install sigil-sdk sigil-sdk-llamaindex
pip install llama-index

Quickstart

from sigil_sdk import Client
from sigil_sdk_llamaindex import with_sigil_llamaindex_callbacks

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

Native callback manager wiring

from sigil_sdk import Client
from sigil_sdk_llamaindex import with_sigil_llamaindex_callbacks

client = Client()
config = with_sigil_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 sigil:framework:llamaindex:<run_id>

Metadata and lineage

  • Required: sigil.framework.run_type
  • Optional lineage: sigil.framework.run_id, sigil.framework.thread_id, sigil.framework.parent_run_id, sigil.framework.component_name, sigil.framework.retry_attempt, sigil.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.

Download files

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

Source Distribution

sigil_sdk_llamaindex-0.9.3.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sigil_sdk_llamaindex-0.9.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file sigil_sdk_llamaindex-0.9.3.tar.gz.

File metadata

  • Download URL: sigil_sdk_llamaindex-0.9.3.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for sigil_sdk_llamaindex-0.9.3.tar.gz
Algorithm Hash digest
SHA256 aaa585a28dabba314ffbbbc9d4a38d8f94705aad2aee3f89d159919fa1c4b17b
MD5 63f17e050f8e144f0b0d4c56f7dad8a4
BLAKE2b-256 4eb4c991d76210e940281de521a5be5b8f6a63811ad2be700e5dfc5c67006d6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigil_sdk_llamaindex-0.9.3.tar.gz:

Publisher: python-sdks-publish.yml on grafana/sigil-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sigil_sdk_llamaindex-0.9.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sigil_sdk_llamaindex-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a8300a20c75f3faece8a13c4d39619602295c78aad0dc123738ff6b31d348153
MD5 467fa60476042954d858a38edbc57dc1
BLAKE2b-256 707fd3b2f02ae46e377012edfe344e11e58d0d679b07549fc2e5c2373efab29a

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigil_sdk_llamaindex-0.9.3-py3-none-any.whl:

Publisher: python-sdks-publish.yml on grafana/sigil-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.9.3 This release

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page