pub struct CreateSessionParams {
pub channel: Uri,
pub provider: Option<String>,
pub model: Option<ModelSelection>,
pub agent: Option<AgentSelection>,
pub working_directory: Option<Uri>,
pub fork: Option<SessionForkSource>,
pub config: Option<JsonObject>,
pub active_client: Option<SessionActiveClient>,
}Fields§
§channel: UriChannel URI this command targets.
provider: Option<String>Agent provider ID
model: Option<ModelSelection>Model selection (ID and optional model-specific configuration)
agent: Option<AgentSelection>Initial custom agent selection for the new session.
Omit to start the session with no custom agent selected (provider default).
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 the active client role for the new session.
When provided, the server initializes the session with this client as the
active client, equivalent to dispatching a session/activeClientChanged
action immediately after creation. The clientId MUST match the
clientId the creating client supplied in initialize.
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 ==.