import type { AgentSessionTraceState, AgentTurnTraceState } from "#tracing/agent-trace-state.js"; import type { InstrumentationStepAttemptStartedEvent } from "#instrumentation/lifecycle.js"; type SpanAttributePrimitive = string | number | boolean; type SpanAttributeValue = SpanAttributePrimitive | SpanAttributePrimitive[]; export declare function agentActivationAttributes(input: { readonly agentName?: string; readonly frameworkVersion: string; readonly session?: AgentSessionTraceState; readonly sessionId: string; readonly turnId: string; readonly turn: AgentTurnTraceState; }): Record; export declare function agentChannelClassificationAttributes(session: AgentSessionTraceState | undefined, turn: AgentTurnTraceState, sessionId: string): { readonly "agent.channel.kind": string | undefined; readonly "agent.session.origin": string | undefined; }; export declare function agentStepAttributes(input: { readonly event: InstrumentationStepAttemptStartedEvent; readonly frameworkVersion: string; readonly session?: AgentSessionTraceState; readonly turn: AgentTurnTraceState; }): { "agent.channel.kind"?: string | undefined; "agent.session.origin"?: string | undefined; "agent.framework.name": string; "agent.framework.version": string; "agent.step.attempt": number; "agent.step.index": number; "agent.turn.id": string; "agent.name": string | undefined; "gen_ai.operation.name": string; }; export declare function agentPrincipalAttributes(turn: AgentTurnTraceState): Record; /** Flattens merged runtime context into AI SDK-compatible span attributes. */ export declare function runtimeContextAttributes(runtimeContext: Readonly> | undefined): Record; export {};