Skip to main content

Crate scv_core

Crate scv_core 

Source
Expand description

SCV’s provider-independent agent loop and extension traits.

Structs§

AgentConfig
AgentRuntime
ApprovalRequest
AssistantResponse
BudgetContextPolicy
ContextConfig
ContextError
ContextSelection
HistoryLimits
ProgressSink
Where a running tool reports short status lines, such as a delegated agent’s commands. Each report becomes one bounded line; the runtime forwards the pending lines to the client at most twice a second and never adds them to the model’s history. The default sink discards reports, so a tool may always report.
ProviderError
ProviderRequest
ToolApprovals
The session’s approval gate as seen by one running tool call. A tool that drives a nested agent (such as another SCV) asks it on the nested agent’s behalf, so the session’s policy and its user decide every nested side effect too. Without a gate, every request is denied.
ToolCall
ToolContext
ToolError
ToolOutput
ToolRegistry
ToolSpec
TurnOutcome
Usage

Enums§

AgentError
CoreEvent
Message
ProviderErrorKind
ToolRisk

Constants§

MAX_PROGRESS_EVENT_BYTES
Largest progress event: the newest lines reported since the previous event, with older ones dropped first.
MAX_PROGRESS_LINE_BYTES
Longest progress line a tool can report; longer lines are cut.
PROGRESS_INTERVAL
Minimum spacing of one call’s progress events (at most two a second).

Traits§

ApprovalGate
ContextPolicy
EventSink
Provider
TextDeltaSink
Tool