Skip to main content

Crate infinity_protocol

Crate infinity_protocol 

Source

Structs§

ModelInfo
ModelRef
Globally unique reference to a model: a provider id plus the model’s provider-scoped id.
ProviderCallId
The identifier kinds used throughout the runtime (re-exported from rap-protocol). The provider-scoped companion ID of a tool call (call_id on RAP invocations and callbacks). Some providers issue a second identifier alongside the tool-call ID; it must be echoed back verbatim in tool results. Absent for providers that do not use one.
RemoteInfo
RemoteName
The name of a configured remote daemon (from remotes.json), e.g. "devbox". Remote names must not contain / (they are joined with thread IDs in ThreadRef’s wire encoding).
SessionInfo
SubthreadInfo
ThreadId
The identifier kinds used throughout the runtime (re-exported from rap-protocol). Identifies a conversation thread.
ThreadRef
A client-facing reference to a thread: which daemon it lives on (remote: None means the local daemon) plus its thread ID there.
ThreadRefParseError
Error parsing a ThreadRef from its composite string form.
TokenUsage
ToolCallId
The identifier kinds used throughout the runtime (re-exported from rap-protocol). Identifies one tool call within a thread.

Enums§

ClientMessage
DaemonMessage
SessionStatus

Functions§

length_delimited_codec
Create a LengthDelimitedCodec configured with the project-wide maximum frame size. Use this instead of LengthDelimitedCodec::new() to ensure both client and daemon agree on the limit.
pid_path
Returns the path to the daemon PID file: ~/.infinity/daemon.pid.
remotes_config_path
Returns the path to the remotes config: ~/.infinity/remotes.json.
socket_path
Returns the path to the daemon unix socket: ~/.infinity/daemon.sock.
state_dir
Returns the base directory for daemon state: ~/.infinity/.

Type Aliases§

ChoiceId
The identifier kinds used throughout the runtime (re-exported from rap-protocol). Identifies a pending user choice.