Class OpenInference

OpenInference class containing attribute constants for OpenTelemetry OpenInference. These attribute names are defined as per the OpenInference specification:

Constructors

Properties

ATTR_DOCUMENT_CONTENT: "document.content" = 'document.content'
ATTR_DOCUMENT_ID: "document.id" = 'document.id'
ATTR_DOCUMENT_METADATA: "document.metadata" = 'document.metadata'
ATTR_DOCUMENT_SCORE: "document.score" = 'document.score'
ATTR_EMBEDDING_EMBEDDINGS: "embedding.embeddings" = 'embedding.embeddings'
ATTR_EMBEDDING_MODEL_NAME: "embedding.model_name" = 'embedding.model_name'
ATTR_EMBEDDING_TEXT: "embedding.text" = 'embedding.text'
ATTR_EMBEDDING_VECTOR: "embedding.vector" = 'embedding.vector'
ATTR_EXCEPTION_ESCAPED: "exception.escaped" = 'exception.escaped'
ATTR_EXCEPTION_MESSAGE: "exception.message" = 'exception.message'
ATTR_EXCEPTION_STACKTRACE: "exception.stacktrace" = 'exception.stacktrace'
ATTR_EXCEPTION_TYPE: "exception.type" = 'exception.type'
ATTR_IMAGE_URL: "image.url" = 'image.url'
ATTR_INPUT_MIME_TYPE: "input.mime_type" = 'input.mime_type'
ATTR_INPUT_VALUE: "input.value" = 'input.value'
ATTR_LLM_FUNCTION_CALL: "llm.function_call" = 'llm.function_call'
ATTR_LLM_INPUT_MESSAGES: "llm.input_messages" = 'llm.input_messages'
ATTR_LLM_INVOCATION_PARAMETERS: "llm.invocation_parameters" = 'llm.invocation_parameters'
ATTR_LLM_MODEL_NAME: "llm.model_name" = 'llm.model_name'
ATTR_LLM_OUTPUT_MESSAGES: "llm.output_messages" = 'llm.output_messages'
ATTR_LLM_PROMPT_TEMPLATE_TEMPLATE: "llm.prompt_template.template" = 'llm.prompt_template.template'
ATTR_LLM_PROMPT_TEMPLATE_VARIABLES: "llm.prompt_template.variables" = 'llm.prompt_template.variables'
ATTR_LLM_PROMPT_TEMPLATE_VERSION: "llm.prompt_template.version" = 'llm.prompt_template.version'
ATTR_LLM_TOKEN_COUNT_COMPLETION: "llm.token_count.completion" = 'llm.token_count.completion'
ATTR_LLM_TOKEN_COUNT_PROMPT: "llm.token_count.prompt" = 'llm.token_count.prompt'
ATTR_LLM_TOKEN_COUNT_TOTAL: "llm.token_count.total" = 'llm.token_count.total'
ATTR_LLM_TOOLS: "llm.tools" = 'llm.tools'
ATTR_MESSAGE_CONTENT: "message.content" = 'message.content'
ATTR_MESSAGE_CONTENT_IMAGE: "messagecontent.image" = 'messagecontent.image'
ATTR_MESSAGE_CONTENT_TEXT: "messagecontent.text" = 'messagecontent.text'
ATTR_MESSAGE_CONTENT_TYPE: "messagecontent.type" = 'messagecontent.type'
ATTR_MESSAGE_CONTENTS: "message.contents" = 'message.contents'
ATTR_MESSAGE_FUNCTION_CALL_ARGUMENTS_JSON: "message.function_call_arguments_json" = 'message.function_call_arguments_json'
ATTR_MESSAGE_FUNCTION_CALL_NAME: "message.function_call_name" = 'message.function_call_name'
ATTR_MESSAGE_ROLE: "message.role" = 'message.role'
ATTR_MESSAGE_TOOL_CALLS: "message.tool_calls" = 'message.tool_calls'
ATTR_METADATA: "metadata" = 'metadata'
ATTR_OUTPUT_MIME_TYPE: "output.mime_type" = 'output.mime_type'
ATTR_OUTPUT_VALUE: "output.value" = 'output.value'
ATTR_RERANKER_INPUT_DOCUMENTS: "reranker.input_documents" = 'reranker.input_documents'
ATTR_RERANKER_MODEL_NAME: "reranker.model_name" = 'reranker.model_name'
ATTR_RERANKER_OUTPUT_DOCUMENTS: "reranker.output_documents" = 'reranker.output_documents'
ATTR_RERANKER_QUERY: "reranker.query" = 'reranker.query'
ATTR_RERANKER_TOP_K: "reranker.top_k" = 'reranker.top_k'
ATTR_RETRIEVAL_DOCUMENTS: "retrieval.documents" = 'retrieval.documents'
ATTR_SESSION_ID: "session.id" = 'session.id'
ATTR_SPAN_KIND: "openinference.span.kind" = 'openinference.span.kind'
ATTR_TAG_TAGS: "tag.tags" = 'tag.tags'
ATTR_TOOL_CALL_FUNCTION_ARGUMENTS: "tool_call.function.arguments" = 'tool_call.function.arguments'
ATTR_TOOL_CALL_FUNCTION_NAME: "tool_call.function.name" = 'tool_call.function.name'
ATTR_TOOL_DESCRIPTION: "tool.description" = 'tool.description'
ATTR_TOOL_JSON_SCHEMA: "tool.json_schema" = 'tool.json_schema'
ATTR_TOOL_NAME: "tool.name" = 'tool.name'
ATTR_TOOL_PARAMETERS: "tool.parameters" = 'tool.parameters'
ATTR_USER_ID: "user.id" = 'user.id'