AgentOptimizationCandidate interface
A candidate generated by an optimization job.
Properties
| agent_version | Foundry agent version associated with this candidate. Omitted when no temporary or evaluated agent version was created. |
| candidate_id | Server-assigned candidate identifier. |
| error | Primary failure or skip reason. Omitted for other candidate statuses. |
| evaluation | Evaluation summary, including reporting-only measurements for skill baseline and generated candidates. Omitted when no measurements are available. Missing scores do not imply success or zero. |
| execution_summary | Persisted skill execution snapshot, including partial outcomes. Populated on candidate GET when available and omitted from LIST. |
| files | Metadata for files generated for this candidate, such as trace analysis. Populated on candidate GET when available and omitted from LIST. An empty list means no files were generated; omission means the inventory is not available. Metadata does not provide file content or a download URL. |
| job_id | Identifier of the parent optimization job. |
| name | Display name of the candidate (e.g., 'baseline', 'instruction-v2'). |
| output | Typed output generated for this candidate. The output type matches the parent job's optimization type. Omitted until output is available. |
| promotion | Promotion metadata. Omitted if this candidate has not been promoted. |
| rationale | Human-readable explanation of why the optimizer produced this candidate. Populated on candidate GET when available and omitted from LIST. |
| resolved_context | Frozen trace cohort and discovered agent skills for skill optimization. Populated on candidate GET when available and omitted from LIST. |
| started_at | Timestamp when work on this candidate slot began, represented in Unix time. |
| status | The candidate's current lifecycle state. |
Property Details
agent_version
Foundry agent version associated with this candidate. Omitted when no temporary or evaluated agent version was created.
agent_version?: string
Property Value
string
candidate_id
Server-assigned candidate identifier.
candidate_id: string
Property Value
string
error
Primary failure or skip reason. Omitted for other candidate statuses.
error?: ErrorModel
Property Value
evaluation
Evaluation summary, including reporting-only measurements for skill baseline and generated candidates. Omitted when no measurements are available. Missing scores do not imply success or zero.
evaluation?: AgentOptimizationCandidateEvaluation
Property Value
execution_summary
Persisted skill execution snapshot, including partial outcomes. Populated on candidate GET when available and omitted from LIST.
execution_summary?: AgentOptimizationSkillExecutionSummary
Property Value
files
Metadata for files generated for this candidate, such as trace analysis. Populated on candidate GET when available and omitted from LIST. An empty list means no files were generated; omission means the inventory is not available. Metadata does not provide file content or a download URL.
files?: AgentOptimizationCandidateFile[]
Property Value
job_id
Identifier of the parent optimization job.
job_id: string
Property Value
string
name
Display name of the candidate (e.g., 'baseline', 'instruction-v2').
name: string
Property Value
string
output
Typed output generated for this candidate. The output type matches the parent job's optimization type. Omitted until output is available.
output?: AgentOptimizationCandidateOutputUnion
Property Value
promotion
Promotion metadata. Omitted if this candidate has not been promoted.
promotion?: AgentOptimizationCandidatePromotionInfo
Property Value
rationale
Human-readable explanation of why the optimizer produced this candidate. Populated on candidate GET when available and omitted from LIST.
rationale?: string
Property Value
string
resolved_context
Frozen trace cohort and discovered agent skills for skill optimization. Populated on candidate GET when available and omitted from LIST.
resolved_context?: AgentOptimizationSkillResolvedContext
Property Value
started_at
Timestamp when work on this candidate slot began, represented in Unix time.
started_at: Date
Property Value
Date
status
The candidate's current lifecycle state.
status: AgentOptimizationCandidateStatus