EdgeAIG/opencode / .opencode /node_modules /@ai-sdk /provider /src /language-model /v2 /language-model-v2-tool-result.ts
| import { SharedV2ProviderMetadata } from '../../shared/v2/shared-v2-provider-metadata'; | |
| /** | |
| * Result of a tool call that has been executed by the provider. | |
| */ | |
| export type LanguageModelV2ToolResult = { | |
| type: 'tool-result'; | |
| /** | |
| * The ID of the tool call that this result is associated with. | |
| */ | |
| toolCallId: string; | |
| /** | |
| * Name of the tool that generated this result. | |
| */ | |
| toolName: string; | |
| /** | |
| * Result of the tool call. This is a JSON-serializable object. | |
| */ | |
| result: unknown; | |
| /** | |
| * Optional flag if the result is an error or an error message. | |
| */ | |
| isError?: boolean; | |
| /** | |
| * Whether the tool result was generated by the provider. | |
| * If this flag is set to true, the tool result was generated by the provider. | |
| * If this flag is not set or is false, the tool result was generated by the client. | |
| */ | |
| providerExecuted?: boolean; | |
| /** | |
| * Additional provider-specific metadata for the tool result. | |
| */ | |
| providerMetadata?: SharedV2ProviderMetadata; | |
| }; | |
Xet Storage Details
- Size:
- 1.01 kB
- Xet hash:
- 15561f200f9a9e28b70d2028b4bc773ff6d1e243414041c0724dff4df0ce23ad
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.