> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Tool Call Result • Rust AI Agent SDK

> ToolCallResult: Result of a tool call during evaluation.

# ToolCallResult

> Defined in the [**eval**](../modules/eval) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

Result of a tool call during evaluation.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph LR
    agent["Agent"] -- "uses" --> tool["Tool: ToolCallResult"]
    tool -- "returns" --> result["Result"]
    style tool fill:#189AB4,color:#fff
    style agent fill:#8B0000,color:#fff
    style result fill:#8B0000,color:#fff
```

## Fields

| Name        | Type                              | Description                   |
| ----------- | --------------------------------- | ----------------------------- |
| `name`      | `String`                          | Tool name                     |
| `expected`  | `bool`                            | Whether the call was expected |
| `called`    | `bool`                            | Whether the call was made     |
| `arguments` | `Option&lt;serde_json::Value&gt;` | Arguments used                |
| `result`    | `Option&lt;serde_json::Value&gt;` | Result returned               |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn new(name: impl Into<String>, expected: bool, called: bool) -> Self
```

Create a new tool call result.

**Parameters:**

| Name       | Type                      |
| ---------- | ------------------------- |
| `name`     | `impl Into&lt;String&gt;` |
| `expected` | `bool`                    |
| `called`   | `bool`                    |

### `is_correct`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn is_correct(&self) -> bool
```

Check if correct (expected == called).

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/eval/mod.rs#L146">
  `praisonai/src/eval/mod.rs` at line 146
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Tools" icon="wrench" href="/docs/rust/tools" />

  <Card title="Rust Code Execution" icon="terminal" href="/docs/rust/code-execution" />

  <Card title="Rust Web Search" icon="search" href="/docs/rust/web-search" />
</CardGroup>
