@@ -160,6 +160,96 @@ public static final class HTTP {
160160 */
161161 public static final StringTag THREAD_CARRIER = new StringTag (24 , "thread.carrier" );
162162
163+ /**
164+ * GEN_AI_OPERATION_NAME represents the name of the operation being performed
165+ */
166+ public static final StringTag GEN_AI_OPERATION_NAME = new StringTag (25 , "gen_ai.operation.name" );
167+
168+ /**
169+ * GEN_AI_PROVIDER_NAME represents the Generative AI provider as identified by the client or server instrumentation.
170+ */
171+ public static final StringTag GEN_AI_PROVIDER_NAME = new StringTag (26 , "gen_ai.provider.name" );
172+
173+ /**
174+ * GEN_AI_REQUEST_MODEL represents the name of the GenAI model a request is being made to.
175+ */
176+ public static final StringTag GEN_AI_REQUEST_MODEL = new StringTag (27 , "gen_ai.request.model" );
177+
178+ /**
179+ * GEN_AI_TOP_K represents the top_k sampling setting for the GenAI request.
180+ */
181+ public static final StringTag GEN_AI_TOP_K = new StringTag (28 , "gen_ai.request.top_k" );
182+
183+ /**
184+ * GEN_AI_TOP_P represents the top_p sampling setting for the GenAI request.
185+ */
186+ public static final StringTag GEN_AI_TOP_P = new StringTag (29 , "gen_ai.request.top_p" );
187+
188+ /**
189+ * GEN_AI_TEMPERATURE represents the temperature setting for the GenAI request.
190+ */
191+ public static final StringTag GEN_AI_TEMPERATURE = new StringTag (30 , "gen_ai.request.temperature" );
192+
193+ /**
194+ * GEN_AI_TOOL_NAME represents the name of the tool utilized by the agent.
195+ */
196+ public static final StringTag GEN_AI_TOOL_NAME = new StringTag (31 , "gen_ai.tool.name" );
197+
198+ /**
199+ * GEN_AI_TOOL_CALL_ARGUMENTS represents the parameters passed to the tool call.
200+ */
201+ public static final StringTag GEN_AI_TOOL_CALL_ARGUMENTS = new StringTag (32 , "gen_ai.tool.call.arguments" );
202+
203+ /**
204+ * GEN_AI_TOOL_CALL_RESULT represents the result returned by the tool call (if any and if execution was successful).
205+ */
206+ public static final StringTag GEN_AI_TOOL_CALL_RESULT = new StringTag (33 , "gen_ai.tool.call.result" );
207+
208+ /**
209+ * GEN_AI_RESPONSE_MODEL represents the name of the model that generated the response.
210+ */
211+ public static final StringTag GEN_AI_RESPONSE_MODEL = new StringTag (34 , "gen_ai.response.model" );
212+
213+ /**
214+ * GEN_AI_RESPONSE_ID represents the unique identifier for the completion.
215+ */
216+ public static final StringTag GEN_AI_RESPONSE_ID = new StringTag (35 , "gen_ai.response.id" );
217+
218+ /**
219+ * GEN_AI_USAGE_INPUT_TOKENS represents the number of tokens used in the GenAI input (prompt).
220+ */
221+ public static final StringTag GEN_AI_USAGE_INPUT_TOKENS = new StringTag (36 , "gen_ai.usage.input_tokens" );
222+
223+ /**
224+ * GEN_AI_USAGE_OUTPUT_TOKENS represents the number of tokens used in the GenAI response (completion).
225+ */
226+ public static final StringTag GEN_AI_USAGE_OUTPUT_TOKENS = new StringTag (37 , "gen_ai.usage.output_tokens" );
227+
228+ /**
229+ * GEN_AI_USAGE_TOTAL_TOKENS represents the total number of tokens used in the GenAI exchange.
230+ */
231+ public static final StringTag GEN_AI_CLIENT_TOKEN_USAGE = new StringTag (38 , "gen_ai.client.token.usage" );
232+
233+ /**
234+ * GEN_AI_RESPONSE_FINISH_REASONS represents the array of reasons the model stopped generating tokens.
235+ */
236+ public static final StringTag GEN_AI_RESPONSE_FINISH_REASONS = new StringTag (39 , "gen_ai.response.finish_reasons" );
237+
238+ /**
239+ * GEN_AI_STREAM_TTFR represents the time to first response (TTFR) for streaming operations.
240+ */
241+ public static final StringTag GEN_AI_STREAM_TTFR = new StringTag (40 , "gen_ai.stream.ttfr" );
242+
243+ /**
244+ * GEN_AI_INPUT_MESSAGES represents the chat history provided to the model as an input.
245+ */
246+ public static final StringTag GEN_AI_INPUT_MESSAGES = new StringTag (44 , "gen_ai.input.messages" );
247+
248+ /**
249+ * GEN_AI_OUTPUT_MESSAGES represents the messages returned by the model where each message represents a specific model response (choice, candidate).
250+ */
251+ public static final StringTag GEN_AI_OUTPUT_MESSAGES = new StringTag (45 , "gen_ai.output.messages" );
252+
163253 /**
164254 * Creates a {@code StringTag} with the given key and cache it, if it's created before, simply return it without
165255 * creating a new one.
0 commit comments