pub enum AgentInput {
Text(String),
Resume {
continuation: Box<AgentContinuation>,
tool_call_id: String,
confirmed: bool,
rejection_reason: Option<String>,
},
Continue,
}Expand description
Input to start or resume an agent run.
Variants§
Text(String)
Start a new conversation with user text.
Resume
Resume after a confirmation decision.
Fields
§
continuation: Box<AgentContinuation>The continuation state from AwaitingConfirmation (boxed for enum size efficiency).
Continue
Continue to the next turn (for single-turn mode).
Use this after TurnOutcome::NeedsMoreTurns to execute the next turn.
The message history already contains tool results from the previous turn.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentInput
impl RefUnwindSafe for AgentInput
impl Send for AgentInput
impl Sync for AgentInput
impl Unpin for AgentInput
impl UnwindSafe for AgentInput
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