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§

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.
VecEventSink
In-memory event sink used by tests and buffered callers.

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§

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.