llama-index-llms-idemcore
LlamaIndex LLM for the Idemcore API. Every answer comes
with a signed, independently verifiable, bit-exact receipt, stored on
ChatResponse.additional_kwargs and message.additional_kwargs["idemcore"].
Install guide: https://idemcore.net/integrations/llamaindex
Install
pip install llama-index-llms-idemcore
export IDEMCORE_API_KEY=ick_...
Requires idemcore>=0.3 (r2 receipts) and idemcore-verify>=0.3.6.
Quickstart
from llama_index.core.base.llms.types import ChatMessage, MessageRole
from llama_index.llms.idemcore import IdemcoreLLM, verify_llamaindex_receipt
llm = IdemcoreLLM(model="your-model-id", max_tokens=64)
response = llm.chat([
ChatMessage(role=MessageRole.USER, content="Name the three primary colours."),
])
print(response.message.content)
print(response.additional_kwargs["receipt_id"]) # rcpt_...
# bundle = verify_llamaindex_receipt(response, log_text=log_text)
# print(bundle.ok)
complete(prompt) sends the prompt as a single user message. Streaming
(stream_chat, stream_complete) yields text deltas and attaches the receipt
on the final item, once the answer is complete.
Sampling
Idemcore decoding is greedy: temperature is fixed at 0. Other sampling
settings (top_p, top_k, penalties, seed, n, stop sequences) and tool
calling are rejected. max_tokens must be a whole number from 1 to 2048.
Auth is IDEMCORE_API_KEY. Billing is measured server-side in tokens.
Tests
pip install -e ".[dev]"
pytest
Unit tests mock the SDK. A live smoke test runs only when IDEMCORE_API_KEY
is set in the environment.
Metadata
Release files for llama-index-llms-idemcore 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_llms_idemcore-0.1.1.tar.gz | 9.5 kB | Without provenance | Details for llama_index_llms_idemcore-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_llms_idemcore-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for llama_index_llms_idemcore-0.1.1-py3-none-any.whl |
Total release size: 18.2 kB
Release files / llama_index_llms_idemcore-0.1.1.tar.gz
| Download URL | llama_index_llms_idemcore-0.1.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a36e4571044b0975fe056ff6319af2f0f56d6a6107e7aca067e7511a72f5a08
|
|
BLAKE2b-256 checksum How to use checksums |
2e2b1a34d7bec9cb51ef03e0338fc6de28ff9332dda25eee46f2c7356f540354
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / llama_index_llms_idemcore-0.1.1-py3-none-any.whl
| Download URL | llama_index_llms_idemcore-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6cb8578b905293d801637f2f01d94c06815749487aca663620301026c54a836
|
|
BLAKE2b-256 checksum How to use checksums |
92b3ba047e0d897f6d5509ea05a6af8aa51655a9090c6c9e5783be6f6da27c85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for llama-index-llms-idemcore 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.