constructor<
TStructure extends MessageStructure<MessageToolSet> = MessageStructure<MessageToolSet>
>(
fields: InferToolOutputs<TStructure> extends TOutput [TOutput] extends [never] string | ContentBlock | Text[] : [unknown] extends [TOutput] string | ContentBlock | Text[] : string | TOutput | ContentBlock | Text[] : string | ContentBlock | Text[] | ToolMessageFields<MessageStructure<MessageToolSet>>,
tool_call_id: string,
name: string
): ToolMessage<TStructure>| Name | Type | Description |
|---|---|---|
fields* | $InferToolOutputs<TStructure> extends TOutput ? [TOutput] extends [never] ? string | ContentBlock | Text[] : [unknown] extends [TOutput] ? string | ContentBlock | Text[] : string | TOutput | ContentBlock | Text[] : string | ContentBlock | Text[] | ToolMessageFields<MessageStructure<MessageToolSet>> | |
tool_call_id* | string | |
name | string |