v3
latestOpenAPI 3.0.02026-08-081996601.2 MBTest instruction
Tests an instruction template with supplied context and available tools. The endpoint evaluates Velocity expressions such as $tools, ${session.metadata.field}, or ${agent.metadata.field}, and returns the fully rendered template output. Use this operation to validate formatting, logic, or metadata-dependent behavior before you deploy instructions to agents.
Path parameters
The unique identifier for an instruction.
The unique identifier of the instruction to test.
Query parameters
The specific version of the instruction to test. If not specified, the platform uses the latest version.
Headers
The platform makes a best effort to complete the request in the specified seconds, or it times out.
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"context": {
"currentDate": "2024-01-15",
"companyName": "Acme Corp"
},
"tools": []
}Response
The rendered result of the instruction test.
Example response
{
"rendered_instruction": "You are a helpful customer support agent for Acme Corp. Today's date is 2024-01-15. You have access to the following tools: Web Search, Email Sender"
}