You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@arizeai/openinference-semantic-conventions

Package Overview
Dependencies
Maintainers
6
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
0.12.0

12

dist/esm/trace/SemanticConventions.d.ts

@@ -69,2 +69,3 @@ /**

readonly tool_calls: "tool_calls";
readonly tool_call_id: "tool_call_id";
};

@@ -82,2 +83,3 @@ export declare const MessageContentsAttributePostfixes: {

readonly function_arguments_json: "function.arguments";
readonly id: "id";
};

@@ -165,2 +167,6 @@ export declare const DocumentAttributePostfixes: {

/**
* The id of the tool call on a "tool" role message
*/
export declare const MESSAGE_TOOL_CALL_ID: "message.tool_call_id";
/**
* tool_call.function.name

@@ -174,2 +180,6 @@ */

/**
* The id of the tool call
*/
export declare const TOOL_CALL_ID: "tool_call.id";
/**
* The LLM function call function name

@@ -324,2 +334,4 @@ */

readonly MESSAGE_TOOL_CALLS: "message.tool_calls";
readonly MESSAGE_TOOL_CALL_ID: "message.tool_call_id";
readonly TOOL_CALL_ID: "tool_call.id";
readonly TOOL_CALL_FUNCTION_NAME: "tool_call.function.name";

@@ -326,0 +338,0 @@ readonly TOOL_CALL_FUNCTION_ARGUMENTS_JSON: "tool_call.function.arguments";

@@ -69,2 +69,3 @@ /**

tool_calls: "tool_calls",
tool_call_id: "tool_call_id",
};

@@ -82,2 +83,3 @@ export var MessageContentsAttributePostfixes = {

function_arguments_json: "function.arguments",
id: "id",
};

@@ -165,2 +167,6 @@ export var DocumentAttributePostfixes = {

/**
* 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);
/**
* tool_call.function.name

@@ -174,2 +180,6 @@ */

/**
* The id of the tool call
*/
export var TOOL_CALL_ID = "".concat(SemanticAttributePrefixes.tool_call, ".").concat(ToolCallAttributePostfixes.id);
/**
* The LLM function call function name

@@ -325,2 +335,4 @@ */

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,

@@ -327,0 +339,0 @@ TOOL_CALL_FUNCTION_ARGUMENTS_JSON: TOOL_CALL_FUNCTION_ARGUMENTS_JSON,

@@ -69,2 +69,3 @@ /**

readonly tool_calls: "tool_calls";
readonly tool_call_id: "tool_call_id";
};

@@ -82,2 +83,3 @@ export declare const MessageContentsAttributePostfixes: {

readonly function_arguments_json: "function.arguments";
readonly id: "id";
};

@@ -165,2 +167,6 @@ export declare const DocumentAttributePostfixes: {

/**
* The id of the tool call on a "tool" role message
*/
export declare const MESSAGE_TOOL_CALL_ID: "message.tool_call_id";
/**
* tool_call.function.name

@@ -174,2 +180,6 @@ */

/**
* The id of the tool call
*/
export declare const TOOL_CALL_ID: "tool_call.id";
/**
* The LLM function call function name

@@ -324,2 +334,4 @@ */

readonly MESSAGE_TOOL_CALLS: "message.tool_calls";
readonly MESSAGE_TOOL_CALL_ID: "message.tool_call_id";
readonly TOOL_CALL_ID: "tool_call.id";
readonly TOOL_CALL_FUNCTION_NAME: "tool_call.function.name";

@@ -326,0 +338,0 @@ readonly TOOL_CALL_FUNCTION_ARGUMENTS_JSON: "tool_call.function.arguments";

