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.
パス パラメーター
jobId
string
必須
The ID of the parent optimization job.
candidateId
string
必須
The candidate identifier.
クエリ パラメーター
api-version
string
必須
The API version to use for this operation.
応答
The request has succeeded.
本文
candidate_id
string
必須
Server-assigned candidate identifier.
job_id
string
必須
Identifier of the parent optimization job.
name
string
必須
Display name of the candidate (e.g., 'baseline', 'instruction-v2').
status
string | enum
必須
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
必須
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
必須
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
必須
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
必須
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[]
必須
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
必須
type
enum
必須
name
string
必須
The name of the agent.
version
string
The version identifier of the agent.
要求
GET /agent_optimization_jobs/{jobId}/candidates/{candidateId} HTTP/1.1
回答
Status: 200
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json