arize-phoenix 3.0.2__py3-none-any.whl → 3.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of arize-phoenix might be problematic. Click here for more details.

@@ -1,172 +0,0 @@
1
- """
2
- Semantic conventions for the attributes of a span
3
- https://github.com/Arize-ai/open-inference-spec/blob/main/trace/spec/semantic_conventions.md
4
- """
5
-
6
- EXCEPTION_TYPE = "exception.type"
7
- EXCEPTION_MESSAGE = "exception.message"
8
- EXCEPTION_ESCAPED = "exception.escaped"
9
- EXCEPTION_STACKTRACE = "exception.stacktrace"
10
-
11
-
12
- OUTPUT_VALUE = "output.value"
13
- OUTPUT_MIME_TYPE = "output.mime_type"
14
- """
15
- The type of output.value. If unspecified, the type is plain text by default.
16
- If type is JSON, the value is a string representing a JSON object.
17
- """
18
- INPUT_VALUE = "input.value"
19
- INPUT_MIME_TYPE = "input.mime_type"
20
- """
21
- The type of input.value. If unspecified, the type is plain text by default.
22
- If type is JSON, the value is a string representing a JSON object.
23
- """
24
-
25
- EMBEDDING_EMBEDDINGS = "embedding.embeddings"
26
- """
27
- A list of objects containing embedding data, including the vector and represented piece of text.
28
- """
29
- EMBEDDING_MODEL_NAME = "embedding.model_name"
30
- """
31
- The name of the embedding model.
32
- """
33
- EMBEDDING_TEXT = "embedding.text"
34
- """
35
- The text represented by the embedding.
36
- """
37
- EMBEDDING_VECTOR = "embedding.vector"
38
- """
39
- The embedding vector.
40
- """
41
-
42
- MESSAGE_ROLE = "message.role"
43
- """
44
- The role of the message, such as "user", "agent", "function".
45
- """
46
- MESSAGE_NAME = "message.name"
47
- """
48
- The name of the message, often used to identify the function
49
- that was used to generate the message.
50
- """
51
- MESSAGE_TOOL_CALLS = "message.tool_calls"
52
- """
53
- The tool calls generated by the model, such as function calls.
54
- """
55
- TOOL_CALL_FUNCTION_NAME = "tool_call.function.name"
56
- """
57
- The name of function that is being called during a tool call.
58
- """
59
- TOOL_CALL_FUNCTION_ARGUMENTS_JSON = "tool_call.function.arguments"
60
- """
61
- The JSON string representing the arguments passed to the function
62
- during a tool call.
63
- """
64
- MESSAGE_FUNCTION_CALL_NAME = "message.function_call_name"
65
- """
66
- The function name that is a part of the message list.
67
- This is populated for role 'function' or 'agent' as a mechanism to identify
68
- the function that was called during the execution of a tool
69
- """
70
- MESSAGE_FUNCTION_CALL_ARGUMENTS_JSON = "message.function_call_arguments_json"
71
- """
72
- The JSON string representing the arguments passed to the function
73
- during a function call
74
- """
75
- MESSAGE_CONTENT = "message.content"
76
- """
77
- The content of the message to the llm
78
- """
79
- LLM_FUNCTION_CALL = "llm.function_call"
80
- """
81
- For models and APIs that support function calling. Records attributes such as the function name and
82
- arguments to the called function.
83
- """
84
- LLM_INVOCATION_PARAMETERS = "llm.invocation_parameters"
85
- """
86
- Invocation parameters passed to the LLM or API, such as the model name, temperature, etc.
87
- """
88
- LLM_INPUT_MESSAGES = "llm.input_messages"
89
- """
90
- Messages provided to a chat API.
91
- """
92
- LLM_OUTPUT_MESSAGES = "llm.output_messages"
93
- """
94
- Messages received from a chat API.
95
- """
96
- LLM_MODEL_NAME = "llm.model_name"
97
- """
98
- The name of the model being used.
99
- """
100
- LLM_PROMPTS = "llm.prompts"
101
- """
102
- Prompts provided to a completions API.
103
- """
104
- LLM_PROMPT_TEMPLATE = "llm.prompt_template.template"
105
- """
106
- The prompt template as a Python f-string.
107
- """
108
- LLM_PROMPT_TEMPLATE_VARIABLES = "llm.prompt_template.variables"
109
- """
110
- A list of input variables to the prompt template.
111
- """
112
- LLM_PROMPT_TEMPLATE_VERSION = "llm.prompt_template.version"
113
- """
114
- The version of the prompt template being used.
115
- """
116
- LLM_TOKEN_COUNT_PROMPT = "llm.token_count.prompt"
117
- """
118
- Number of tokens in the prompt.
119
- """
120
- LLM_TOKEN_COUNT_COMPLETION = "llm.token_count.completion"
121
- """
122
- Number of tokens in the completion.
123
- """
124
- LLM_TOKEN_COUNT_TOTAL = "llm.token_count.total"
125
- """
126
- Total number of tokens, including both prompt and completion.
127
- """
128
-
129
- TOOL_NAME = "tool.name"
130
- """
131
- Name of the tool being used.
132
- """
133
- TOOL_DESCRIPTION = "tool.description"
134
- """
135
- Description of the tool's purpose, typically used to select the tool.
136
- """
137
- TOOL_PARAMETERS = "tool.parameters"
138
- """
139
- Parameters of the tool, e.g. see https://platform.openai.com/docs/guides/gpt/function-calling
140
- """
141
-
142
- RETRIEVAL_DOCUMENTS = "retrieval.documents"
143
- DOCUMENT_ID = "document.id"
144
- DOCUMENT_SCORE = "document.score"
145
- DOCUMENT_CONTENT = "document.content"
146
- DOCUMENT_METADATA = "document.metadata"
147
- """
148
- Document metadata as a string representing a JSON object
149
- """
150
-
151
- RERANKER_INPUT_DOCUMENTS = "reranker.input_documents"
152
- """
153
- List of documents as input to the reranker
154
- """
155
- RERANKER_OUTPUT_DOCUMENTS = "reranker.output_documents"
156
- """
157
- List of documents as output from the reranker
158
- """
159
- RERANKER_QUERY = "reranker.query"
160
- """
161
- Query string for the reranker
162
- """
163
- RERANKER_MODEL_NAME = "reranker.model_name"
164
- """
165
- Model name of the reranker
166
- """
167
- RERANKER_TOP_K = "reranker.top_k"
168
- """
169
- Top K parameter of the reranker
170
- """
171
-
172
- OPENINFERENCE_SPAN_KIND = "openinference.span.kind"