pub struct AgentRegistrySpawnRequest {
pub agent_name: Option<String>,
pub cwd: String,
pub initial_prompt: Option<String>,
pub model: Option<String>,
pub name: Option<String>,
pub permission_mode: Option<AgentRegistrySpawnPermissionMode>,
}Expand description
Inputs to spawn a managed-server child via the controller’s spawn delegate.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§agent_name: Option<String>Custom or built-in agent name (e.g. ‘explore’). When omitted, the child uses its own default.
cwd: StringWorking directory for the spawned child (must be an existing directory)
initial_prompt: Option<String>Optional first user message. Forwarded to the caller (the CLI’s spawn wrapper sends it post-attach via the standard LocalRpcSession.send path).
model: Option<String>Model identifier to apply to the new session
name: Option<String>Friendly session name. Must satisfy validateSessionName: non-empty, no leading/trailing whitespace, <=100 chars, no control chars, no double quotes.
permission_mode: Option<AgentRegistrySpawnPermissionMode>Permission posture for the new session. ‘yolo’ requires the controller-local session to currently be in allow-all mode.
Trait Implementations§
Source§impl Clone for AgentRegistrySpawnRequest
impl Clone for AgentRegistrySpawnRequest
Source§fn clone(&self) -> AgentRegistrySpawnRequest
fn clone(&self) -> AgentRegistrySpawnRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more