UNPKG

@azure/monitor-opentelemetry

Version:
43 lines 1.52 kB
/** * Attribute name constants and mapping tables for GenAI main agent * attribution. * * @internal */ export declare const GEN_AI_OPERATION_NAME = "gen_ai.operation.name"; export declare const GEN_AI_OPERATION_INVOKE_AGENT = "invoke_agent"; export declare const MAIN_AGENT_NAME = "microsoft.gen_ai.main_agent.name"; export declare const MAIN_AGENT_ID = "microsoft.gen_ai.main_agent.id"; export declare const MAIN_AGENT_VERSION = "microsoft.gen_ai.main_agent.version"; export declare const MAIN_AGENT_CONVERSATION_ID = "microsoft.gen_ai.main_agent.conversation_id"; /** * The fixed set of `microsoft.gen_ai.main_agent.*` attribute keys defined by * the spec. Used to copy/check just these keys instead of scanning the full * attribute map. * * @internal */ export declare const MAIN_AGENT_TARGET_ATTRIBUTES: readonly string[]; /** * Mapping used by SpanProcessor.OnStart: copy primary attribute from the * parent span if present, otherwise copy the fallback attribute. * * @internal */ export declare const MAIN_AGENT_ONSTART_MAPPING: ReadonlyArray<{ target: string; primary: string; fallback: string; }>; /** * Mapping used by SpanProcessor.OnEnd for `invoke_agent` spans that do not * already carry any `microsoft.gen_ai.main_agent.*` attribute: copy the * source attribute from the span onto the corresponding target. * * @internal */ export declare const MAIN_AGENT_ONEND_MAPPING: ReadonlyArray<{ target: string; source: string; }>; //# sourceMappingURL=genaiAttributes.d.ts.map