reverie-schema (Python)
Pydantic v2 models for the Reverie CognitiveEvent schema (v1.0). This is the
canonical Python definition used by:
reverie-adapter-openai— for emitting eventsreverie-api— for validating events on ingress
The wire format is camelCase JSON, identical to the TypeScript schema in
@reverie/schema. Internally, Python code uses snake_case field names; the
Pydantic models translate via alias_generator=to_camel.
Usage
from reverie_schema import CognitiveEvent, GoalPayload
event = CognitiveEvent(
type="goal.created",
run_id="...",
session_id="...",
agent_id="my-agent",
payload=GoalPayload(intent="...", priority="high", context=""),
)
# Wire serialization (camelCase, ready for HTTP / DB):
event.model_dump_json()
# Inbound validation (raises ValidationError on failure):
CognitiveEvent.model_validate_json(raw_json)
Install (editable, dev)
uv pip install -e ".[dev]"
pytest
Metadata
Release files for reverie-schema 0.1.0
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 |
|---|---|---|---|---|
| reverie_schema-0.1.0.tar.gz | 9.6 kB | Without provenance | Details for reverie_schema-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reverie_schema-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for reverie_schema-0.1.0-py3-none-any.whl |
Total release size: 15.3 kB
Release files / reverie_schema-0.1.0.tar.gz
| Download URL | reverie_schema-0.1.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d953fb6cc735f924e3f84dba0e77983d75374c52ac10e7dd4aef5c7302f92446
|
|
BLAKE2b-256 checksum How to use checksums |
d54c12860368b942a1d896408a24fb291fef0586c45a7951e63b5b6669d1dd20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / reverie_schema-0.1.0-py3-none-any.whl
| Download URL | reverie_schema-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b3f250de435e3b56c3cb4d6740b738bb445e9f4d3b88f93a22929999be3da86
|
|
BLAKE2b-256 checksum How to use checksums |
308793efb72a57d6e806fa5d517366c9763c452f8187d9f2b16cdfd8e229eea7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for reverie-schema 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.