Skip to main content

Crate monoloop_interpreter

Crate monoloop_interpreter 

Source
Expand description

SPDX-License-Identifier: AGPL-3.0-or-later Copyright (C) Alexander R. Croft

Component 02 — Interpreter.

Consumes ordered raw Connector bytes + dialect binding, assembles complete provider-neutral canonical units, and publishes them immediately. Never emits tokens, text deltas, or partial tool JSON as canonical content.

See doc/INTERPRETER.md.

Structs§

AcpDialect
ACP dialect helpers.
Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
CanonicalEventStream
Cloneable receiver handle for canonical events from one Interpretation.
CanonicalUnitSnapshot
Correlation + lifecycle envelope for one unit generation.
CompletedSentence
One completed sentence from the segmenter, with buffer consumption.
ConnectionId
Local logical transport attachment identity for one connection scope.
DefaultInterpreterFactory
Default factory supporting Test + ACP/GrokBuild dialects.
DialectBinding
Immutable input/output dialect pair for one opened connection.
DialectDescriptor
Stable, bounded, versioned dialect descriptor.
ExternalSessionId
Opaque externally owned session identity (e.g. Grok sessionId).
FlowId
Flow identity (one logical dialect exchange/response).
Interpretation
Handle returned by the factory.
InterpretationEnd
Exactly one terminal report per interpretation.
InterpretationId
Interpretation instance identity.
InterpretationInput
Cloneable input handle for raw Connector output chunks.
InterpretationLimits
Interpretation assembly and output bounds.
InterpreterError
Interpreter error with safe diagnostics.
LaneId
Lane identity within a flow.
OpenAiSseState
Incremental SSE assembler for one interpretation.
SentenceSegmenter
Deterministic sentence boundary finder.
SourceTimeObservation
Dialect-observed source time for a complete (or lifecycle) unit.
StartInterpretation
Request to start an interpretation on one connection output.
TextSentence
Complete sentence atom (immutable after emission).
ToolActionId
Tool action identity (dialect-provided or interpretation-scoped).
UnitId
Stable unit identity within one interpretation.

Enums§

BoundaryKind
Boundary kinds.
CanonicalUnit
Closed top-level canonical unit vocabulary.
CanonicalUnitEvent
Unit lifecycle event (closed vocabulary).
DialectFamily
High-level dialect family (not an encoder/decoder implementation).
InterpretationEndKind
Interpretation terminal kinds.
InterpreterErrorKind
Interpreter error classification.
InterpreterOutputEvent
Stream events delivered to subscribers (Interpreter output + end).
SupportLevel
How well a factory supports a dialect binding.
TextChannel
Canonical text channel.
UnitState
Lifecycle state of a canonical unit.

Constants§

DEFAULT_CHOICE_INDEX
Default accepted choice index for the first product path.
SENTENCE_SEGMENTER_VERSION
Version label for the segmenter (recorded in interpretation diagnostics).

Traits§

InterpreterFactory
Creates Interpretation instances for supported dialects.