/** * OpenTelemetry Semantic Convention Attributes * * Constants following the official OpenTelemetry gen_ai semantic conventions * for LLM observability, plus agent-specific attributes. * * @see https://opentelemetry.io/docs/specs/semconv/gen-ai/ */ /** * gen_ai.* semantic convention attributes for LLM operations */ export declare const GenAIAttributes: { /** The AI system (e.g. 'anthropic', 'openai', 'google') */ readonly SYSTEM: "gen_ai.system"; /** The operation name (e.g. 'chat') */ readonly OPERATION_NAME: "gen_ai.operation.name"; /** The model requested */ readonly REQUEST_MODEL: "gen_ai.request.model"; /** Max tokens requested */ readonly REQUEST_MAX_TOKENS: "gen_ai.request.max_tokens"; /** Temperature requested */ readonly REQUEST_TEMPERATURE: "gen_ai.request.temperature"; /** The model actually used in the response */ readonly RESPONSE_MODEL: "gen_ai.response.model"; /** Finish reasons (e.g. ['stop'], ['tool_calls']) */ readonly RESPONSE_FINISH_REASON: "gen_ai.response.finish_reasons"; /** Input token count */ readonly USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens"; /** Output token count */ readonly USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens"; }; /** * Agent-specific attributes for iteration and tool tracking */ export declare const AgentAttributes: { /** Session ID for the agent run */ readonly SESSION_ID: "agent.session_id"; /** Current iteration number (1-indexed) */ readonly ITERATION_NUMBER: "agent.iteration.number"; /** Maximum allowed iterations */ readonly ITERATION_MAX: "agent.iteration.max"; /** Tool name being executed */ readonly TOOL_NAME: "agent.tool.name"; /** Whether the tool executed successfully */ readonly TOOL_SUCCESS: "agent.tool.success"; /** Tool execution duration in milliseconds */ readonly TOOL_DURATION_MS: "agent.tool.duration_ms"; /** Number of tool calls in the iteration */ readonly TOOL_CALL_COUNT: "agent.tool_call_count"; /** Number of messages in the conversation */ readonly MESSAGE_COUNT: "agent.message_count"; /** Whether the iteration completed with text (no tool calls) */ readonly COMPLETED_WITH_TEXT: "agent.completed_with_text"; }; /** * Maps provider names (as used in the agents library) to gen_ai.system values * following OpenTelemetry semantic conventions. */ export declare const PROVIDER_TO_SYSTEM: Record;