LlamaIndex callback handlers for Sigil Python SDK
Project description
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:
conversation_id/session_id/group_idthread_id- 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->openaiclaude-->anthropicgemini-->gemini- fallback
custom
Troubleshooting
- Reuse stable workflow/session IDs to keep conversation grouping stable.
- Keep
capture_inputs/capture_outputsenabled while validating mappings. - Call
client.flush()at checkpoints andclient.shutdown()on exit.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sigil_sdk_llamaindex-0.2.0.tar.gz.
File metadata
- Download URL: sigil_sdk_llamaindex-0.2.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43548c50abda1854e642dc19a6a4340bc2511bba8e2303ba4970fc709b700f39
|
|
| MD5 |
f594f5855d8a153c229fa86debe4289c
|
|
| BLAKE2b-256 |
fb2edbacf14b0415d551c7c3d01e2586cf13c2cb461c64842a0edad67e240836
|
Provenance
The following attestation bundles were made for sigil_sdk_llamaindex-0.2.0.tar.gz:
Publisher:
python-sdks-publish.yml on grafana/sigil-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sigil_sdk_llamaindex-0.2.0.tar.gz -
Subject digest:
43548c50abda1854e642dc19a6a4340bc2511bba8e2303ba4970fc709b700f39 - Sigstore transparency entry: 1417607470
- Sigstore integration time:
-
Permalink:
grafana/sigil-sdk@3cfc596f2d3ca631ce9fa8fe3107d71c17caf924 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/grafana
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-sdks-publish.yml@3cfc596f2d3ca631ce9fa8fe3107d71c17caf924 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file sigil_sdk_llamaindex-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sigil_sdk_llamaindex-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe4eb989ba23606649b0a4850ba85fff55ea45a5bef410c87fd653e45268561
|
|
| MD5 |
42ef5c128882881c916f0339faeb8ec5
|
|
| BLAKE2b-256 |
df7fa5de107da6ff15d97bfba179a94e4cfaf5028f4cbe200b6c7de00750b322
|
Provenance
The following attestation bundles were made for sigil_sdk_llamaindex-0.2.0-py3-none-any.whl:
Publisher:
python-sdks-publish.yml on grafana/sigil-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sigil_sdk_llamaindex-0.2.0-py3-none-any.whl -
Subject digest:
fbe4eb989ba23606649b0a4850ba85fff55ea45a5bef410c87fd653e45268561 - Sigstore transparency entry: 1417607591
- Sigstore integration time:
-
Permalink:
grafana/sigil-sdk@3cfc596f2d3ca631ce9fa8fe3107d71c17caf924 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/grafana
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-sdks-publish.yml@3cfc596f2d3ca631ce9fa8fe3107d71c17caf924 -
Trigger Event:
workflow_dispatch
-
Statement type: