capture toolName

This commit is contained in:
Andrew Pareles
2025-04-29 00:20:13 -07:00
parent 2ff5c78999
commit b5aaf41c86
@@ -74,9 +74,9 @@ export const sendLLMMessage = async ({
}
const onFinalMessage: OnFinalMessage = (params) => {
const { fullText, fullReasoning } = params
const { fullText, fullReasoning, toolCall } = params
if (_didAbort) return
captureLLMEvent(`${loggingName} - Received Full Message`, { messageLength: fullText.length, reasoningLength: fullReasoning?.length, duration: new Date().getMilliseconds() - submit_time.getMilliseconds() })
captureLLMEvent(`${loggingName} - Received Full Message`, { messageLength: fullText.length, reasoningLength: fullReasoning?.length, duration: new Date().getMilliseconds() - submit_time.getMilliseconds(), toolCallName: toolCall?.name })
onFinalMessage_(params)
}