Tool Call Result • Rust AI Agent SDK

ToolCallResult: Result of a tool call during evaluation.

ToolCallResult

Defined in the eval module.

Rust AI Agent SDK

Result of a tool call during evaluation.

Diagram

uses

returns

Agent

Tool: ToolCallResult

Result

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

rust
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

rust
fn is_correct(&self) -> bool

Check if correct (expected == called).

Source

View on GitHub

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


Related Documentation