import type { HostToolSet } from "./host-tools.js"; import type { ToolExecutionContext } from "./types.js"; /** Public API contract for host tool trace runner. */ export type HostToolTraceRunner = (spanName: string, operation: () => TResult) => TResult; /** Public API contract for host tool trace attributes. */ export type HostToolTraceAttributes = Record; /** Input payload for host tool trace attribute. */ export type HostToolTraceAttributeInput = { toolName: string; toolCallId: string | undefined; context: ToolExecutionContext | undefined; }; /** Options accepted by trace host tools. */ export type TraceHostToolsOptions = { trace: HostToolTraceRunner; buildAttributes?: (input: HostToolTraceAttributeInput) => TAttributes | undefined; setAttributes?: (attributes: TAttributes) => void; getSpanName?: (toolName: string) => string; }; /** Wrap host tools with tracing metadata. */ export declare function traceHostTools(tools: HostToolSet, options: TraceHostToolsOptions): HostToolSet; //# sourceMappingURL=tracing.d.ts.map