The result of a tool call. This is the counterpart of a {@link LanguageModelToolCallPart tool call} and it can only be included in the content of a User message
Constructor
new(callId:String, content:Array<EitherType<LanguageModelTextPart, LanguageModelPromptTsxPart>>)
Parameters:
callId | The ID of the tool call. |
---|---|
content | The content of the tool result. |
Variables
callId:String
The ID of the tool call.
*
* *Note* that this should match the {@link LanguageModelToolCallPart.callId callId} of a tool call part.
content:Array<EitherType<LanguageModelTextPart, LanguageModelPromptTsxPart>>
The value of the tool result.