# Class LittleGhost::Tool::Result

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Tool/Result.html

Returns a Ruby value together with files or media produced by a Tool. Tools
without artifacts should return their Ruby value directly.

## Inheritance

`LittleGhost::Tool::Result < Data`

## Attributes

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

The frozen Array of Artifact objects produced by the Tool.

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

The ordinary Ruby value returned to application callers and code mode.

## Class methods

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

```ruby
new(value:, artifacts: []) -> Result
```

Creates a result from the Ruby `value` and an Array of Artifact objects.
