Configuration object for LLM attributes
OptionalinputMessages?: Message[]Input messages sent to the LLM
OptionalinvocationParameters?: Record<string, unknown>Parameters used for the LLM invocation
OptionalmodelName?: stringThe name of the LLM model
OptionaloutputMessages?: Message[]Output messages received from the LLM
Optionalprovider?: stringThe LLM provider (e.g., "openai", "anthropic")
OptionalrequestModelName?: stringThe model requested by the caller, as sent in the request. When modelName is omitted, llm.model_name is mirrored from responseModelName ?? requestModelName
OptionalresponseModelName?: stringThe model that actually generated the response, as reported by the provider
Optionalsystem?: stringThe LLM system type
OptionaltokenCount?: TokenCountToken usage information
Optionaltools?: Tool[]Tools available to the LLM
OpenTelemetry attributes for LLM operations
Generates attributes for LLM operations.
Creates comprehensive OpenTelemetry attributes for LLM interactions including provider, model, messages, token counts, and tools.