> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-drtangible-wip-test-inline-tag.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ToolEndOptions

> TypeScript SDK reference

Defined in: [src/genai/tool.ts:25](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/genai/tool.ts#L25)

## Extends

* `SpanEndOptions`

## Properties

### endTime

> `optional` **endTime**: `TimeInput`

Defined in: [src/genai/spanBase.ts:31](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/genai/spanBase.ts#L31)

#### Inherited from

`SpanEndOptions.endTime`

***

### error

> `optional` **error**: `Error`

Defined in: [src/genai/spanBase.ts:30](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/genai/spanBase.ts#L30)

#### Inherited from

`SpanEndOptions.error`

***

### errorType

> `optional` **errorType**: `string`

Stable failure classification recorded on the `error.type` attribute.

Defined in: [src/genai/tool.ts:29](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/genai/tool.ts#L29)

***

### result

> `optional` **result**: [`JsonValue`](../type-aliases/jsonvalue)

A JSON value. Strings are recorded as-is; other values are serialized.

Defined in: [src/genai/tool.ts:27](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/genai/tool.ts#L27)
