AgentOptimizationJobs
Get a candidate for an agent optimization job
Retrieves a single candidate. Mutation values are always included. Skill optimization detail includes independent skill results, resolved context, and the persisted execution snapshot when available; these detail fields are omitted from candidate lists.
Pfadparameter
jobId
string
Erforderlich
The ID of the parent optimization job.
candidateId
string
Erforderlich
The candidate identifier.
Abfrageparameter
api-version
string
Erforderlich
The API version to use for this operation.
Antworten
The request has succeeded.
Text
candidate_id
string
Erforderlich
Server-assigned candidate identifier.
job_id
string
Erforderlich
Identifier of the parent optimization job.
name
string
Erforderlich
Display name of the candidate (e.g., 'baseline', 'instruction-v2').
status
string | enum
Erforderlich
The candidate's lifecycle state.
enum
error
OpenAI.Error
misalignment
OpenAI.MisalignmentErrorDetailsResource
error_type
string | enum
enum
detailed_explanation
string
The public explanation for this block.
steer
OpenAI._MisalignmentSteer
message
string
Erforderlich
The public continuation instruction.
details
OpenAI.Error[]
Additional errors that contributed to this failure.
additionalInfo
object
Additional structured information about the failure.
debugInfo
object
Diagnostic information supplied by the service for troubleshooting.
output
agent_optimization | prompt_optimization | skill_optimization
Base candidate output. Job types define derived output models with their own fields.
agent_optimization
AgentOptimizationAgentCandidateOutput
Candidate output produced by an agent-optimization job.
type
enum
Erforderlich
mutations
AgentOptimizationMutation[]
Typed configuration mutations applied to the baseline. Omitted for the baseline candidate. LIST without expand=mutations returns mutation items with only type; expanded LIST and candidate GET populate each mutation's value.
prompt_optimization
AgentOptimizationPromptCandidateOutput
Candidate output produced by a prompt-optimization job.
type
enum
Erforderlich
mutations
AgentOptimizationMutation[]
Typed configuration mutations applied to the baseline. Omitted for the baseline candidate. LIST without expand=mutations returns mutation items with only type; expanded LIST and candidate GET populate each mutation's value.
skill_optimization
AgentOptimizationSkillCandidateOutput
Output of the single generated candidate produced by trace-driven skill optimization. It can contain zero or more independent skill outcomes. Optional reporting-only evaluation reuses a baseline candidate and each candidate's evaluation summary; the baseline is not a generated alternative.
type
enum
Erforderlich
Skill optimization output discriminator.
skill_results
AgentOptimizationSkillResult[]
Independent proposed skill outcomes. A completed empty array means no changes were proposed, for example because there were no new learnings; no new versions are published in that case. Discovered but untouched skills do not require outcomes. Populated on candidate GET when available and omitted from LIST summaries.
execution_summary
AgentOptimizationSkillExecutionSummary
Persisted candidate execution snapshot, including partial runs. Not exposed on the job or candidate list response.
steps
AgentOptimizationSkillExecutionStep[]
Erforderlich
At most eleven distinct steps in pipeline order. Older snapshots may omit collect_feedback or evaluate_training_traces.
resolved_context
AgentOptimizationSkillResolvedContext
Frozen evidence and discovered baselines, without duplicating requested job configuration.
source_trace_ids
string[]
Complete evidence cohort, including traces that produced no artifact. Omitted before resolution; an empty array means a resolved empty cohort.
agent_skills
AgentOptimizationSkillReference[]
Deduplicated exact baselines discovered from the agent and its toolboxes. Excludes skills supplied only through skill_references context items and does not imply invocation. Omitted before discovery; empty when none were discovered or the job is agentless.
rationale
string
Human-readable explanation of why the optimizer produced this candidate. Populated on candidate GET when available and omitted from LIST.
files
AgentOptimizationCandidateFile[]
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.
agent_version
string
Foundry agent version associated with this candidate. Omitted when no temporary or evaluated agent version was created.
evaluation
AgentOptimizationCandidateEvaluation
Comparative evaluation summary for a candidate.
score
number
Average composite score across evaluated tasks. Omitted until scoring produces an aggregate score.
avg_tokens
number
Average total tokens consumed per task. Omitted when token usage was not measured.
avg_latency_ms
integer
A duration encoded as an integer number of milliseconds.
eval_id
string
Foundry evaluation identifier used to score this candidate. Omitted when unavailable.
eval_run_id
string
Foundry evaluation run identifier used to score this candidate. Omitted when unavailable.
promotion
AgentOptimizationCandidatePromotionInfo
Promotion metadata recorded for a candidate.
promoted_agent
AgentReference
Erforderlich
type
enum
Erforderlich
name
string
Erforderlich
The name of the agent.
version
string
The version identifier of the agent.
Anfordern
GET /agent_optimization_jobs/{jobId}/candidates/{candidateId} HTTP/1.1
Antwort
Status: 200
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json