Agents
Test an agent
Run the agent's prompt, model and knowledge base against a message and return the reply instead of delivering it. Writes nothing and charges nothing, so it is safe to call repeatedly while iterating on a prompt.
Note that this exercises the text path, which does not offer tools to the model. When the agent has enabled tools, that is reported in warnings rather than silently producing an answer that looks like a tool call happened.
post/v1/agents/{agentId}/test
Path parameters
agentIdstring required
Agent ID.
Request body
Example request
{
"message": "Where is order ORD-12345?"
}Response
The agent's reply.