AgentOptimizationJobResult interface

Partial or terminal result produced by an agent optimization job.

Properties

candidate_summary

Summary of candidates produced by the job. Omitted until candidate processing begins.

latency_metrics

Aggregate latency per stage and model. Always present; empty when no server-measured latency is available.

termination_reason

Reason the candidate search terminated. Omitted for jobs that do not comparatively evaluate candidates and until the job reaches a terminal state.

token_usage

Aggregate token usage per stage and model. Always present; empty array when no calls were measured.

Property Details

candidate_summary

Summary of candidates produced by the job. Omitted until candidate processing begins.

candidate_summary?: AgentOptimizationResultCandidateSummary

Property Value

latency_metrics

Aggregate latency per stage and model. Always present; empty when no server-measured latency is available.

latency_metrics: AgentOptimizationJobLatency[]

Property Value

termination_reason

Reason the candidate search terminated. Omitted for jobs that do not comparatively evaluate candidates and until the job reaches a terminal state.

termination_reason?: AgentOptimizationTerminationReason

Property Value

token_usage

Aggregate token usage per stage and model. Always present; empty array when no calls were measured.

token_usage: AgentOptimizationJobTokenUsage[]

Property Value