import { ChainValues, LLMResult } from "../../schema/index.js"; import { BaseTracer, RunType, Run } from "./tracer.js"; export interface BaseRunV1 { uuid: string; parent_uuid?: string; start_time: number; end_time?: number; execution_order: number; child_execution_order: number; serialized: { name: string; }; session_id: number; error?: string; type: RunType; } export interface LLMRun extends BaseRunV1 { prompts: string[]; response?: LLMResult; } export interface ChainRun extends BaseRunV1 { inputs: ChainValues; outputs?: ChainValues; child_llm_runs: LLMRun[]; child_chain_runs: ChainRun[]; child_tool_runs: ToolRun[]; } export interface ToolRun extends BaseRunV1 { tool_input: string; output?: string; action: string; child_llm_runs: LLMRun[]; child_chain_runs: ChainRun[]; child_tool_runs: ToolRun[]; } export interface BaseTracerSession { start_time: number; name?: string; } export type TracerSessionCreate = BaseTracerSession; export interface TracerSessionV1 extends BaseTracerSession { id: number; } export declare class LangChainTracerV1 extends BaseTracer { name: string; protected endpoint: string; protected headers: Record; protected session: TracerSessionV1; constructor(); newSession(sessionName?: string): Promise; loadSession(sessionName: string): Promise; loadDefaultSession(): Promise; protected convertV2RunToRun(run: Run): Promise; protected persistRun(run: Run | LLMRun | ChainRun | ToolRun): Promise; protected persistSession(sessionCreate: BaseTracerSession): Promise; protected _handleSessionResponse(endpoint: string): Promise; }