Skip to main content

Crate scv_protocol

Crate scv_protocol 

Source
Expand description

Dependency-light wire types shared by SCV clients and the server.

Structs§

Attachment
A file a client attaches to its turn, already saved on the daemon’s host, such as a photo or document a chat user sent.
BackgroundJobUpdate
Background delegation jobs a tool.completed output shows starting or settling. agent_* calls with background: true return {"job", "status":"running", "background":true}; agent_wait and agent_status return job objects (or {"jobs":[...]}) whose status is no longer running once they finish. Clients use this to keep a session open while its jobs run, so the jobs are not cancelled with it.
ComponentHealth
DaemonStatus
DelegationInfo
DelegationSummary
Delegated agent runs of the daemon’s SCV instance.
PeerInfo
QueueEntry
ReplyAttachment
A file the model attached to its reply with CHAT_ATTACH_TOOL, as the tool’s successful tool.completed output reports it.
RestartInfo
A restart into a newly installed release, waiting for owner work to end.
TurnOrigin
Why the server started a turn on its own.
Usage

Enums§

ClientMessage
ComponentState
DaemonCommand
RemoteTools
Who may use tools through a remote bridge account.
ServerEvent

Constants§

CHAT_ATTACH_TOOL
The tool a chat session’s model calls to send a file with its reply.
MAX_CHANNEL_NAME_BYTES
The longest session.start channel name.
MAX_TURN_ATTACHMENTS
Files one turn.start may attach.
ORIGIN_BACKGROUND
TurnOrigin::kind of a turn reporting finished background delegations.
PROTOCOL_VERSION

Functions§

background_job_update
reply_attachment
The attachment a successful CHAT_ATTACH_TOOL call reports: its output is {"attached": {...}, ...}. Anything else is None.