mirror of
https://github.com/hanzoai/code.git
synced 2026-09-30 20:53:35 +00:00
capture toolName
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user