A result returned from a tool invocation. If using @vscode/prompt-tsx, this result may be rendered using a ToolResult.

Constructor

new(content:Array<EitherType<LanguageModelTextPart, LanguageModelPromptTsxPart>>)

Create a LanguageModelToolResult

Parameters:

content

A list of tool result content parts

Variables

content:Array<EitherType<LanguageModelTextPart, LanguageModelPromptTsxPart>>

A list of tool result content parts. Includes unknown becauses this list may be extended with new content types in the future. @link lm.invokeTool}.

See also:

  • {