pub struct CreateSessionParams {
pub channel: Uri,
pub provider: Option<String>,
pub working_directory: Option<Uri>,
pub fork: Option<SessionForkSource>,
pub config: Option<JsonObject>,
pub active_client: Option<SessionActiveClient>,
pub progress_token: Option<String>,
}Fields§
§channel: UriChannel URI this command targets.
provider: Option<String>Agent provider ID
working_directory: Option<Uri>Working directory for the session
fork: Option<SessionForkSource>Fork from an existing session. The new session is populated with content from the source session up to and including the specified turn’s response.
config: Option<JsonObject>Agent-specific configuration values collected via resolveSessionConfig.
Keys and values correspond to the schema returned by the server.
active_client: Option<SessionActiveClient>Eagerly claim an active client role for the new session.
When provided, the server initializes the session with this client as an
active client, equivalent to dispatching a session/activeClientSet
action immediately after creation. The clientId MUST match the
clientId the creating client supplied in initialize.
progress_token: Option<String>Opt-in progress token. When set, the client is offering to receive
progress notifications (see ProgressParams) for any long-running work
the server does to bring this session up — most notably the lazy,
first-use download of the provider’s native SDK. The server echoes this
exact token on every progress frame so the client can correlate it to
this createSession call (and the UI awaiting it).
The token MUST be unique across the client’s active requests. The server
MAY ignore it (e.g. when nothing long-running is needed), in which case no
progress notifications are emitted.
Trait Implementations§
Source§impl Clone for CreateSessionParams
impl Clone for CreateSessionParams
Source§fn clone(&self) -> CreateSessionParams
fn clone(&self) -> CreateSessionParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateSessionParams
impl Debug for CreateSessionParams
Source§impl<'de> Deserialize<'de> for CreateSessionParams
impl<'de> Deserialize<'de> for CreateSessionParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CreateSessionParams
impl PartialEq for CreateSessionParams
Source§fn eq(&self, other: &CreateSessionParams) -> bool
fn eq(&self, other: &CreateSessionParams) -> bool
self and other values to be equal, and is used by ==.