buildToolUseMessage static method

ToolUseMessage buildToolUseMessage({
  1. required String thinkingMessageId,
  2. required String parentLlmMessageId,
  3. required String queryGroupId,
  4. 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,
  );
}