@@ -69,2 +69,3 @@ /**

tool_calls: "tool_calls",
tool_call_id: "tool_call_id",
};

@@ -82,2 +83,3 @@ export const MessageContentsAttributePostfixes = {

function_arguments_json: "function.arguments",
id: "id",
};

@@ -165,2 +167,6 @@ export const DocumentAttributePostfixes = {

/**
* The id of the tool call on a "tool" role message
*/
export const MESSAGE_TOOL_CALL_ID = `${SemanticAttributePrefixes.message}.${MessageAttributePostfixes.tool_call_id}`;
/**
* tool_call.function.name

@@ -174,2 +180,6 @@ */

/**
* The id of the tool call
*/
export const TOOL_CALL_ID = `${SemanticAttributePrefixes.tool_call}.${ToolCallAttributePostfixes.id}`;
/**
* The LLM function call function name

@@ -325,2 +335,4 @@ */

MESSAGE_TOOL_CALLS,
MESSAGE_TOOL_CALL_ID,
TOOL_CALL_ID,
TOOL_CALL_FUNCTION_NAME,

@@ -327,0 +339,0 @@ TOOL_CALL_FUNCTION_ARGUMENTS_JSON,

@@ -69,2 +69,3 @@ /**

readonly tool_calls: "tool_calls";
readonly tool_call_id: "tool_call_id";
};

@@ -82,2 +83,3 @@ export declare const MessageContentsAttributePostfixes: {

readonly function_arguments_json: "function.arguments";
readonly id: "id";
};

@@ -165,2 +167,6 @@ export declare const DocumentAttributePostfixes: {

/**
* The id of the tool call on a "tool" role message
*/
export declare const MESSAGE_TOOL_CALL_ID: "message.tool_call_id";
/**
* tool_call.function.name

@@ -174,2 +180,6 @@ */

/**
* The id of the tool call
*/
export declare const TOOL_CALL_ID: "tool_call.id";
/**
* The LLM function call function name

@@ -324,2 +334,4 @@ */

readonly MESSAGE_TOOL_CALLS: "message.tool_calls";
readonly MESSAGE_TOOL_CALL_ID: "message.tool_call_id";
readonly TOOL_CALL_ID: "tool_call.id";
readonly TOOL_CALL_FUNCTION_NAME: "tool_call.function.name";

@@ -326,0 +338,0 @@ readonly TOOL_CALL_FUNCTION_ARGUMENTS_JSON: "tool_call.function.arguments";

16

dist/src/trace/SemanticConventions.js

