# Class LittleGhost::Content::ToolResult

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Content/ToolResult.html

Carries the model-facing result for one ToolUse. A successful result uses
`:success`; a caller-safe failure uses `:error`.

## Inheritance

`LittleGhost::Content::ToolResult < Data`

## Attributes

<a id="attribute-i-content"></a>
### `content` (R)

The content returned to the model.

<a id="attribute-i-status"></a>
### `status` (R)

Either `:success` or `:error`.

<a id="attribute-i-tool_use_id"></a>
### `tool_use_id` (R)

The ToolUse identifier this result answers.

## Class methods

<a id="method-c-new"></a>
### `.new`

```ruby
new(tool_use_id:, content:, status:) -> ToolResult
```

Requires a non-empty String-compatible `tool_use_id` and a `status` of
`:success` or `:error`.
