Interface: ToolResult
Defined in: packages/protocol/src/language-model/item.ts:224
Result of a tool call that has been executed by the provider.
Extends
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
callId | public | string | The ID of the tool call that this result is associated with. | - | packages/protocol/src/language-model/item.ts:230 |
error | public | string | null | Error message if the tool call failed | - | packages/protocol/src/language-model/item.ts:250 |
id? | public | string | A unique identifier for the item. Optional by default. | LanguageModelItemBase.id | packages/protocol/src/language-model/item.ts:37 |
kind | readonly | "tool.result" | - | - | packages/protocol/src/language-model/item.ts:225 |
providerMetadata? | public | SharedProviderMetadata | Optional provider-specific metadata for the text part. | LanguageModelItemBase.providerMetadata | packages/protocol/src/language-model/item.ts:27 |
result | public | JSONValue | Result of the tool call. This is a JSON-serializable object. | - | packages/protocol/src/language-model/item.ts:245 |
state | public | ToolCallState | The state of the tool call. | - | packages/protocol/src/language-model/item.ts:240 |
toolId | public | string | Name of the tool that generated this result. | - | packages/protocol/src/language-model/item.ts:235 |