🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@arizeai/openinference-semantic-conventions

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arizeai/openinference-semantic-conventions - npm Package Compare versions

Comparing version

to
1.0.0

dist/esm/package.json

4

dist/esm/index.d.ts

@@ -1,3 +0,3 @@

export * from "./trace";
export * from "./resource";
export * from "./trace/index.js";
export * from "./resource/index.js";
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

export * from "./trace";
export * from "./resource";
export * from "./trace/index.js";
export * from "./resource/index.js";
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

export * from "./SemanticResourceAttributes";
export * from "./SemanticResourceAttributes.js";
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

export * from "./SemanticResourceAttributes";
export * from "./SemanticResourceAttributes.js";
//# sourceMappingURL=index.js.map

@@ -1,6 +0,6 @@

var PROJECT_NAME = "openinference.project.name";
const PROJECT_NAME = "openinference.project.name";
/**
* The project name to group traces under for openinference compatible services
*/
export var SEMRESATTRS_PROJECT_NAME = PROJECT_NAME;
export const SEMRESATTRS_PROJECT_NAME = PROJECT_NAME;
//# sourceMappingURL=SemanticResourceAttributes.js.map

@@ -1,2 +0,2 @@

export * from "./SemanticConventions";
export * from "./SemanticConventions.js";
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

