Freigeben über


InferenceCallDetails Constructor

Definition

Initializes a new instance of the InferenceCallDetails class.

public InferenceCallDetails(Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.InferenceOperationType operationName, string model, string providerName, int? inputTokens = default, int? outputTokens = default, string[]? finishReasons = default, string? responseId = default);
new Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.InferenceCallDetails : Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.InferenceOperationType * string * string * Nullable<int> * Nullable<int> * string[] * string -> Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.InferenceCallDetails
Public Sub New (operationName As InferenceOperationType, model As String, providerName As String, Optional inputTokens As Nullable(Of Integer) = Nothing, Optional outputTokens As Nullable(Of Integer) = Nothing, Optional finishReasons As String() = Nothing, Optional responseId As String = Nothing)

Parameters

operationName
InferenceOperationType

Telemetry identifier for the inference operation.

model
String

Model name used to satisfy the inference request.

providerName
String

Provider responsible for the inference call.

inputTokens
Nullable<Int32>

Optional count of tokens provided as input.

outputTokens
Nullable<Int32>

Optional count of tokens produced by the model.

finishReasons
String[]

Optional set of finish reasons supplied by the model.

responseId
String

Optional identifier for the model response.

Applies to