File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/core/src/tracing/langchain Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
1010 GEN_AI_TOOL_NAME_ATTRIBUTE ,
1111 GEN_AI_TOOL_OUTPUT_ATTRIBUTE ,
1212} from '../ai/gen-ai-attributes' ;
13- import { resolveAIRecordingOptions } from '../ai/utils' ;
13+ import { resolveAIRecordingOptions , shouldEnableTruncation } from '../ai/utils' ;
1414import { LANGCHAIN_ORIGIN } from './constants' ;
1515import type {
1616 LangChainCallbackHandler ,
@@ -34,7 +34,7 @@ import {
3434 */
3535export function createLangChainCallbackHandler ( options : LangChainOptions = { } ) : LangChainCallbackHandler {
3636 const { recordInputs, recordOutputs } = resolveAIRecordingOptions ( options ) ;
37- const enableTruncation = options . enableTruncation ?? true ;
37+ const enableTruncation = shouldEnableTruncation ( options . enableTruncation ) ;
3838
3939 // Internal state - single instance tracks all spans
4040 const spanMap = new Map < string , Span > ( ) ;
You can’t perform that action at this time.
0 commit comments