kernl

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

PropertyModifierTypeDescriptionInherited fromDefined in
callIdpublicstringThe ID of the tool call that this result is associated with.-packages/protocol/src/language-model/item.ts:230
errorpublicstring | nullError message if the tool call failed-packages/protocol/src/language-model/item.ts:250
id?publicstringA unique identifier for the item. Optional by default.LanguageModelItemBase.idpackages/protocol/src/language-model/item.ts:37
kindreadonly"tool.result"--packages/protocol/src/language-model/item.ts:225
providerMetadata?publicSharedProviderMetadataOptional provider-specific metadata for the text part.LanguageModelItemBase.providerMetadatapackages/protocol/src/language-model/item.ts:27
resultpublicJSONValueResult of the tool call. This is a JSON-serializable object.-packages/protocol/src/language-model/item.ts:245
statepublicToolCallStateThe state of the tool call.-packages/protocol/src/language-model/item.ts:240
toolIdpublicstringName of the tool that generated this result.-packages/protocol/src/language-model/item.ts:235

On this page