Skip to main content

scitrera-messaging-spec

Python reference implementation of the Scitrera Ecosystem Messaging Spec, including the v1.0 chat schema, provider-qualified tool catalog, workspace execution binding, and session attach/recovery protocol.

from scitrera_messaging_spec import (
    ChatMessage, TextPart, ToolCallPart, ToolResultPart,
    apply_event, MessageStarted, PartAppended, TokenDelta,
    to_openai_chat_completion,
)

m = ChatMessage(
    id="msg_1",
    role="assistant",
    content=[
        TextPart(text="hello"),
        ToolCallPart(id="c1", name="get_time", args={}, status="completed"),
        ToolResultPart(call_id="c1", output_text="3pm"),
    ],
)
print(m.model_dump_json())

See the message spec and tool catalog, workspace execution, and session protocol for the normative contracts.

Install

pip install scitrera-messaging-spec

Or, for local development, from a checkout:

pip install -e python

Metadata

Release files for scitrera-messaging-spec 1.3.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 scitrera-messaging-spec 1.3.0
File Size Uploaded
scitrera_messaging_spec-1.3.0.tar.gz 51.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scitrera-messaging-spec 1.3.0
File Interpreter ABI Platform
scitrera_messaging_spec-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 90.4 kB

Release files / scitrera_messaging_spec-1.3.0.tar.gz

Download URL scitrera_messaging_spec-1.3.0.tar.gz
Size 51.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d5dbeb5d43f737254ef29c299c74586c5d7787252c17491944416f8f1e6a3a6d
BLAKE2b-256 checksum
How to use checksums
4dcca0fb2b02e7a785b70500fb432489e61e1724fbcda1f02e786c3623e7d057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 29, 2026.

Transparency log

Release files / scitrera_messaging_spec-1.3.0-py3-none-any.whl

Download URL scitrera_messaging_spec-1.3.0-py3-none-any.whl
Size 38.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6773550a140711fb34db22e2e5c2ba72d94740a54243c68b8c36f53751ebb7ca
BLAKE2b-256 checksum
How to use checksums
611fb45f417bcf88602c835f843914fe29f24264a540e87b281ad2933c7d7aeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.6

2 release files

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