pub enum OnInputResult {
InputRequired {
message: Content,
slot: SkillSlot,
},
Completed {
message: Option<Content>,
artifacts: Vec<Artifact>,
},
Failed {
error: Content,
},
}Expand description
Result of skill handler’s on_input_received method.
Controls continuation after receiving user input.
Variants§
InputRequired
Still need more input.
Can ask for input again if the user’s response was invalid.
Completed
Task completed after receiving input.
Maps to A2A TaskState::Completed (terminal, final=true).
Fields
Failed
Failed to process the input.
Maps to A2A TaskState::Failed (terminal, final=true).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OnInputResult
impl RefUnwindSafe for OnInputResult
impl Send for OnInputResult
impl Sync for OnInputResult
impl Unpin for OnInputResult
impl UnsafeUnpin for OnInputResult
impl UnwindSafe for OnInputResult
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