pub struct Agent {
pub name: Option<String>,
pub instruction: Option<String>,
pub prompt: Option<String>,
pub preflight: Preflight,
pub wake_on: Option<Vec<WakeEvent>>,
pub on_workflow_finished: OnWorkflowFinished,
pub tools: AgentTools,
pub max_parallel_turns: Option<u32>,
pub conversation_budget: Option<Budget>,
pub ask_human_fallback: AskHumanFallback,
}Fields§
§name: Option<String>§instruction: Option<String>Static text, or a single-token URI a configured MCP server serves (read + subscribed) — one field, parsed (RFC 0028 §3).
prompt: Option<String>A one-shot task (--prompt). With no workflows configured this is
what the generated run executes, while instruction stays the standing
policy (it becomes the run’s system prompt). Given alone, the prompt is
the whole job — agentd --prompt "…" --intelligence … runs it once and
exits with the answer on stdout.
preflight: Preflight§wake_on: Option<Vec<WakeEvent>>§on_workflow_finished: OnWorkflowFinished§tools: AgentTools§max_parallel_turns: Option<u32>§conversation_budget: Option<Budget>§ask_human_fallback: AskHumanFallbackWhat ask_human does when NO human channel can answer — the interface
is disabled — and, for auto, when a gate times out unanswered
(RFC 0032 §16): fail (default; the ask errors immediately), wait
(park until the ask timeout), or auto (an LLM judge answers on the
operator’s behalf, conservatively, marked as auto).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Agent
impl<'de> Deserialize<'de> for Agent
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
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe for Agent
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