AI
Test exact compiled Playbook artifact
POST
/
v1
/
ai
/
agents
/
{agentID}
/
playbooks
/
{playbookID}
/
tests
Test exact compiled Playbook artifact
curl --request POST \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/tests \
--header 'Content-Type: application/json' \
--data '
{
"compiler_version": "<string>",
"input": {},
"mode": "<string>",
"plan_hash": "<string>",
"playbook_version_id": "<string>",
"scenario": "<string>",
"source_hash": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
compiler_version: '<string>',
input: {},
mode: '<string>',
plan_hash: '<string>',
playbook_version_id: '<string>',
scenario: '<string>',
source_hash: '<string>'
})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/tests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/tests"
payload = {
"compiler_version": "<string>",
"input": {},
"mode": "<string>",
"plan_hash": "<string>",
"playbook_version_id": "<string>",
"scenario": "<string>",
"source_hash": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"identity": {
"compiler_version": "<string>",
"plan_hash": "<string>",
"playbook_id": "<string>",
"source_hash": "<string>",
"deployment_id": "<string>",
"plan_step_id": "<string>",
"playbook_release_id": "<string>",
"playbook_version_id": "<string>",
"source_node_id": "<string>"
},
"ok": true,
"plan": {
"compiler_version": "<string>",
"entry_step_id": "<string>",
"execution_mode": "<string>",
"resource_grants": [
{
"kind": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"label": "<string>"
}
],
"schema_version": 123,
"settings": {
"max_playbook_call_depth": 123,
"max_retries_per_step": 123,
"max_steps": 123
},
"source_hash": "<string>",
"steps": [
{
"id": "<string>",
"kind": "<string>",
"branches": {},
"config": {},
"next": "<string>",
"source_node_id": "<string>"
}
],
"terminal_outcomes": [
"<string>"
],
"inputs": [
{}
]
},
"stale": true,
"validation": {
"compiled_at": "2023-11-07T05:31:56Z",
"compiler_version": "<string>",
"diagnostics": [
{
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"path": "<string>",
"source_node_id": "<string>"
}
],
"ok": true,
"source_hash": "<string>",
"plan_hash": "<string>"
},
"message": "<string>",
"outcome": "<string>",
"steps": [
{}
],
"trace": [
{}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
⌘I
Test exact compiled Playbook artifact
curl --request POST \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/tests \
--header 'Content-Type: application/json' \
--data '
{
"compiler_version": "<string>",
"input": {},
"mode": "<string>",
"plan_hash": "<string>",
"playbook_version_id": "<string>",
"scenario": "<string>",
"source_hash": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
compiler_version: '<string>',
input: {},
mode: '<string>',
plan_hash: '<string>',
playbook_version_id: '<string>',
scenario: '<string>',
source_hash: '<string>'
})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/tests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/tests"
payload = {
"compiler_version": "<string>",
"input": {},
"mode": "<string>",
"plan_hash": "<string>",
"playbook_version_id": "<string>",
"scenario": "<string>",
"source_hash": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"identity": {
"compiler_version": "<string>",
"plan_hash": "<string>",
"playbook_id": "<string>",
"source_hash": "<string>",
"deployment_id": "<string>",
"plan_step_id": "<string>",
"playbook_release_id": "<string>",
"playbook_version_id": "<string>",
"source_node_id": "<string>"
},
"ok": true,
"plan": {
"compiler_version": "<string>",
"entry_step_id": "<string>",
"execution_mode": "<string>",
"resource_grants": [
{
"kind": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"label": "<string>"
}
],
"schema_version": 123,
"settings": {
"max_playbook_call_depth": 123,
"max_retries_per_step": 123,
"max_steps": 123
},
"source_hash": "<string>",
"steps": [
{
"id": "<string>",
"kind": "<string>",
"branches": {},
"config": {},
"next": "<string>",
"source_node_id": "<string>"
}
],
"terminal_outcomes": [
"<string>"
],
"inputs": [
{}
]
},
"stale": true,
"validation": {
"compiled_at": "2023-11-07T05:31:56Z",
"compiler_version": "<string>",
"diagnostics": [
{
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"path": "<string>",
"source_node_id": "<string>"
}
],
"ok": true,
"source_hash": "<string>",
"plan_hash": "<string>"
},
"message": "<string>",
"outcome": "<string>",
"steps": [
{}
],
"trace": [
{}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}