pub enum AgentInput {
User {
content: String,
context: Option<String>,
parts: Option<Vec<ContentPart>>,
},
Resume,
}Expand description
Input that starts or resumes an agent session.
The default variant is Resume, which re-processes
the conversation without injecting new content.
Variants§
User
A new user message to process.
Fields
§
parts: Option<Vec<ContentPart>>Multimodal attachments (images, documents, etc.).
Resume
Resume a paused conversation without injecting new content. Used after tool interrupts or compaction retries.
Implementations§
Source§impl AgentInput
impl AgentInput
Sourcepub fn user(content: impl Into<String>) -> Self
pub fn user(content: impl Into<String>) -> Self
Short-hand to construct a simple text-only AgentInput::User.
Trait Implementations§
Source§impl Clone for AgentInput
impl Clone for AgentInput
Source§impl Debug for AgentInput
impl Debug for AgentInput
Auto Trait Implementations§
impl Forget for AgentInput
impl Freeze for AgentInput
impl Move for AgentInput
impl RefUnwindSafe for AgentInput
impl Send for AgentInput
impl Sync for AgentInput
impl Unpin for AgentInput
impl UnsafeUnpin 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