Skip to main content

Crate talos_runtime

Crate talos_runtime 

Source
Expand description

Embeddable Talos agent runtime facade.

This crate is the SDK-style entrypoint for Rust projects that want to reuse Talos’s agent turn loop without depending on the Talos CLI or TUI crates.

Structs§

EvaluatorAdmission
Read-only admission policy for evaluator tools.
EvaluatorFailure
Explicit non-PASS outcome when evaluation cannot safely produce a report.
EvaluatorRequest
The bounded, fresh context sent to an evaluator.
IndependentEvaluator
Independent evaluator coordinator with bounded, fail-closed execution.
MessageToolResult
Result of a tool execution (message-layer).
ProviderEvaluatorAssessor
Provider-backed assessor that sends one tool-free request with a fresh context.
RuntimeBuilder
Builder for an embeddable Talos runtime.
RuntimeHandle
Handle for interacting with a running embedded Talos runtime.
RuntimeHookRegistry
Per-agent hook registry.
RuntimeShutdownHandle
Cloneable shutdown-only controller for one runtime.
RuntimeSkillIndex
Lightweight skill index entry for Level 0 progressive disclosure.
SandboxFallbackContext
A redacted, typed request for a sandbox fallback decision.
ShutdownFinalizerId
Code-owned identifier for a runtime shutdown finalizer.
ShutdownFinalizerReport
Redacted report entry for one fixed runtime-owned finalizer.
ShutdownOptions
Validated options for one runtime shutdown request.
ShutdownPlanId
Opaque identifier of the first accepted shutdown plan.
ShutdownReport
Immutable redacted result shared by every shutdown caller.
ToolCall
A tool call requested by the assistant.
ToolDefinition
Usage
Token usage statistics for a turn.
ValidationEvidence
Provenance-preserving validation evidence made available to an evaluator.

Enums§

ActiveTurnPolicy
Policy for the turn active when runtime admission closes.
AgentEvent
Events emitted during a turn for streaming.
EvaluatorError
Errors raised before a safe evaluator outcome can be constructed.
EvaluatorOutcome
Result of one independent evaluation attempt.
ProviderError
RuntimeError
Errors returned by the embeddable runtime facade.
RuntimePreset
Explicit built-in capability preset for embedded runtimes.
RuntimeTurnCompletionStatus
SandboxFallbackDecision
A dedicated sandbox fallback decision. It intentionally has no permanent or reusable approval variant.
SandboxFallbackPolicy
Controls what happens when a configured sandbox is unavailable.
ShutdownActiveTurnOutcome
Redacted outcome for the turn active at the shutdown fence.
ShutdownActorOutcome
Redacted actor containment outcome.
ShutdownDurableOutcome
Redacted durable pending-custody outcome.
ShutdownFinalizerOutcome
Redacted terminal outcome for one runtime-owned shutdown finalizer.
ShutdownFinalizerRegistryError
Validation failure for the frozen runtime-owned finalizer registry.
ShutdownOptionsError
Validation errors for ShutdownOptions.
StopReason
Reason the assistant stopped generating.
ToolNature
Categorizes a tool by its operational nature for permission decisions.
ToolProvenance
Provenance of a registered tool.
ValidationEvidenceStatus
Validation status recorded in a bounded evidence snapshot.

Traits§

ApprovalHandler
Handles approval requests for permission-gated runtime tool calls.
EvaluatorAssessor
A model assessor used by the independent evaluator. It cannot execute tools through this API.

Functions§

collect_until_turn_completed
Collects events until the current turn completes.

Type Aliases§

RuntimeResult
Result alias for runtime facade operations.