Skip to main content

sergent-py-core

sergent-py-core is the foundation package of the Sergent Python reference implementation. It holds the values that the Sergent Specification names, plus the three interfaces an application implements or supplies. It executes nothing: no Run flow, no event loop, no provider call, no file access.

Purpose and role

A Sergent Run carries one observation toward one committed change through a fixed sequence of stages. Core does not perform that sequence. It names the value each stage carries and the interface each participant implements, so every package above it shares one vocabulary instead of agreeing on one informally.

Core sits at the bottom of a four-package stack and depends on nothing else inside it. Its only outside dependencies are Pydantic, typing-extensions, and the Python standard library.

  • sergent-py-runtime composes these values into the Run flow, builds the Run Record, and delivers observer callbacks.
  • sergent-py-providers implements the model-call interface. It consumes only the model-call values and the shared primitives, and core knows nothing about any provider SDK.
  • sergent-py re-exports the curated subset that applications import.

Applications import from sergent_py only. Framework packages and tests import the defining core submodule directly, because every package initializer here is an empty marker and importing a submodule has no side effects.

Core is not the specification. The specification teaches the concepts and owns their rules. This package materializes them as Python objects and holds nothing conceptual of its own.

Design philosophy and what belongs here

Core is a vocabulary, not a coordinator. A class earns its place by naming one specification concept and owning the facts that concept owns. Four habits keep it that way.

  • Closed-world data. Values reject unknown input and fail at construction, so a value admitted once at its boundary is trusted everywhere afterwards, as the trust rule requires.
  • One owner per fact. Facts that always travel together live in one value object that every holder shares. Nothing stores what it can derive.
  • Specification terminology decides names. A class is named after the concept it materializes, never after the mechanism it happens to use.
  • Immutability where authority is at stake. Script steps are frozen, and a value carrying cross-field rules is replaced whole rather than edited in place.

Code that belongs here: specification-shaped values, the framework identifier and timing conventions, canonical Proposal Schema derivation with its closed dialect check, the Operation Registry, and the three interfaces.

Code that does not belong here: the Run flow and its stages, concurrency and cancellation machinery, observer delivery, persistence, provider transport and credentials, application policy, and default wiring. Intent and Intent Proposal classes are absent by design. An application owns its own, and the runtime owns its deterministic variants.

Knowledge in this package

Metadata

Release files for sergent-py-core 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 sergent-py-core 0.1.0
File Size Uploaded Provenance Actions
sergent_py_core-0.1.0.tar.gz 25.4 kB Without provenance Details for sergent_py_core-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sergent-py-core 0.1.0
File Interpreter ABI Platform Actions
sergent_py_core-0.1.0-py3-none-any.whl Python 3 none any Details for sergent_py_core-0.1.0-py3-none-any.whl

Total release size: 58.8 kB

Release files / sergent_py_core-0.1.0.tar.gz

Download URL sergent_py_core-0.1.0.tar.gz
Size 25.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1a1ed486ac5094bc2a325115dcc73796d26a0ba69996d0041078a5458b3e310f
BLAKE2b-256 checksum
How to use checksums
6da7f7a58730758d52708f75da1b6dcb482c73cff61df47f1fd97a578ba7dac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / sergent_py_core-0.1.0-py3-none-any.whl

Download URL sergent_py_core-0.1.0-py3-none-any.whl
Size 33.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9e6ee3cee2561f428dcc2f757c1c7434d4630500a94ae1dff77c8f2d399edda
BLAKE2b-256 checksum
How to use checksums
ad7c71d9f84062050086bedbfc766b8359f48e6275d1a38b51f373ce1463b3c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for sergent-py-core 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