pub struct SubtaskOutputWithIntent {
pub output: SubtaskOutput,
pub tool_intent: Option<ToolIntent>,
pub awaiting_tool_result: bool,
}Expand description
Extended subtask output that may include tool intent
When a microagent needs to use a tool, it outputs this structure with both the regular output and the tool intent.
Fields§
§output: SubtaskOutputBase subtask output (the regular output)
tool_intent: Option<ToolIntent>Optional tool intent (if the subtask needs a tool)
awaiting_tool_result: boolWhether the output is complete or waiting for tool result
Implementations§
Source§impl SubtaskOutputWithIntent
impl SubtaskOutputWithIntent
Sourcepub fn from_output(output: SubtaskOutput) -> Self
pub fn from_output(output: SubtaskOutput) -> Self
Create from a regular subtask output (no tool intent)
Sourcepub fn with_tool_intent(output: SubtaskOutput, intent: ToolIntent) -> Self
pub fn with_tool_intent(output: SubtaskOutput, intent: ToolIntent) -> Self
Create with a tool intent
Sourcepub fn has_tool_intent(&self) -> bool
pub fn has_tool_intent(&self) -> bool
Check if this output has a pending tool intent
Sourcepub fn mark_tool_complete(self) -> Self
pub fn mark_tool_complete(self) -> Self
Mark the tool result as received
Trait Implementations§
Source§impl Clone for SubtaskOutputWithIntent
impl Clone for SubtaskOutputWithIntent
Source§fn clone(&self) -> SubtaskOutputWithIntent
fn clone(&self) -> SubtaskOutputWithIntent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubtaskOutputWithIntent
impl Debug for SubtaskOutputWithIntent
Source§impl<'de> Deserialize<'de> for SubtaskOutputWithIntent
impl<'de> Deserialize<'de> for SubtaskOutputWithIntent
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
Auto Trait Implementations§
impl Freeze for SubtaskOutputWithIntent
impl RefUnwindSafe for SubtaskOutputWithIntent
impl Send for SubtaskOutputWithIntent
impl Sync for SubtaskOutputWithIntent
impl Unpin for SubtaskOutputWithIntent
impl UnsafeUnpin for SubtaskOutputWithIntent
impl UnwindSafe for SubtaskOutputWithIntent
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