@arizeai/openinference-semantic-conventions
Advanced tools
Comparing version
@@ -23,2 +23,3 @@ /** | ||
readonly image: "image"; | ||
readonly audio: "audio"; | ||
}; | ||
@@ -102,2 +103,7 @@ export declare const LLMAttributePostfixes: { | ||
}; | ||
export declare const AudioAttributesPostfixes: { | ||
readonly url: "url"; | ||
readonly mime_type: "mime_type"; | ||
readonly transcript: "transcript"; | ||
}; | ||
/** | ||
@@ -314,2 +320,14 @@ * The input to any span | ||
export declare const TAG_TAGS: "tag.tags"; | ||
/** | ||
* The url of an audio file | ||
*/ | ||
export declare const AUDIO_URL: "audio.url"; | ||
/** | ||
* The audio mime type | ||
*/ | ||
export declare const AUDIO_MIME_TYPE: "audio.mime_type"; | ||
/** | ||
* The audio transcript as text | ||
*/ | ||
export declare const AUDIO_TRANSCRIPT: "audio.transcript"; | ||
export declare const SemanticConventions: { | ||
@@ -385,5 +403,9 @@ readonly IMAGE_URL: "image.url"; | ||
} | ||
/** | ||
* An enum of common mime types. Not exhaustive. | ||
*/ | ||
export declare enum MimeType { | ||
TEXT = "text/plain", | ||
JSON = "application/json" | ||
JSON = "application/json", | ||
AUDIO_WAV = "audio/wav" | ||
} | ||
@@ -390,0 +412,0 @@ export declare enum LLMSystem { |
@@ -23,2 +23,3 @@ /** | ||
image: "image", | ||
audio: "audio", | ||
}; | ||
@@ -102,2 +103,7 @@ export var LLMAttributePostfixes = { | ||
}; | ||
export var AudioAttributesPostfixes = { | ||
url: "url", | ||
mime_type: "mime_type", | ||
transcript: "transcript", | ||
}; | ||
/** | ||
@@ -315,2 +321,14 @@ * The input to any span | ||
export var TAG_TAGS = "".concat(SemanticAttributePrefixes.tag, ".").concat(TagAttributePostfixes.tags); | ||
/** | ||
* The url of an audio file | ||
*/ | ||
export var AUDIO_URL = "".concat(SemanticAttributePrefixes.audio, ".").concat(AudioAttributesPostfixes.url); | ||
/** | ||
* The audio mime type | ||
*/ | ||
export var AUDIO_MIME_TYPE = "".concat(SemanticAttributePrefixes.audio, ".").concat(AudioAttributesPostfixes.mime_type); | ||
/** | ||
* The audio transcript as text | ||
*/ | ||
export var AUDIO_TRANSCRIPT = "".concat(SemanticAttributePrefixes.audio, ".").concat(AudioAttributesPostfixes.transcript); | ||
export var SemanticConventions = { | ||
@@ -387,2 +405,5 @@ IMAGE_URL: IMAGE_URL, | ||
})(OpenInferenceSpanKind || (OpenInferenceSpanKind = {})); | ||
/** | ||
* An enum of common mime types. Not exhaustive. | ||
*/ | ||
export var MimeType; | ||
@@ -392,2 +413,3 @@ (function (MimeType) { | ||
MimeType["JSON"] = "application/json"; | ||
MimeType["AUDIO_WAV"] = "audio/wav"; | ||
})(MimeType || (MimeType = {})); | ||
@@ -394,0 +416,0 @@ export var LLMSystem; |
@@ -23,2 +23,3 @@ /** | ||
readonly image: "image"; | ||
readonly audio: "audio"; | ||
}; | ||
@@ -102,2 +103,7 @@ export declare const LLMAttributePostfixes: { | ||
}; | ||
export declare const AudioAttributesPostfixes: { | ||
readonly url: "url"; | ||
readonly mime_type: "mime_type"; | ||
readonly transcript: "transcript"; | ||
}; | ||
/** | ||
@@ -314,2 +320,14 @@ * The input to any span | ||
export declare const TAG_TAGS: "tag.tags"; | ||
/** | ||
* The url of an audio file | ||
*/ | ||
export declare const AUDIO_URL: "audio.url"; | ||
/** | ||
* The audio mime type | ||
*/ | ||
export declare const AUDIO_MIME_TYPE: "audio.mime_type"; | ||
/** | ||
* The audio transcript as text | ||
*/ | ||
export declare const AUDIO_TRANSCRIPT: "audio.transcript"; | ||
export declare const SemanticConventions: { | ||
@@ -385,5 +403,9 @@ readonly IMAGE_URL: "image.url"; | ||
} | ||
/** | ||
* An enum of common mime types. Not exhaustive. | ||
*/ | ||
export declare enum MimeType { | ||
TEXT = "text/plain", | ||
JSON = "application/json" | ||
JSON = "application/json", | ||
AUDIO_WAV = "audio/wav" | ||
} | ||
@@ -390,0 +412,0 @@ export declare enum LLMSystem { |
@@ -23,2 +23,3 @@ /** | ||
image: "image", | ||
audio: "audio", | ||
}; | ||
@@ -102,2 +103,7 @@ export const LLMAttributePostfixes = { | ||
}; | ||
export const AudioAttributesPostfixes = { | ||
url: "url", | ||
mime_type: "mime_type", | ||
transcript: "transcript", | ||
}; | ||
/** | ||
@@ -315,2 +321,14 @@ * The input to any span | ||
export const TAG_TAGS = `${SemanticAttributePrefixes.tag}.${TagAttributePostfixes.tags}`; | ||
/** | ||
* The url of an audio file | ||
*/ | ||
export const AUDIO_URL = `${SemanticAttributePrefixes.audio}.${AudioAttributesPostfixes.url}`; | ||
/** | ||
* The audio mime type | ||
*/ | ||
export const AUDIO_MIME_TYPE = `${SemanticAttributePrefixes.audio}.${AudioAttributesPostfixes.mime_type}`; | ||
/** | ||
* The audio transcript as text | ||
*/ | ||
export const AUDIO_TRANSCRIPT = `${SemanticAttributePrefixes.audio}.${AudioAttributesPostfixes.transcript}`; | ||
export const SemanticConventions = { | ||
@@ -387,2 +405,5 @@ IMAGE_URL, | ||
})(OpenInferenceSpanKind || (OpenInferenceSpanKind = {})); | ||
/** | ||
* An enum of common mime types. Not exhaustive. | ||
*/ | ||
export var MimeType; | ||
@@ -392,2 +413,3 @@ (function (MimeType) { | ||
MimeType["JSON"] = "application/json"; | ||
MimeType["AUDIO_WAV"] = "audio/wav"; | ||
})(MimeType || (MimeType = {})); | ||
@@ -394,0 +416,0 @@ export var LLMSystem; |
@@ -23,2 +23,3 @@ /** | ||
readonly image: "image"; | ||
readonly audio: "audio"; | ||
}; | ||
@@ -102,2 +103,7 @@ export declare const LLMAttributePostfixes: { | ||
}; | ||
export declare const AudioAttributesPostfixes: { | ||
readonly url: "url"; | ||
readonly mime_type: "mime_type"; | ||
readonly transcript: "transcript"; | ||
}; | ||
/** | ||
@@ -314,2 +320,14 @@ * The input to any span | ||
export declare const TAG_TAGS: "tag.tags"; | ||
/** | ||
* The url of an audio file | ||
*/ | ||
export declare const AUDIO_URL: "audio.url"; | ||
/** | ||
* The audio mime type | ||
*/ | ||
export declare const AUDIO_MIME_TYPE: "audio.mime_type"; | ||
/** | ||
* The audio transcript as text | ||
*/ | ||
export declare const AUDIO_TRANSCRIPT: "audio.transcript"; | ||
export declare const SemanticConventions: { | ||
@@ -385,5 +403,9 @@ readonly IMAGE_URL: "image.url"; | ||
} | ||
/** | ||
* An enum of common mime types. Not exhaustive. | ||
*/ | ||
export declare enum MimeType { | ||
TEXT = "text/plain", | ||
JSON = "application/json" | ||
JSON = "application/json", | ||
AUDIO_WAV = "audio/wav" | ||
} | ||
@@ -390,0 +412,0 @@ export declare enum LLMSystem { |
@@ -6,4 +6,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
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.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.AudioAttributesPostfixes = 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.AUDIO_TRANSCRIPT = exports.AUDIO_MIME_TYPE = exports.AUDIO_URL = 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 = exports.EMBEDDING_MODEL_NAME = void 0; | ||
exports.SemanticAttributePrefixes = { | ||
@@ -28,2 +28,3 @@ input: "input", | ||
image: "image", | ||
audio: "audio", | ||
}; | ||
@@ -107,2 +108,7 @@ exports.LLMAttributePostfixes = { | ||
}; | ||
exports.AudioAttributesPostfixes = { | ||
url: "url", | ||
mime_type: "mime_type", | ||
transcript: "transcript", | ||
}; | ||
/** | ||
@@ -320,2 +326,14 @@ * The input to any span | ||
exports.TAG_TAGS = `${exports.SemanticAttributePrefixes.tag}.${exports.TagAttributePostfixes.tags}`; | ||
/** | ||
* The url of an audio file | ||
*/ | ||
exports.AUDIO_URL = `${exports.SemanticAttributePrefixes.audio}.${exports.AudioAttributesPostfixes.url}`; | ||
/** | ||
* The audio mime type | ||
*/ | ||
exports.AUDIO_MIME_TYPE = `${exports.SemanticAttributePrefixes.audio}.${exports.AudioAttributesPostfixes.mime_type}`; | ||
/** | ||
* The audio transcript as text | ||
*/ | ||
exports.AUDIO_TRANSCRIPT = `${exports.SemanticAttributePrefixes.audio}.${exports.AudioAttributesPostfixes.transcript}`; | ||
exports.SemanticConventions = { | ||
@@ -392,2 +410,5 @@ IMAGE_URL: exports.IMAGE_URL, | ||
})(OpenInferenceSpanKind || (exports.OpenInferenceSpanKind = OpenInferenceSpanKind = {})); | ||
/** | ||
* An enum of common mime types. Not exhaustive. | ||
*/ | ||
var MimeType; | ||
@@ -397,2 +418,3 @@ (function (MimeType) { | ||
MimeType["JSON"] = "application/json"; | ||
MimeType["AUDIO_WAV"] = "audio/wav"; | ||
})(MimeType || (exports.MimeType = MimeType = {})); | ||
@@ -399,0 +421,0 @@ var LLMSystem; |
{ | ||
"name": "@arizeai/openinference-semantic-conventions", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -24,2 +24,3 @@ /** | ||
image: "image", | ||
audio: "audio", | ||
} as const; | ||
@@ -118,2 +119,8 @@ | ||
export const AudioAttributesPostfixes = { | ||
url: "url", | ||
mime_type: "mime_type", | ||
transcript: "transcript", | ||
} as const; | ||
/** | ||
@@ -432,2 +439,20 @@ * The input to any span | ||
/** | ||
* The url of an audio file | ||
*/ | ||
export const AUDIO_URL = | ||
`${SemanticAttributePrefixes.audio}.${AudioAttributesPostfixes.url}` as const; | ||
/** | ||
* The audio mime type | ||
*/ | ||
export const AUDIO_MIME_TYPE = | ||
`${SemanticAttributePrefixes.audio}.${AudioAttributesPostfixes.mime_type}` as const; | ||
/** | ||
* The audio transcript as text | ||
*/ | ||
export const AUDIO_TRANSCRIPT = | ||
`${SemanticAttributePrefixes.audio}.${AudioAttributesPostfixes.transcript}` as const; | ||
export const SemanticConventions = { | ||
@@ -505,5 +530,9 @@ IMAGE_URL, | ||
/** | ||
* An enum of common mime types. Not exhaustive. | ||
*/ | ||
export enum MimeType { | ||
TEXT = "text/plain", | ||
JSON = "application/json", | ||
AUDIO_WAV = "audio/wav", | ||
} | ||
@@ -510,0 +539,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
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
213883
3.04%3161
5.23%12
9.09%