Files
klz-cables.com/.pnpm-store/v10/files/73/bd2523ac2b2630504edf5577a3623e1c288f471f2d9524a89855559dff6f10adeda4ffe5e8cdc37616a7a34c1daf9fec54235ce4649541ad94bcea856138ad
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

31 lines
1.2 KiB
Plaintext

import type { Span } from '../../types-hoist/span';
import type { LangChainMessage } from '../langchain/types';
import type { CompiledGraph } from './types';
/**
* Extract tool calls from messages
*/
export declare function extractToolCalls(messages: Array<Record<string, unknown>> | null): unknown[] | null;
/**
* Extract token usage from a message's usage_metadata or response_metadata
* Returns token counts without setting span attributes
*/
export declare function extractTokenUsageFromMessage(message: LangChainMessage): {
inputTokens: number;
outputTokens: number;
totalTokens: number;
};
/**
* Extract model and finish reason from a message's response_metadata
*/
export declare function extractModelMetadata(span: Span, message: LangChainMessage): void;
/**
* Extract tools from compiled graph structure
*
* Tools are stored in: compiledGraph.builder.nodes.tools.runnable.tools
*/
export declare function extractToolsFromCompiledGraph(compiledGraph: CompiledGraph): unknown[] | null;
/**
* Set response attributes on the span
*/
export declare function setResponseAttributes(span: Span, inputMessages: LangChainMessage[] | null, result: unknown): void;
//# sourceMappingURL=utils.d.ts.map