Skip to main content

Module session

Module session 

Source
Expand description

Client-side session model: folds the server’s event stream into a render-friendly transcript plus a small amount of session state.

This is deliberately independent of any local agent harness — it is the client analogue of the TS packages/coding-agent/src/client/ remote-session layer, built on rpi’s own protocol types.

Re-exports§

pub use crate::transcript_view::tool_result_text;

Structs§

RemoteSession
Text out of a wire tool-result payload ({content:[{type:"text",text}]}). Client-side session state: the transcript plus the latest server state.
ToolItem
A tool invocation as rendered in the transcript.
Transcript
The transcript the UI renders, in order.

Enums§

TranscriptItem
One item in the remote transcript.

Functions§

message_role
The logical role of a serialized message (kind or role).
message_text
Extract concatenated text from a serialized AgentMessage/AssistantMessage (content: [{type:"text",text:…}]).