Saltar para o conteúdo principal

Este browser já não é suportado.

Atualize para o Microsoft Edge para tirar partido das mais recentes funcionalidades, atualizações de segurança e de suporte técnico.

Transferir Microsoft Edge Mais informações sobre o Internet Explorer e o Microsoft Edge
microsoft-foundry.rest.security.o-auth2-auth

AgentOptimizationJobs

Get a candidate for an agent optimization job

GET /agent_optimization_jobs/{jobId}/candidates/{candidateId}

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.

Parâmetros de caminho

jobId string obrigatório

The ID of the parent optimization job.

candidateId string obrigatório

The candidate identifier.

Parâmetros de consultas

api-version string obrigatório

The API version to use for this operation.

Respostas

The request has succeeded.

Corpo

Content-Type: application/json
candidate_id string obrigatório

Server-assigned candidate identifier.

job_id string obrigatório

Identifier of the parent optimization job.

name string obrigatório

Display name of the candidate (e.g., 'baseline', 'instruction-v2').

status string | enum obrigatório

The candidate's lifecycle state.

Qualquer uma das seguintes opções:
string
enum
generatingevaluatingcompletedfailedskipped
error OpenAI.Error
code string | null obrigatório
message string obrigatório
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Qualquer uma das seguintes opções:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string obrigatório

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.

started_at integer obrigatório
output agent_optimization | prompt_optimization | skill_optimization

Base candidate output. Job types define derived output models with their own fields.

Um dos seguintes:
agent_optimization AgentOptimizationAgentCandidateOutput

Candidate output produced by an agent-optimization job.

type enum obrigatório
agent_optimization
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 obrigatório
prompt_optimization
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 obrigatório

Skill optimization output discriminator.

skill_optimization
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.

updated_at integer obrigatório
steps AgentOptimizationSkillExecutionStep[] obrigatório

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.

completed_at integer
promotion AgentOptimizationCandidatePromotionInfo

Promotion metadata recorded for a candidate.

promoted_at integer obrigatório
promoted_agent AgentReference obrigatório
type enum obrigatório
agent_reference
name string obrigatório

The name of the agent.

version string

The version identifier of the agent.

Client error

Corpo

Content-Type: application/json
error OpenAI.Error obrigatório
code string | null obrigatório
message string obrigatório
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Qualquer uma das seguintes opções:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string obrigatório

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.

Server error

Corpo

Content-Type: application/json
error OpenAI.Error obrigatório
code string | null obrigatório
message string obrigatório
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Qualquer uma das seguintes opções:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string obrigatório

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.

Pedir

GET /agent_optimization_jobs/{jobId}/candidates/{candidateId} HTTP/1.1

Response

Status: 200
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json
pt-pt
Suas opções de privacidade
  • Exclusão de responsabilidade de IA
  • Versões anteriores
  • Blogue
  • Contribuir
  • Privacidade
  • Privacidade da Saúde do Consumidor
  • Termos de Utilização
  • Marcas Comerciais
  • © Microsoft 2026