pub struct ToolIntent {
pub intent: String,
pub tool_name: Option<String>,
}Expand description
Expected semantic tool intent used by the tool-parameter semantic evaluator.
When tool_name is Some, only tool calls whose name matches are judged;
other calls are skipped (not Pass, not Fail).
Fields§
§intent: StringNatural-language description of what the tool call should accomplish.
tool_name: Option<String>When Some, restrict judging to tool calls with this exact name.
Trait Implementations§
Source§impl Clone for ToolIntent
impl Clone for ToolIntent
Source§fn clone(&self) -> ToolIntent
fn clone(&self) -> ToolIntent
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolIntent
impl Debug for ToolIntent
Source§impl<'de> Deserialize<'de> for ToolIntent
impl<'de> Deserialize<'de> for ToolIntent
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 ToolIntent
impl RefUnwindSafe for ToolIntent
impl Send for ToolIntent
impl Sync for ToolIntent
impl Unpin for ToolIntent
impl UnsafeUnpin for ToolIntent
impl UnwindSafe for ToolIntent
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