Skip to main content

Crate rap_protocol

Crate rap_protocol 

Source

Structs§

DiffContent
Content for a diff display segment.
ImageContent
Content for an image display segment.
PlainCallbackClient
Plain reqwest client for local mode (no auth needed).
ProviderCallId
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.
RapInvocation
RapOAuth
RapSubscriptionEvent
RapToolResult
RapUserChoice
RapViewUpdate
ThreadId
Identifies a conversation thread.
ToolCallId
Identifies one tool call within a thread.
ToolDef
ToolsetManifest

Enums§

DisplaySegment
A segment of display content for human-facing UIs.
RapCallback
Tagged enum for all RAP callback message types.
RapToolResultContent
A single item of structured tool-result content.

Traits§

CallbackClient
Trait for sending tool results back to the RAP callback URL.

Functions§

build_display_segments
Build the prioritized display segments list: tool-provided display_as segments first, then the raw text as a trailing Text fallback.
log_panic
Run a future and log if it panics, instead of silently swallowing the panic. Use this to wrap fire-and-forget spawned tasks.
send_subscription_event
Send a subscription_event callback.
send_tool_result
Send a tool_result callback.
send_user_choice
Send a user_choice callback requesting user confirmation.
send_view_update
Send a view_update callback.

Type Aliases§

ChoiceId
Identifies a pending user choice.