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")
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.