v4

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-13216144508.7 KB
agents

Optimize Instructions

Optimize agent instructions using an LLM.

post/api/agents/optimize-instructions

Request body

instructionsstring required

Draft instructions to optimize

model_idinteger nullable

Model ID to use for optimization

Response

Successful Response

object required