AI Agents
Evaluate an AI agent prompt
POST /aiAgent/{id}/prompt-eval
POST /aiAgent/{id}/prompt-eval
Run the LLM prompt that belongs to the given AI agent against a sample input and return the raw model output. Used by the prompt editor in ops-fe to iterate on prompt wording without deploying the agent.
Path parameters
idintegerpathrequiredID of the AI agent.
Request body
promptstringbodyPrompt template to evaluate (overrides the agent's stored prompt for this call).
ticketIdintegerbodyOptional ticket id to inject ticket context into the prompt.
variablesobjectbodyAdditional template variables.
Request Example
{
"prompt": "string",
"ticketId": 1,
"variables": null
}Responses
200 — Successful operation
Response Example
{
"output": "string",
"tokens": null
}400 — Invalid input
403 — Unauthorized