AzureAIProjectsModelFactory.TracesEvaluatorGenerationJobSource Method

Definition

Traces source for evaluator generation jobs — conversation traces from Application Insights.

public static Azure.AI.Projects.TracesEvaluatorGenerationJobSource TracesEvaluatorGenerationJobSource(string description = default, string agentId = default, string agentName = default, string agentVersion = default, DateTimeOffset startAt = default, DateTimeOffset? endAt = default);
static member TracesEvaluatorGenerationJobSource : string * string * string * string * DateTimeOffset * Nullable<DateTimeOffset> -> Azure.AI.Projects.TracesEvaluatorGenerationJobSource
Public Shared Function TracesEvaluatorGenerationJobSource (Optional description As String = Nothing, Optional agentId As String = Nothing, Optional agentName As String = Nothing, Optional agentVersion As String = Nothing, Optional startAt As DateTimeOffset = Nothing, Optional endAt As Nullable(Of DateTimeOffset) = Nothing) As TracesEvaluatorGenerationJobSource

Parameters

description
String

Optional description of what this source represents — helps the pipeline interpret its content (e.g., 'Company refund policy document' or 'Describes the agent's core capabilities').

agentId
String

The unique agent ID used to filter traces. Provide either agent_id or agent_name — at least one is required.

agentName
String

The agent name to fetch traces for. Provide either agent_id or agent_name — at least one is required.

agentVersion
String

The agent version. If not specified, traces for ALL versions of the agent are included within the time window.

startAt
DateTimeOffset

Start of the time window (Unix timestamp in seconds) for fetching traces.

endAt
Nullable<DateTimeOffset>

End of the time window (Unix timestamp in seconds). Defaults to current time.

Returns

A new TracesEvaluatorGenerationJobSource instance for mocking.

Applies to