Zu Hauptinhalt wechseln

Dieser Browser wird nicht mehr unterstützt.

Führen Sie ein Upgrade auf Microsoft Edge durch, um die neuesten Features, Sicherheitsupdates und den technischen Support zu nutzen.

Microsoft Edge herunterladen Weitere Informationen zu Internet Explorer und 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.

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

Content-Type: application/json
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.

Eines der folgenden Elemente:
string
enum
generatingevaluatingcompletedfailedskipped
error OpenAI.Error
code string | null Erforderlich
message string Erforderlich
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Eines der folgenden Elemente:
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 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.

started_at integer Erforderlich
output agent_optimization | prompt_optimization | skill_optimization

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

Eins der folgenden:
agent_optimization AgentOptimizationAgentCandidateOutput

Candidate output produced by an agent-optimization job.

type enum Erforderlich
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 Erforderlich
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 Erforderlich

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

completed_at integer
promotion AgentOptimizationCandidatePromotionInfo

Promotion metadata recorded for a candidate.

promoted_at integer Erforderlich
promoted_agent AgentReference Erforderlich
type enum Erforderlich
agent_reference
name string Erforderlich

The name of the agent.

version string

The version identifier of the agent.

Client error

Text

Content-Type: application/json
error OpenAI.Error Erforderlich
code string | null Erforderlich
message string Erforderlich
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Eines der folgenden Elemente:
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 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.

Server error

Text

Content-Type: application/json
error OpenAI.Error Erforderlich
code string | null Erforderlich
message string Erforderlich
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Eines der folgenden Elemente:
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 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.

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
de-de
Ihre Datenschutzoptionen
  • KI-Haftungsausschluss
  • Frühere Versionen
  • Blog
  • Mitwirken
  • Datenschutz
  • Consumer Health Privacy
  • Nutzungsbedingungen
  • Impressum
  • Marken
  • © Microsoft 2026