Skip to main content

Crate sim_lib_agent_runner_core

Crate sim_lib_agent_runner_core 

Source
Expand description

Provider-neutral runner contracts for SIM model fabrics.

This crate defines the shared in-process objects used by SIM model runners:

Higher-level crates install concrete runners, policies, markets, and agent-model adapters on top of these contracts.

Structs§

InjectionFence
Deterministic model-input fence tied to immutable content.
ModelBid
One availability/score proposal produced for market-style runner selection.
ModelCard
Metadata describing one runner/model candidate for routing and inspection.
ModelEvent
Structured streaming event emitted by a model runner.
ModelRequest
Normalized model request used across providers and local runners.
ModelResponse
Final response returned by a runner after inference completes.
ModelUsage
Usage and accounting information attached to a model response.
OutputContract
Output obligations attached to a model request.
VecEventSink
In-memory event sink used by tests and buffered callers.

Constants§

FENCE_DATA_RULE
Instruction every consumer emits next to fenced data.
OUTPUT_GRAMMAR_EXTRA
Model-request extension key for a best-effort output grammar.
OUTPUT_GRAMMAR_REQUIRED_EXTRA
Model-request extension key marking whether the grammar is required.
RETURN_CODEC_EXTRA
Model-request extension key for the required return codec.
RETURN_SHAPE_EXTRA
Model-request extension key for the normalized return shape expression.

Statics§

RECIPES
Cookbook recipes embedded from this crate’s recipes/ directory.

Traits§

ModelEventSink
Sink for streaming model events emitted during inference.
ModelRunner
Executable contract for a model backend or model-like runtime surface.

Functions§

effective_ceiling
Resolves capability symbols and intersects them with the active set.
model_bid_class_symbol
Returns the citizen class symbol for ModelBid.
model_card_class_symbol
Returns the citizen class symbol for ModelCard.
model_request_class_symbol
Returns the citizen class symbol for ModelRequest.
model_request_kernel_event
Converts a model request into a kernel chunk event with a content ref.
model_response_class_symbol
Returns the citizen class symbol for ModelResponse.
model_usage_class_symbol
Returns the citizen class symbol for ModelUsage.
shape_to_grammar
Lowers a SIM shape into a constrained-decoding grammar string.
terminal_model_content
Returns the terminal content item from a model response.