Skip to main content

ToolCallResult

Defined in the eval module.
Rust AI Agent SDK Result of a tool call during evaluation.

Fields

NameTypeDescription
nameStringTool name
expectedboolWhether the call was expected
calledboolWhether the call was made
argumentsOption<serde_json::Value>Arguments used
resultOption<serde_json::Value>Result returned

Methods

new

fn new(name: impl Into<String>, expected: bool, called: bool) -> Self
Create a new tool call result. Parameters:
NameType
nameimpl Into&lt;String&gt;
expectedbool
calledbool

is_correct

fn is_correct(&self) -> bool
Check if correct (expected == called).

Source

View on GitHub

praisonai/src/eval/mod.rs at line 146