@@ -6,4 +6,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.EMBEDDING_EMBEDDINGS = exports.EMBEDDING_VECTOR = exports.EMBEDDING_MODEL_NAME = exports.EMBEDDING_TEXT = exports.DOCUMENT_METADATA = exports.DOCUMENT_SCORE = exports.DOCUMENT_CONTENT = exports.DOCUMENT_ID = exports.IMAGE_URL = exports.MESSAGE_CONTENT_IMAGE = exports.MESSAGE_CONTENT_TEXT = exports.MESSAGE_CONTENT_TYPE = exports.MESSAGE_CONTENTS = exports.MESSAGE_CONTENT = exports.MESSAGE_FUNCTION_CALL_ARGUMENTS_JSON = exports.MESSAGE_FUNCTION_CALL_NAME = exports.TOOL_CALL_FUNCTION_ARGUMENTS_JSON = exports.TOOL_CALL_FUNCTION_NAME = exports.MESSAGE_TOOL_CALLS = exports.MESSAGE_NAME = exports.MESSAGE_ROLE = exports.LLM_TOKEN_COUNT_TOTAL = exports.LLM_TOKEN_COUNT_PROMPT = exports.LLM_TOKEN_COUNT_COMPLETION = exports.LLM_SYSTEM = exports.LLM_PROVIDER = exports.LLM_MODEL_NAME = exports.LLM_OUTPUT_MESSAGES = exports.LLM_INVOCATION_PARAMETERS = exports.LLM_PROMPTS = exports.LLM_INPUT_MESSAGES = exports.OUTPUT_MIME_TYPE = exports.OUTPUT_VALUE = exports.INPUT_MIME_TYPE = exports.INPUT_VALUE = exports.UserAttributePostfixes = exports.SessionAttributePostfixes = exports.TagAttributePostfixes = exports.DocumentAttributePostfixes = exports.ToolCallAttributePostfixes = exports.ImageAttributesPostfixes = exports.MessageContentsAttributePostfixes = exports.MessageAttributePostfixes = exports.ToolAttributePostfixes = exports.EmbeddingAttributePostfixes = exports.RerankerAttributePostfixes = exports.RetrievalAttributePostfixes = exports.LLMPromptTemplateAttributePostfixes = exports.LLMAttributePostfixes = exports.SemanticAttributePrefixes = void 0;
exports.LLMProvider = exports.LLMSystem = exports.MimeType = exports.OpenInferenceSpanKind = exports.SemanticConventions = exports.TAG_TAGS = exports.PROMPT_TEMPLATE_VERSION = exports.METADATA = exports.RERANKER_TOP_K = exports.RERANKER_MODEL_NAME = exports.RERANKER_QUERY = exports.RERANKER_OUTPUT_DOCUMENTS = exports.RERANKER_INPUT_DOCUMENTS = exports.USER_ID = exports.SESSION_ID = exports.TOOL_JSON_SCHEMA = exports.TOOL_PARAMETERS = exports.TOOL_DESCRIPTION = exports.TOOL_NAME = exports.LLM_TOOLS = exports.LLM_FUNCTION_CALL = exports.PROMPT_TEMPLATE_TEMPLATE = exports.PROMPT_TEMPLATE_VARIABLES = exports.RETRIEVAL_DOCUMENTS = void 0;
exports.EMBEDDING_MODEL_NAME = exports.EMBEDDING_TEXT = exports.DOCUMENT_METADATA = exports.DOCUMENT_SCORE = exports.DOCUMENT_CONTENT = exports.DOCUMENT_ID = exports.IMAGE_URL = exports.MESSAGE_CONTENT_IMAGE = exports.MESSAGE_CONTENT_TEXT = exports.MESSAGE_CONTENT_TYPE = exports.MESSAGE_CONTENTS = exports.MESSAGE_CONTENT = exports.MESSAGE_FUNCTION_CALL_ARGUMENTS_JSON = exports.MESSAGE_FUNCTION_CALL_NAME = exports.TOOL_CALL_ID = exports.TOOL_CALL_FUNCTION_ARGUMENTS_JSON = exports.TOOL_CALL_FUNCTION_NAME = exports.MESSAGE_TOOL_CALL_ID = exports.MESSAGE_TOOL_CALLS = exports.MESSAGE_NAME = exports.MESSAGE_ROLE = exports.LLM_TOKEN_COUNT_TOTAL = exports.LLM_TOKEN_COUNT_PROMPT = exports.LLM_TOKEN_COUNT_COMPLETION = exports.LLM_SYSTEM = exports.LLM_PROVIDER = exports.LLM_MODEL_NAME = exports.LLM_OUTPUT_MESSAGES = exports.LLM_INVOCATION_PARAMETERS = exports.LLM_PROMPTS = exports.LLM_INPUT_MESSAGES = exports.OUTPUT_MIME_TYPE = exports.OUTPUT_VALUE = exports.INPUT_MIME_TYPE = exports.INPUT_VALUE = exports.UserAttributePostfixes = exports.SessionAttributePostfixes = exports.TagAttributePostfixes = exports.DocumentAttributePostfixes = exports.ToolCallAttributePostfixes = exports.ImageAttributesPostfixes = exports.MessageContentsAttributePostfixes = exports.MessageAttributePostfixes = exports.ToolAttributePostfixes = exports.EmbeddingAttributePostfixes = exports.RerankerAttributePostfixes = exports.RetrievalAttributePostfixes = exports.LLMPromptTemplateAttributePostfixes = exports.LLMAttributePostfixes = exports.SemanticAttributePrefixes = void 0;
exports.LLMProvider = exports.LLMSystem = exports.MimeType = exports.OpenInferenceSpanKind = exports.SemanticConventions = exports.TAG_TAGS = exports.PROMPT_TEMPLATE_VERSION = exports.METADATA = exports.RERANKER_TOP_K = exports.RERANKER_MODEL_NAME = exports.RERANKER_QUERY = exports.RERANKER_OUTPUT_DOCUMENTS = exports.RERANKER_INPUT_DOCUMENTS = exports.USER_ID = exports.SESSION_ID = exports.TOOL_JSON_SCHEMA = exports.TOOL_PARAMETERS = exports.TOOL_DESCRIPTION = exports.TOOL_NAME = exports.LLM_TOOLS = exports.LLM_FUNCTION_CALL = exports.PROMPT_TEMPLATE_TEMPLATE = exports.PROMPT_TEMPLATE_VARIABLES = exports.RETRIEVAL_DOCUMENTS = exports.EMBEDDING_EMBEDDINGS = exports.EMBEDDING_VECTOR = void 0;
exports.SemanticAttributePrefixes = {

@@ -74,2 +74,3 @@ input: "input",

tool_calls: "tool_calls",
tool_call_id: "tool_call_id",
};

