File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
packages/dd-trace/src/llmobs Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -352,10 +352,11 @@ class GenAiLLMObsPlugin extends LLMObsPlugin {
352352 // ============================================================================
353353
354354 _formatFunctionCallMessage ( parts , functionCalls , role ) {
355+ console . log ( 'formatFunctionCallMessage called!!!!!!!!!!' , functionCalls )
355356 const toolCalls = functionCalls . map ( part => ( {
356357 name : part . functionCall . name ,
357358 arguments : part . functionCall . args ,
358- toolId : part . functionCall . id ,
359+ toolId : part . functionCall . id || '' ,
359360 type : 'function_call'
360361 } ) )
361362
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ class LLMObsTagger {
380380 }
381381
382382 #tagConditionalString ( data , type , carrier , key ) {
383- if ( ! data ) return true
383+ if ( data == null ) return true
384384 if ( typeof data !== 'string' ) {
385385 this . #handleFailure( `"${ type } " must be a string.` )
386386 return false
You can’t perform that action at this time.
0 commit comments