pub struct AgentOpts {
pub prompt: String,
pub label: Option<String>,
pub model: Option<String>,
pub capability_mode: Option<String>,
pub output_schema: Option<Value>,
pub phase: Option<String>,
pub agent_type: Option<String>,
pub fork_context: bool,
pub resume_from: Option<String>,
pub max_output_tokens: Option<u64>,
}Expand description
Options for agent() / parallel() host spawns.
Fields§
§prompt: StringPrompt text.
label: Option<String>Optional label.
model: Option<String>Optional model override.
capability_mode: Option<String>Capability mode string (full, read_only, plan).
output_schema: Option<Value>Optional JSON schema for structured output.
phase: Option<String>Optional phase tag for UI.
agent_type: Option<String>Optional agent type / definition name for host resolution.
fork_context: boolWhen true, host may fork parent conversation context into the child.
resume_from: Option<String>Resume a prior nested agent run id when the host supports it.
max_output_tokens: Option<u64>Max output tokens hint for the child sample.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentOpts
impl<'de> Deserialize<'de> for AgentOpts
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentOpts
impl RefUnwindSafe for AgentOpts
impl Send for AgentOpts
impl Sync for AgentOpts
impl Unpin for AgentOpts
impl UnsafeUnpin for AgentOpts
impl UnwindSafe for AgentOpts
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