buildToolUseMessage static method
ToolUseMessage
buildToolUseMessage({
- required String thinkingMessageId,
- required String parentLlmMessageId,
- required String queryGroupId,
- required ToolUseThinkingData thinkingData,
Builds a ToolUseType.nativeToolsThinking payload for the synthetic sibling row.
Implementation
static ToolUseMessage buildToolUseMessage({
required String thinkingMessageId,
required String parentLlmMessageId,
required String queryGroupId,
required ToolUseThinkingData thinkingData,
}) {
return ToolUseMessage(
id: thinkingMessageId,
messageId: parentLlmMessageId,
assistantName: "",
type: ToolUseType.nativeToolsThinking,
toolName: "thinking",
queryGroupId: queryGroupId,
toolMessage: thinkingData.subject,
thinkingData: thinkingData,
);
}