@@ -87,2 +88,3 @@ exports.MessageContentsAttributePostfixes = {

function_arguments_json: "function.arguments",
id: "id",
};

@@ -170,2 +172,6 @@ exports.DocumentAttributePostfixes = {

/**
* The id of the tool call on a "tool" role message
*/
exports.MESSAGE_TOOL_CALL_ID = `${exports.SemanticAttributePrefixes.message}.${exports.MessageAttributePostfixes.tool_call_id}`;
/**
* tool_call.function.name

@@ -179,2 +185,6 @@ */

/**
* The id of the tool call
*/
exports.TOOL_CALL_ID = `${exports.SemanticAttributePrefixes.tool_call}.${exports.ToolCallAttributePostfixes.id}`;
/**
* The LLM function call function name

@@ -330,2 +340,4 @@ */

MESSAGE_TOOL_CALLS: exports.MESSAGE_TOOL_CALLS,
MESSAGE_TOOL_CALL_ID: exports.MESSAGE_TOOL_CALL_ID,
TOOL_CALL_ID: exports.TOOL_CALL_ID,
TOOL_CALL_FUNCTION_NAME: exports.TOOL_CALL_FUNCTION_NAME,

@@ -332,0 +344,0 @@ TOOL_CALL_FUNCTION_ARGUMENTS_JSON: exports.TOOL_CALL_FUNCTION_ARGUMENTS_JSON,

2

package.json
{
"name": "@arizeai/openinference-semantic-conventions",
"version": "0.11.0",
"version": "0.12.0",
"private": false,

@@ -5,0 +5,0 @@ "main": "dist/src/index.js",

@@ -77,2 +77,3 @@ /**

tool_calls: "tool_calls",
tool_call_id: "tool_call_id",
} as const;

@@ -93,2 +94,3 @@

function_arguments_json: "function.arguments",
id: "id",
} as const;

@@ -208,2 +210,8 @@

/**
* The id of the tool call on a "tool" role message
*/
export const MESSAGE_TOOL_CALL_ID =
`${SemanticAttributePrefixes.message}.${MessageAttributePostfixes.tool_call_id}` as const;
/**
* tool_call.function.name

@@ -221,2 +229,8 @@ */

/**
* The id of the tool call
*/
export const TOOL_CALL_ID =
`${SemanticAttributePrefixes.tool_call}.${ToolCallAttributePostfixes.id}` as const;
/**
* The LLM function call function name

@@ -437,2 +451,4 @@ */

MESSAGE_TOOL_CALLS,
MESSAGE_TOOL_CALL_ID,
TOOL_CALL_ID,
TOOL_CALL_FUNCTION_NAME,

@@ -439,0 +455,0 @@ TOOL_CALL_FUNCTION_ARGUMENTS_JSON,

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

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

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