pub struct UserPrompt {
pub id: String,
pub text: String,
}Expand description
A user prompt that requires human input.
Created when the agent emits a user.prompt event during planning.
Fields§
§id: StringUnique identifier for this prompt (e.g., “q1”, “q2”)
text: StringThe prompt/question text
Trait Implementations§
Source§impl Clone for UserPrompt
impl Clone for UserPrompt
Auto Trait Implementations§
impl Forget for UserPrompt
impl Freeze for UserPrompt
impl RefUnwindSafe for UserPrompt
impl Send for UserPrompt
impl Sync for UserPrompt
impl Unpin for UserPrompt
impl UnsafeUnpin for UserPrompt
impl UnwindSafe for UserPrompt
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