pub struct CreateChatParams {
pub channel: Uri,
pub chat: Uri,
pub initial_message: Option<Message>,
pub source: Option<ChatSource>,
pub working_directories: Option<Vec<Uri>>,
}Expand description
Creates a new chat within a session.
Fields§
§channel: UriChannel URI this command targets.
chat: UriChat URI (client-chosen, e.g. ahp-chat:/<uuid>).
initial_message: Option<Message>Optional initial message for the new chat.
source: Option<ChatSource>Optional source chat and source turn.
The source chat MUST belong to this session. Clients MUST only request
kind: "fork" when the selected agent advertises
capabilities.multipleChats.fork, and kind: "sideChat" when the
selected agent advertises capabilities.multipleChats.sideChat. Both
source forms carry a stable top-level turnId. Forks target completed
turns. Side chats also carry a stable turnId, which the host resolves
against the source chat’s current active turn or retained history. If it
resolves to the active turn, the host snapshots the currently available
partial response when accepting createChat. When
source.kind === "sideChat" and source.selection is present, the host
also snapshots and preserves that exact selected text in the created chat’s
origin; any responsePartId there is provenance only, not a live range.
working_directories: Option<Vec<Uri>>Initial working-directory subset for this chat. Every entry MUST be
present in the owning session’s workingDirectories; the server MUST
reject any entry that is not. When absent, the chat inherits the full
session set. Forked chats (those whose source.kind is "fork") inherit
the source chat’s workingDirectories; this field is ignored for forks.
A client MUST NOT supply this field unless the agent advertises {@link AgentCapabilities.multipleWorkingDirectories}.
Trait Implementations§
Source§impl Clone for CreateChatParams
impl Clone for CreateChatParams
Source§fn clone(&self) -> CreateChatParams
fn clone(&self) -> CreateChatParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more