Skip to main content

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"].

Private package. Do not publish to PyPI without explicit approval.

Install (local)

pip install -e /workspace/idemcore-integrations/packages/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.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 llama-index-llms-idemcore 0.1.0
File Size Uploaded Provenance Actions
llama_index_llms_idemcore-0.1.0.tar.gz 9.6 kB Without provenance Details for llama_index_llms_idemcore-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-llms-idemcore 0.1.0
File Interpreter ABI Platform Actions
llama_index_llms_idemcore-0.1.0-py3-none-any.whl Python 3 none any Details for llama_index_llms_idemcore-0.1.0-py3-none-any.whl

Total release size: 18.2 kB

Release files / llama_index_llms_idemcore-0.1.0.tar.gz

Download URL llama_index_llms_idemcore-0.1.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7ae4465d4bc7e6b6299e23b0680f44562a639b5a6e52c0ac9e2402e0d7af5ee2
BLAKE2b-256 checksum
How to use checksums
51f4672b7b367820e2379f2d5c41b63f9b977af03bc5d441f5ce221c3f53d160
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.0-py3-none-any.whl

Download URL llama_index_llms_idemcore-0.1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c171d97965c03ee1b48a533ed6e2528610e129dbb531ede567f02439731d313
BLAKE2b-256 checksum
How to use checksums
a2e5cb26024a3dca6590e48859fbcab2911c775859c34f9a9e2c64f1967cfc49
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.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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