import { Agent } from '../agent'; import { Handoff } from '../handoff'; import { ModelTracing } from '../model'; import { Tool } from '../tool'; import { createAgentSpan } from '../tracing'; import { Span } from '../tracing/spans'; import { Trace } from '../tracing/traces'; export type TraceOverrideConfig = { traceId?: string; workflowName?: string; groupId?: string; traceMetadata?: Record; tracingApiKey?: string; }; type EnsureAgentSpanParams = { agent: Agent; handoffs: Handoff[]; tools: Tool[]; currentSpan?: ReturnType; }; /** * Normalizes tracing configuration into the format expected by model providers. * Returns `false` to disable tracing, `true` to include full payload data, or * `'enabled_without_data'` to omit sensitive content while still emitting spans. */ export declare function getTracing(tracingDisabled: boolean, traceIncludeSensitiveData: boolean): ModelTracing; export declare function applyTraceOverrides(trace: Trace, currentSpan: Span | undefined, overrides: TraceOverrideConfig): { trace: Trace; currentSpan: Span | undefined; }; /** * Ensures an agent span exists and updates tool metadata if already present. * Returns the span so callers can pass it through run state. */ export declare function ensureAgentSpan(params: EnsureAgentSpanParams): Span; export {};