pub struct AgentSpawnConfig {
pub command: String,
pub args: Vec<String>,
pub env: HashMap<String, String>,
pub prompt: String,
pub logfile: String,
pub parser_type: JsonParserType,
}Expand description
Configuration for spawning an agent process with streaming support.
This struct contains all the parameters needed to spawn an agent subprocess, including the command, arguments, environment variables, prompt, and parser type.
Fields§
§command: StringThe command to execute (e.g., “claude”, “codex”).
args: Vec<String>Arguments to pass to the command.
env: HashMap<String, String>Environment variables to set for the process.
prompt: StringThe prompt to pass to the agent.
logfile: StringPath to the log file for output.
parser_type: JsonParserTypeThe JSON parser type to use for output.
Trait Implementations§
Source§impl Clone for AgentSpawnConfig
impl Clone for AgentSpawnConfig
Source§fn clone(&self) -> AgentSpawnConfig
fn clone(&self) -> AgentSpawnConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentSpawnConfig
impl RefUnwindSafe for AgentSpawnConfig
impl Send for AgentSpawnConfig
impl Sync for AgentSpawnConfig
impl Unpin for AgentSpawnConfig
impl UnwindSafe for AgentSpawnConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more