export * from "./SemanticConventions";
export * from "./SemanticConventions.js";
//# sourceMappingURL=index.js.map
/**
* Semantic conventions for OpenInference tracing
*/
export var SemanticAttributePrefixes = {
export const SemanticAttributePrefixes = {
input: "input",

@@ -25,3 +25,3 @@ output: "output",

};
export var LLMAttributePostfixes = {
export const LLMAttributePostfixes = {
provider: "provider",

@@ -39,10 +39,10 @@ system: "system",

};
export var LLMPromptTemplateAttributePostfixes = {
export const LLMPromptTemplateAttributePostfixes = {
variables: "variables",
template: "template",
};
export var RetrievalAttributePostfixes = {
export const RetrievalAttributePostfixes = {
documents: "documents",
};
export var RerankerAttributePostfixes = {
export const RerankerAttributePostfixes = {
input_documents: "input_documents",

@@ -54,3 +54,3 @@ output_documents: "output_documents",

};
export var EmbeddingAttributePostfixes = {
export const EmbeddingAttributePostfixes = {
embeddings: "embeddings",

@@ -61,3 +61,3 @@ text: "text",

};
export var ToolAttributePostfixes = {
export const ToolAttributePostfixes = {
name: "name",

@@ -68,3 +68,3 @@ description: "description",

};
export var MessageAttributePostfixes = {
export const MessageAttributePostfixes = {
role: "role",

@@ -79,3 +79,3 @@ content: "content",

};
export var MessageContentsAttributePostfixes = {
export const MessageContentsAttributePostfixes = {
type: "type",

@@ -85,6 +85,6 @@ text: "text",

};
export var ImageAttributesPostfixes = {
export const ImageAttributesPostfixes = {
url: "url",
};
export var ToolCallAttributePostfixes = {
export const ToolCallAttributePostfixes = {
function_name: "function.name",

@@ -94,3 +94,3 @@ function_arguments_json: "function.arguments",

};
export var DocumentAttributePostfixes = {
export const DocumentAttributePostfixes = {
id: "id",

@@ -101,12 +101,12 @@ content: "content",

};
export var TagAttributePostfixes = {
export const TagAttributePostfixes = {
tags: "tags",
};
export var SessionAttributePostfixes = {
export const SessionAttributePostfixes = {
id: "id",
};
export var UserAttributePostfixes = {
export const UserAttributePostfixes = {
id: "id",
};
export var AudioAttributesPostfixes = {
export const AudioAttributesPostfixes = {
url: "url",

@@ -119,9 +119,9 @@ mime_type: "mime_type",

*/
export var INPUT_VALUE = "".concat(SemanticAttributePrefixes.input, ".value");
export var INPUT_MIME_TYPE = "".concat(SemanticAttributePrefixes.input, ".mime_type");
export const INPUT_VALUE = `${SemanticAttributePrefixes.input}.value`;
export const INPUT_MIME_TYPE = `${SemanticAttributePrefixes.input}.mime_type`;
/**
* The output of any span
*/
export var OUTPUT_VALUE = "".concat(SemanticAttributePrefixes.output, ".value");
export var OUTPUT_MIME_TYPE = "".concat(SemanticAttributePrefixes.output, ".mime_type");
export const OUTPUT_VALUE = `${SemanticAttributePrefixes.output}.value`;
export const OUTPUT_MIME_TYPE = `${SemanticAttributePrefixes.output}.mime_type`;
/**

@@ -132,3 +132,3 @@ * The messages sent to the LLM for completions

*/
export var LLM_INPUT_MESSAGES = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.input_messages);
export const LLM_INPUT_MESSAGES = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.input_messages}`;
/**

@@ -139,7 +139,7 @@ * The prompts sent to the LLM for completions

*/
export var LLM_PROMPTS = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.prompts);
export const LLM_PROMPTS = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.prompts}`;
/**
* The JSON representation of the parameters passed to the LLM
*/
export var LLM_INVOCATION_PARAMETERS = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.invocation_parameters);
export const LLM_INVOCATION_PARAMETERS = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.invocation_parameters}`;
/**

@@ -150,21 +150,21 @@ * The messages received from the LLM for completions

*/
export var LLM_OUTPUT_MESSAGES = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.output_messages);
export const LLM_OUTPUT_MESSAGES = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.output_messages}`;
/**
* The name of the LLM model
*/
export var LLM_MODEL_NAME = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.model_name);
export const LLM_MODEL_NAME = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.model_name}`;
/**
* The provider of the inferences. E.g. the cloud provider
*/
export var LLM_PROVIDER = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.provider);
export const LLM_PROVIDER = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.provider}`;
/**
* The AI product as identified by the client or server
*/
export var LLM_SYSTEM = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.system);
export const LLM_SYSTEM = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.system}`;
/** Token count for the completion by the llm */
export var LLM_TOKEN_COUNT_COMPLETION = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.token_count, ".completion");
export const LLM_TOKEN_COUNT_COMPLETION = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.token_count}.completion`;
/** Token count for the prompt to the llm */
export var LLM_TOKEN_COUNT_PROMPT = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.token_count, ".prompt");
export const LLM_TOKEN_COUNT_PROMPT = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.token_count}.prompt`;
/** Token count for the entire transaction with the llm */
export var LLM_TOKEN_COUNT_TOTAL = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.token_count, ".total");
export const LLM_TOKEN_COUNT_TOTAL = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.token_count}.total`;
/**

@@ -174,3 +174,3 @@ * The role that the LLM assumes the message is from

*/
export var MESSAGE_ROLE = "".concat(SemanticAttributePrefixes.message, ".").concat(MessageAttributePostfixes.role);
export const MESSAGE_ROLE = `${SemanticAttributePrefixes.message}.${MessageAttributePostfixes.role}`;
/**

@@ -181,35 +181,35 @@ * The name of the message. This is only used for role 'function' where the name

*/
export var MESSAGE_NAME = "".concat(SemanticAttributePrefixes.message, ".").concat(MessageAttributePostfixes.name);
export const MESSAGE_NAME = `${SemanticAttributePrefixes.message}.${MessageAttributePostfixes.name}`;
/**
* The tool calls generated by the model, such as function calls.
*/
export var MESSAGE_TOOL_CALLS = "".concat(SemanticAttributePrefixes.message, ".").concat(MessageAttributePostfixes.tool_calls);
export const MESSAGE_TOOL_CALLS = `${SemanticAttributePrefixes.message}.${MessageAttributePostfixes.tool_calls}`;
/**
* The id of the tool call on a "tool" role message
*/
export var MESSAGE_TOOL_CALL_ID = "".concat(SemanticAttributePrefixes.message, ".").concat(MessageAttributePostfixes.tool_call_id);
export const MESSAGE_TOOL_CALL_ID = `${SemanticAttributePrefixes.message}.${MessageAttributePostfixes.tool_call_id}`;
/**
* tool_call.function.name
*/
export var TOOL_CALL_FUNCTION_NAME = "".concat(SemanticAttributePrefixes.tool_call, ".").concat(ToolCallAttributePostfixes.function_name);
export const TOOL_CALL_FUNCTION_NAME = `${SemanticAttributePrefixes.tool_call}.${ToolCallAttributePostfixes.function_name}`;
/**
* tool_call.function.argument (JSON string)
*/
export var TOOL_CALL_FUNCTION_ARGUMENTS_JSON = "".concat(SemanticAttributePrefixes.tool_call, ".").concat(ToolCallAttributePostfixes.function_arguments_json);
export const TOOL_CALL_FUNCTION_ARGUMENTS_JSON = `${SemanticAttributePrefixes.tool_call}.${ToolCallAttributePostfixes.function_arguments_json}`;
/**
* The id of the tool call
*/
export var TOOL_CALL_ID = "".concat(SemanticAttributePrefixes.tool_call, ".").concat(ToolCallAttributePostfixes.id);
export const TOOL_CALL_ID = `${SemanticAttributePrefixes.tool_call}.${ToolCallAttributePostfixes.id}`;
/**
* The LLM function call function name
*/
export var MESSAGE_FUNCTION_CALL_NAME = "".concat(SemanticAttributePrefixes.message, ".").concat(MessageAttributePostfixes.function_call_name);
export const MESSAGE_FUNCTION_CALL_NAME = `${SemanticAttributePrefixes.message}.${MessageAttributePostfixes.function_call_name}`;
/**
* The LLM function call function arguments in a json string
*/
export var MESSAGE_FUNCTION_CALL_ARGUMENTS_JSON = "".concat(SemanticAttributePrefixes.message, ".").concat(MessageAttributePostfixes.function_call_arguments_json);
export const MESSAGE_FUNCTION_CALL_ARGUMENTS_JSON = `${SemanticAttributePrefixes.message}.${MessageAttributePostfixes.function_call_arguments_json}`;
/**
* The content of the message sent to the LLM
*/
export var MESSAGE_CONTENT = "".concat(SemanticAttributePrefixes.message, ".").concat(MessageAttributePostfixes.content);
export const MESSAGE_CONTENT = `${SemanticAttributePrefixes.message}.${MessageAttributePostfixes.content}`;
/**

@@ -219,72 +219,72 @@ * The array of contents for the message sent to the LLM. Each element of the array is

*/
export var MESSAGE_CONTENTS = "".concat(SemanticAttributePrefixes.message, ".").concat(MessageAttributePostfixes.contents);
export const MESSAGE_CONTENTS = `${SemanticAttributePrefixes.message}.${MessageAttributePostfixes.contents}`;
/**
* The type of content sent to the LLM
*/
export var MESSAGE_CONTENT_TYPE = "".concat(SemanticAttributePrefixes.message_content, ".").concat(MessageContentsAttributePostfixes.type);
export const MESSAGE_CONTENT_TYPE = `${SemanticAttributePrefixes.message_content}.${MessageContentsAttributePostfixes.type}`;
/**
* The text content of the message sent to the LLM
*/
export var MESSAGE_CONTENT_TEXT = "".concat(SemanticAttributePrefixes.message_content, ".").concat(MessageContentsAttributePostfixes.text);
export const MESSAGE_CONTENT_TEXT = `${SemanticAttributePrefixes.message_content}.${MessageContentsAttributePostfixes.text}`;
/**
* The image content of the message sent to the LLM
*/
export var MESSAGE_CONTENT_IMAGE = "".concat(SemanticAttributePrefixes.message_content, ".").concat(MessageContentsAttributePostfixes.image);
export const MESSAGE_CONTENT_IMAGE = `${SemanticAttributePrefixes.message_content}.${MessageContentsAttributePostfixes.image}`;
/**
* The http or base64 link to the image
*/
export var IMAGE_URL = "".concat(SemanticAttributePrefixes.image, ".").concat(ImageAttributesPostfixes.url);
export var DOCUMENT_ID = "".concat(SemanticAttributePrefixes.document, ".").concat(DocumentAttributePostfixes.id);
export var DOCUMENT_CONTENT = "".concat(SemanticAttributePrefixes.document, ".").concat(DocumentAttributePostfixes.content);
export var DOCUMENT_SCORE = "".concat(SemanticAttributePrefixes.document, ".").concat(DocumentAttributePostfixes.score);
export var DOCUMENT_METADATA = "".concat(SemanticAttributePrefixes.document, ".").concat(DocumentAttributePostfixes.metadata);
export const IMAGE_URL = `${SemanticAttributePrefixes.image}.${ImageAttributesPostfixes.url}`;
export const DOCUMENT_ID = `${SemanticAttributePrefixes.document}.${DocumentAttributePostfixes.id}`;
export const DOCUMENT_CONTENT = `${SemanticAttributePrefixes.document}.${DocumentAttributePostfixes.content}`;
export const DOCUMENT_SCORE = `${SemanticAttributePrefixes.document}.${DocumentAttributePostfixes.score}`;
export const DOCUMENT_METADATA = `${SemanticAttributePrefixes.document}.${DocumentAttributePostfixes.metadata}`;
/**
* The text that was embedded to create the vector
*/
export var EMBEDDING_TEXT = "".concat(SemanticAttributePrefixes.embedding, ".").concat(EmbeddingAttributePostfixes.text);
export const EMBEDDING_TEXT = `${SemanticAttributePrefixes.embedding}.${EmbeddingAttributePostfixes.text}`;
/**
* The name of the model that was used to create the vector
*/
export var EMBEDDING_MODEL_NAME = "".concat(SemanticAttributePrefixes.embedding, ".").concat(EmbeddingAttributePostfixes.model_name);
export const EMBEDDING_MODEL_NAME = `${SemanticAttributePrefixes.embedding}.${EmbeddingAttributePostfixes.model_name}`;
/**
* The embedding vector. Typically a high dimensional vector of floats or ints
*/
export var EMBEDDING_VECTOR = "".concat(SemanticAttributePrefixes.embedding, ".").concat(EmbeddingAttributePostfixes.vector);
export const EMBEDDING_VECTOR = `${SemanticAttributePrefixes.embedding}.${EmbeddingAttributePostfixes.vector}`;
/**
* The embedding list root
*/
export var EMBEDDING_EMBEDDINGS = "".concat(SemanticAttributePrefixes.embedding, ".").concat(EmbeddingAttributePostfixes.embeddings);
export const EMBEDDING_EMBEDDINGS = `${SemanticAttributePrefixes.embedding}.${EmbeddingAttributePostfixes.embeddings}`;
/**
* The retrieval documents list root
*/
export var RETRIEVAL_DOCUMENTS = "".concat(SemanticAttributePrefixes.retrieval, ".").concat(RetrievalAttributePostfixes.documents);
var PROMPT_TEMPLATE_PREFIX = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.prompt_template);
export const RETRIEVAL_DOCUMENTS = `${SemanticAttributePrefixes.retrieval}.${RetrievalAttributePostfixes.documents}`;
const PROMPT_TEMPLATE_PREFIX = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.prompt_template}`;
/**
* The JSON representation of the variables used in the prompt template
*/
export var PROMPT_TEMPLATE_VARIABLES = "".concat(PROMPT_TEMPLATE_PREFIX, ".variables");
export const PROMPT_TEMPLATE_VARIABLES = `${PROMPT_TEMPLATE_PREFIX}.variables`;
/**
* A prompt template
*/
export var PROMPT_TEMPLATE_TEMPLATE = "".concat(PROMPT_TEMPLATE_PREFIX, ".template");
export const PROMPT_TEMPLATE_TEMPLATE = `${PROMPT_TEMPLATE_PREFIX}.template`;
/**
* The JSON representation of a function call of an LLM
*/
export var LLM_FUNCTION_CALL = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.function_call);
export const LLM_FUNCTION_CALL = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.function_call}`;
/**
* List of tools that are advertised to the LLM to be able to call
*/
export var LLM_TOOLS = "".concat(SemanticAttributePrefixes.llm, ".").concat(LLMAttributePostfixes.tools);
export const LLM_TOOLS = `${SemanticAttributePrefixes.llm}.${LLMAttributePostfixes.tools}`;
/**
* The name of a tool
*/
export var TOOL_NAME = "".concat(SemanticAttributePrefixes.tool, ".").concat(ToolAttributePostfixes.name);
export const TOOL_NAME = `${SemanticAttributePrefixes.tool}.${ToolAttributePostfixes.name}`;
/**
* The description of a tool
*/
export var TOOL_DESCRIPTION = "".concat(SemanticAttributePrefixes.tool, ".").concat(ToolAttributePostfixes.description);
export const TOOL_DESCRIPTION = `${SemanticAttributePrefixes.tool}.${ToolAttributePostfixes.description}`;
/**
* The parameters of the tool represented as a JSON string
*/
export var TOOL_PARAMETERS = "".concat(SemanticAttributePrefixes.tool, ".").concat(ToolAttributePostfixes.parameters);
export const TOOL_PARAMETERS = `${SemanticAttributePrefixes.tool}.${ToolAttributePostfixes.parameters}`;
/**

@@ -294,113 +294,113 @@ * The json schema of a tool input, It is RECOMMENDED that this be in the

*/
export var TOOL_JSON_SCHEMA = "".concat(SemanticAttributePrefixes.tool, ".").concat(ToolAttributePostfixes.json_schema);
export const TOOL_JSON_SCHEMA = `${SemanticAttributePrefixes.tool}.${ToolAttributePostfixes.json_schema}`;
/**
* The session id of a trace. Used to correlate spans in a single session.
*/
export var SESSION_ID = "".concat(SemanticAttributePrefixes.session, ".").concat(SessionAttributePostfixes.id);
export const SESSION_ID = `${SemanticAttributePrefixes.session}.${SessionAttributePostfixes.id}`;
/**
* The user id of a trace. Used to correlate spans for a single user.
*/
export var USER_ID = "".concat(SemanticAttributePrefixes.user, ".").concat(UserAttributePostfixes.id);
export const USER_ID = `${SemanticAttributePrefixes.user}.${UserAttributePostfixes.id}`;
/**
* The documents used as input to the reranker
*/
export var RERANKER_INPUT_DOCUMENTS = "".concat(SemanticAttributePrefixes.reranker, ".").concat(RerankerAttributePostfixes.input_documents);
export const RERANKER_INPUT_DOCUMENTS = `${SemanticAttributePrefixes.reranker}.${RerankerAttributePostfixes.input_documents}`;
/**
* The documents output by the reranker
*/
export var RERANKER_OUTPUT_DOCUMENTS = "".concat(SemanticAttributePrefixes.reranker, ".").concat(RerankerAttributePostfixes.output_documents);
export const RERANKER_OUTPUT_DOCUMENTS = `${SemanticAttributePrefixes.reranker}.${RerankerAttributePostfixes.output_documents}`;
/**
* The query string for the reranker
*/
export var RERANKER_QUERY = "".concat(SemanticAttributePrefixes.reranker, ".").concat(RerankerAttributePostfixes.query);
export const RERANKER_QUERY = `${SemanticAttributePrefixes.reranker}.${RerankerAttributePostfixes.query}`;
/**
* The model name for the reranker
*/
export var RERANKER_MODEL_NAME = "".concat(SemanticAttributePrefixes.reranker, ".").concat(RerankerAttributePostfixes.model_name);
export const RERANKER_MODEL_NAME = `${SemanticAttributePrefixes.reranker}.${RerankerAttributePostfixes.model_name}`;
/**
* The top k parameter for the reranker
*/
export var RERANKER_TOP_K = "".concat(SemanticAttributePrefixes.reranker, ".").concat(RerankerAttributePostfixes.top_k);
export const RERANKER_TOP_K = `${SemanticAttributePrefixes.reranker}.${RerankerAttributePostfixes.top_k}`;
/**
* Metadata for a span, used to store user-defined key-value pairs
*/
export var METADATA = "metadata";
export const METADATA = "metadata";
/**
* A prompt template version
*/
export var PROMPT_TEMPLATE_VERSION = "".concat(PROMPT_TEMPLATE_PREFIX, ".version");
export const PROMPT_TEMPLATE_VERSION = `${PROMPT_TEMPLATE_PREFIX}.version`;
/**
* The tags associated with a span
*/
export var TAG_TAGS = "".concat(SemanticAttributePrefixes.tag, ".").concat(TagAttributePostfixes.tags);
export const TAG_TAGS = `${SemanticAttributePrefixes.tag}.${TagAttributePostfixes.tags}`;
/**
* The url of an audio file
*/
export var AUDIO_URL = "".concat(SemanticAttributePrefixes.audio, ".").concat(AudioAttributesPostfixes.url);
export const AUDIO_URL = `${SemanticAttributePrefixes.audio}.${AudioAttributesPostfixes.url}`;
/**
* The audio mime type
*/
export var AUDIO_MIME_TYPE = "".concat(SemanticAttributePrefixes.audio, ".").concat(AudioAttributesPostfixes.mime_type);
export const AUDIO_MIME_TYPE = `${SemanticAttributePrefixes.audio}.${AudioAttributesPostfixes.mime_type}`;
/**
* The audio transcript as text
*/
export var AUDIO_TRANSCRIPT = "".concat(SemanticAttributePrefixes.audio, ".").concat(AudioAttributesPostfixes.transcript);
export var SemanticConventions = {
IMAGE_URL: IMAGE_URL,
INPUT_VALUE: INPUT_VALUE,
INPUT_MIME_TYPE: INPUT_MIME_TYPE,
OUTPUT_VALUE: OUTPUT_VALUE,
OUTPUT_MIME_TYPE: OUTPUT_MIME_TYPE,
LLM_INPUT_MESSAGES: LLM_INPUT_MESSAGES,
LLM_OUTPUT_MESSAGES: LLM_OUTPUT_MESSAGES,
LLM_MODEL_NAME: LLM_MODEL_NAME,
LLM_PROMPTS: LLM_PROMPTS,
LLM_INVOCATION_PARAMETERS: LLM_INVOCATION_PARAMETERS,
LLM_TOKEN_COUNT_COMPLETION: LLM_TOKEN_COUNT_COMPLETION,
LLM_TOKEN_COUNT_PROMPT: LLM_TOKEN_COUNT_PROMPT,
LLM_TOKEN_COUNT_TOTAL: LLM_TOKEN_COUNT_TOTAL,
LLM_SYSTEM: LLM_SYSTEM,
LLM_PROVIDER: LLM_PROVIDER,
LLM_TOOLS: LLM_TOOLS,
MESSAGE_ROLE: MESSAGE_ROLE,
MESSAGE_NAME: MESSAGE_NAME,
MESSAGE_TOOL_CALLS: MESSAGE_TOOL_CALLS,
MESSAGE_TOOL_CALL_ID: MESSAGE_TOOL_CALL_ID,
TOOL_CALL_ID: TOOL_CALL_ID,
TOOL_CALL_FUNCTION_NAME: TOOL_CALL_FUNCTION_NAME,
TOOL_CALL_FUNCTION_ARGUMENTS_JSON: TOOL_CALL_FUNCTION_ARGUMENTS_JSON,
MESSAGE_FUNCTION_CALL_NAME: MESSAGE_FUNCTION_CALL_NAME,
MESSAGE_FUNCTION_CALL_ARGUMENTS_JSON: MESSAGE_FUNCTION_CALL_ARGUMENTS_JSON,
MESSAGE_CONTENT: MESSAGE_CONTENT,
MESSAGE_CONTENTS: MESSAGE_CONTENTS,
MESSAGE_CONTENT_IMAGE: MESSAGE_CONTENT_IMAGE,
MESSAGE_CONTENT_TEXT: MESSAGE_CONTENT_TEXT,
MESSAGE_CONTENT_TYPE: MESSAGE_CONTENT_TYPE,
DOCUMENT_ID: DOCUMENT_ID,
DOCUMENT_CONTENT: DOCUMENT_CONTENT,
DOCUMENT_SCORE: DOCUMENT_SCORE,
DOCUMENT_METADATA: DOCUMENT_METADATA,
EMBEDDING_EMBEDDINGS: EMBEDDING_EMBEDDINGS,
EMBEDDING_TEXT: EMBEDDING_TEXT,
EMBEDDING_MODEL_NAME: EMBEDDING_MODEL_NAME,
EMBEDDING_VECTOR: EMBEDDING_VECTOR,
TOOL_DESCRIPTION: TOOL_DESCRIPTION,
TOOL_NAME: TOOL_NAME,
TOOL_PARAMETERS: TOOL_PARAMETERS,
TOOL_JSON_SCHEMA: TOOL_JSON_SCHEMA,
PROMPT_TEMPLATE_VARIABLES: PROMPT_TEMPLATE_VARIABLES,
PROMPT_TEMPLATE_TEMPLATE: PROMPT_TEMPLATE_TEMPLATE,
PROMPT_TEMPLATE_VERSION: PROMPT_TEMPLATE_VERSION,
RERANKER_INPUT_DOCUMENTS: RERANKER_INPUT_DOCUMENTS,
RERANKER_OUTPUT_DOCUMENTS: RERANKER_OUTPUT_DOCUMENTS,
RERANKER_QUERY: RERANKER_QUERY,
RERANKER_MODEL_NAME: RERANKER_MODEL_NAME,
RERANKER_TOP_K: RERANKER_TOP_K,
LLM_FUNCTION_CALL: LLM_FUNCTION_CALL,
RETRIEVAL_DOCUMENTS: RETRIEVAL_DOCUMENTS,
SESSION_ID: SESSION_ID,
USER_ID: USER_ID,
METADATA: METADATA,
TAG_TAGS: TAG_TAGS,
OPENINFERENCE_SPAN_KIND: "".concat(SemanticAttributePrefixes.openinference, ".span.kind"),
export const AUDIO_TRANSCRIPT = `${SemanticAttributePrefixes.audio}.${AudioAttributesPostfixes.transcript}`;
export const SemanticConventions = {
IMAGE_URL,
INPUT_VALUE,
INPUT_MIME_TYPE,
OUTPUT_VALUE,
OUTPUT_MIME_TYPE,
LLM_INPUT_MESSAGES,
LLM_OUTPUT_MESSAGES,
LLM_MODEL_NAME,
LLM_PROMPTS,
LLM_INVOCATION_PARAMETERS,
LLM_TOKEN_COUNT_COMPLETION,
LLM_TOKEN_COUNT_PROMPT,
LLM_TOKEN_COUNT_TOTAL,
LLM_SYSTEM,
LLM_PROVIDER,
LLM_TOOLS,
MESSAGE_ROLE,
MESSAGE_NAME,
MESSAGE_TOOL_CALLS,
MESSAGE_TOOL_CALL_ID,
TOOL_CALL_ID,
TOOL_CALL_FUNCTION_NAME,
TOOL_CALL_FUNCTION_ARGUMENTS_JSON,
MESSAGE_FUNCTION_CALL_NAME,
MESSAGE_FUNCTION_CALL_ARGUMENTS_JSON,
MESSAGE_CONTENT,
MESSAGE_CONTENTS,
MESSAGE_CONTENT_IMAGE,
MESSAGE_CONTENT_TEXT,
MESSAGE_CONTENT_TYPE,
DOCUMENT_ID,
DOCUMENT_CONTENT,
DOCUMENT_SCORE,
DOCUMENT_METADATA,
EMBEDDING_EMBEDDINGS,
EMBEDDING_TEXT,
EMBEDDING_MODEL_NAME,
EMBEDDING_VECTOR,
TOOL_DESCRIPTION,
TOOL_NAME,
TOOL_PARAMETERS,
TOOL_JSON_SCHEMA,
PROMPT_TEMPLATE_VARIABLES,
PROMPT_TEMPLATE_TEMPLATE,
PROMPT_TEMPLATE_VERSION,
RERANKER_INPUT_DOCUMENTS,
RERANKER_OUTPUT_DOCUMENTS,
RERANKER_QUERY,
RERANKER_MODEL_NAME,
RERANKER_TOP_K,
LLM_FUNCTION_CALL,
RETRIEVAL_DOCUMENTS,
SESSION_ID,
USER_ID,
METADATA,
TAG_TAGS,
OPENINFERENCE_SPAN_KIND: `${SemanticAttributePrefixes.openinference}.span.kind`,
};

@@ -407,0 +407,0 @@ export var OpenInferenceSpanKind;

{
"name": "@arizeai/openinference-semantic-conventions",
"version": "0.14.0",
"version": "1.0.0",
"private": false,

@@ -10,2 +10,8 @@ "main": "dist/src/index.js",

"description": "This package provides OpenInference semantic conventions for tracing of LLM Applications.",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/src/index.js"
}
},
"files": [

@@ -28,3 +34,4 @@ "dist",

"prebuild": "rimraf dist",
"build": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"build": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json && tsc-alias -p tsconfig.esm.json",
"postbuild": "echo '{\"type\": \"module\"}' > ./dist/esm/package.json && rimraf dist/test",
"type:check": "tsc --noEmit",

@@ -31,0 +38,0 @@ "test": "echo \"NOOP: semantic conventions has no tests\" && exit 0"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet