Test 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"
}Changes
Changed in 2 of the 8 revisions of this API.16
- ○
the
/////////request property's max was increased from300.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
/////////////////request property's max was increased from3600.00to21600.00request-property-max-increased
- ○
the
//////////////request property's max was increased from3600.00to21600.00request-property-max-increased
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
request property
/////////deprecatedrequest-property-deprecated
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○