pub struct QuestionToolValue {
pub tool_type: ToolType,
pub timeout: Option<i32>,
}Expand description
QuestionToolValue : Built-in tool the AI calls as ask_question: the agent stops, releasing its worker, until someone answers from the flow’s run page or chat or the question times out, then resumes with the answer as the tool result.
Fields§
§tool_type: ToolType§timeout: Option<i32>Seconds to wait for an answer before the question is reported to the AI as timed out. Defaults to 1800.
Implementations§
Source§impl QuestionToolValue
impl QuestionToolValue
Sourcepub fn new(tool_type: ToolType) -> QuestionToolValue
pub fn new(tool_type: ToolType) -> QuestionToolValue
Built-in tool the AI calls as ask_question: the agent stops, releasing its worker, until someone answers from the flow’s run page or chat or the question times out, then resumes with the answer as the tool result.
Trait Implementations§
Source§impl Clone for QuestionToolValue
impl Clone for QuestionToolValue
Source§impl Debug for QuestionToolValue
impl Debug for QuestionToolValue
Source§impl Default for QuestionToolValue
impl Default for QuestionToolValue
Source§impl<'de> Deserialize<'de> for QuestionToolValue
impl<'de> Deserialize<'de> for QuestionToolValue
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
Source§impl PartialEq for QuestionToolValue
impl PartialEq for QuestionToolValue
Source§impl Serialize for QuestionToolValue
impl Serialize for QuestionToolValue
impl StructuralPartialEq for QuestionToolValue
Auto Trait Implementations§
impl Forget for QuestionToolValue
impl Freeze for QuestionToolValue
impl RefUnwindSafe for QuestionToolValue
impl Send for QuestionToolValue
impl Sync for QuestionToolValue
impl Unpin for QuestionToolValue
impl UnsafeUnpin for QuestionToolValue
impl UnwindSafe for QuestionToolValue
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