11 references to Response
Microsoft.Extensions.AI (11)
ChatCompletion\OpenTelemetryChatClient.cs (7)
369_ = activity.AddTag(OpenTelemetryConsts.GenAI.Response.FinishReasons, $"[\"{finishReason.Value.ToLowerInvariant()}\"]"); 375_ = activity.AddTag(OpenTelemetryConsts.GenAI.Response.Id, completion.CompletionId); 380_ = activity.AddTag(OpenTelemetryConsts.GenAI.Response.Model, completion.ModelId); 385_ = activity.AddTag(OpenTelemetryConsts.GenAI.Response.InputTokens, inputTokens); 390_ = activity.AddTag(OpenTelemetryConsts.GenAI.Response.OutputTokens, outputTokens); 403OpenTelemetryConsts.GenAI.Response.PerProvider(_system, JsonNamingPolicy.SnakeCaseLower.ConvertName(prop.Key)), 430tags.Add(OpenTelemetryConsts.GenAI.Response.Model, responseModel);
Embeddings\OpenTelemetryEmbeddingGenerator.cs (4)
228_ = activity.AddTag(OpenTelemetryConsts.GenAI.Response.InputTokens, inputTokens); 233_ = activity.AddTag(OpenTelemetryConsts.GenAI.Response.Model, responseModelId); 245OpenTelemetryConsts.GenAI.Response.PerProvider(_system, JsonNamingPolicy.SnakeCaseLower.ConvertName(prop.Key)), 272tags.Add(OpenTelemetryConsts.GenAI.Response.Model, responseModelId);