Skip to main content

multichat-api (Python)

Helpers for the MultiChat developer API (docs/api/developer.openapi.yaml, v1.0.0). They never sit between you and your provider: convert, optimise, compact or store context here, then send the request with your own key and the provider's own SDK.

from multichat_api import Client
from openai import OpenAI

mc = Client()   # MULTICHAT_API_KEY; MULTICHAT_URL for your own instance
req = mc.optimise(request, format="openai.chat.completions",
                  steps=["trim", "tools", "reasoning", "model"],
                  settings={"turn": 12, "n": 10, "profile": 1})["request"]
reply = OpenAI().chat.completions.create(**req)

Every operation in the spec has a method: convert, sync_encode, sync_decode, optimise, truncate_tool_results, describe_media, compact, start_compact_job, get_job, cancel_job, summarise, contexts (create_context, store_turns, history_tool, retrieve, ...), RAG (create_collection, add_documents, query), embed, count_tokens, usage. Errors raise MultichatError with status and code.

Tests run against the engine itself (MC_ENGINE, default /home/user/mc-engine): pytest.

Licence

Apache License 2.0: see LICENSE, with the attribution notices in NOTICE. Copyright 2026 Digital Deep Ltd.

Licence headers: source files in this package carry no per-file licence header; the LICENSE and NOTICE files at the package root cover every file in it, and are shipped with every published build. New files may start with the two-line header below, and must not carry any other licence. If you copy files out of this package, keep LICENSE and NOTICE with them (Apache-2.0, section 4). Contributions are accepted under Apache-2.0 (section 5).

# Copyright 2026 Digital Deep Ltd
# SPDX-License-Identifier: Apache-2.0

Metadata

Release files for multichat-api 1.0.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 multichat-api 1.0.0
File Size Uploaded Provenance Actions
multichat_api-1.0.0.tar.gz 9.1 kB With provenance Details for multichat_api-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for multichat-api 1.0.0
File Interpreter ABI Platform Actions
multichat_api-1.0.0-py3-none-any.whl Python 3 none any Details for multichat_api-1.0.0-py3-none-any.whl

Total release size: 18.2 kB

Release files / multichat_api-1.0.0.tar.gz

Download URL multichat_api-1.0.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
988f33c101b1bab1347b0781952009faad44e4340bf9846091efe1a31ac1e9f5
BLAKE2b-256 checksum
How to use checksums
2cd3eae53f30235de6caa1ef68784aa46929f080e1d94d5767f522b18480d841
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / multichat_api-1.0.0-py3-none-any.whl

Download URL multichat_api-1.0.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe61dd6a6366e9dd8eb7c956850813da33157efa22b53daaf94e4ee53f5dae5d
BLAKE2b-256 checksum
How to use checksums
197e53032568481a9bda207dbf2d4a368fd1d506ab1d04c5bdc00869f4f4551f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for multichat-api 1.0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for multichat_api-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

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

1.0.0 This release

2 release files Full 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