Skip to main content

Core message and tool IR for LLM pipelines

Project description

Intermediate Representation for LLM Chats

Pipy Downloads Issues Type Check Deploy Docs Documentation

This repository provides the core types for a standardized way to represent messages for LLMs. Additional chunk-types will be added in the future.

Installation via Pypi:

pip install llmir

Imports:

from llmir import AIMessages, AIMessage, AIMessageToolResponse, AIRoles, AIChunks, AIChunkText, AIChunkFile, AIChunkImageURL, AIChunkToolCall, AITool

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

llmir-0.0.19.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

llmir-0.0.19-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file llmir-0.0.19.tar.gz.

File metadata

  • Download URL: llmir-0.0.19.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for llmir-0.0.19.tar.gz
Algorithm Hash digest
SHA256 85b1dfd229bcdf25b95fa716bf5ab3fbd99d1d6055699c590c2969f96c22f528
MD5 a18454951f1a0c8b92cf4169816cac54
BLAKE2b-256 502cf865cab4764d3668d73f37d7bc055086a2b17c7107b18bd34788f0dbecbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmir-0.0.19.tar.gz:

Publisher: publish.yml on mathisxy/llmir

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

File details

Details for the file llmir-0.0.19-py3-none-any.whl.

File metadata

  • Download URL: llmir-0.0.19-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for llmir-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 f6eb0c2060c9ef1d35cabcb97e1bb0423ef348f324cd049d259f52767bb2ed76
MD5 9b0f20079933276aa06ceb89d0bd1835
BLAKE2b-256 5c3564d622ae495918478ea875837d56ec1975fd2fdae6ebdad69c536abc78ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for llmir-0.0.19-py3-none-any.whl:

Publisher: publish.yml on mathisxy/llmir

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

Supported by

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