OptimizationJob interface

Agent optimization job resource — a long-running job that optimizes an agent's configuration (instructions, model, skills, tools) to maximize evaluation scores. On success, the result contains scored candidates.

Properties

created_at

The timestamp when the job was created, represented in Unix time.

error

Error details — populated only on failure.

id

Server-assigned unique identifier.

inputs

Caller-supplied inputs.

progress

Progress snapshot. May be present in terminal states reflecting last-known progress.

result

Result produced on success.

status

Current lifecycle status.

updated_at

The timestamp when the job was last updated, represented in Unix time.

warnings

Non-fatal warnings emitted at any point during optimization.

Property Details

created_at

The timestamp when the job was created, represented in Unix time.

created_at: Date

Property Value

Date

error

Error details — populated only on failure.

error?: ErrorModel

Property Value

id

Server-assigned unique identifier.

id: string

Property Value

string

inputs

Caller-supplied inputs.

inputs?: OptimizationJobInputs

Property Value

progress

Progress snapshot. May be present in terminal states reflecting last-known progress.

progress?: OptimizationJobProgress

Property Value

result

Result produced on success.

result?: OptimizationJobResult

Property Value

status

Current lifecycle status.

status: JobStatus

Property Value

updated_at

The timestamp when the job was last updated, represented in Unix time.

updated_at: Date

Property Value

Date

warnings

Non-fatal warnings emitted at any point during optimization.

warnings?: string[]

Property Value

string[]