curl --request POST \
--url https://app.happyrobot.ai/api/v1/evaluate/{id}/generate \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"agent_id": "<string>",
"messages": [
{
"id": "<string>",
"role": "system",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"name": "<string>",
"tool_call_id": "<string>",
"start": 123,
"end": 123,
"unpreferred_messages": [
{
"id": "<string>",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
}
],
"interrupted_thoughts": "<string>",
"is_filler": true,
"discard": false,
"transfer_contact": {
"type": "Sales Rep",
"name": "<string>",
"email": "<string>",
"phone": {
"number": "<string>",
"extension": "<string>"
},
"contact_id": "<string>",
"slack_channel_id": "<string>"
}
}
],
"model": "<string>",
"temperature": 0.1,
"date": "<string>",
"params": {},
"language": "en-US",
"selectedRootNodeId": "<string>"
}'
{
"id": "<string>",
"role": "system",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"name": "<string>",
"tool_call_id": "<string>",
"start": 123,
"end": 123,
"unpreferred_messages": [
{
"id": "<string>",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
}
],
"interrupted_thoughts": "<string>",
"is_filler": true,
"discard": false,
"transfer_contact": {
"type": "Sales Rep",
"name": "<string>",
"email": "<string>",
"phone": {
"number": "<string>",
"extension": "<string>"
},
"contact_id": "<string>",
"slack_channel_id": "<string>"
}
}
Your API key for authentication. Use Bearer format.
"Bearer API_KEY"
24
Body
The body is of type object
.
200
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://app.happyrobot.ai/api/v1/evaluate/{id}/generate \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"agent_id": "<string>",
"messages": [
{
"id": "<string>",
"role": "system",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"name": "<string>",
"tool_call_id": "<string>",
"start": 123,
"end": 123,
"unpreferred_messages": [
{
"id": "<string>",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
}
],
"interrupted_thoughts": "<string>",
"is_filler": true,
"discard": false,
"transfer_contact": {
"type": "Sales Rep",
"name": "<string>",
"email": "<string>",
"phone": {
"number": "<string>",
"extension": "<string>"
},
"contact_id": "<string>",
"slack_channel_id": "<string>"
}
}
],
"model": "<string>",
"temperature": 0.1,
"date": "<string>",
"params": {},
"language": "en-US",
"selectedRootNodeId": "<string>"
}'
{
"id": "<string>",
"role": "system",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"name": "<string>",
"tool_call_id": "<string>",
"start": 123,
"end": 123,
"unpreferred_messages": [
{
"id": "<string>",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
}
],
"interrupted_thoughts": "<string>",
"is_filler": true,
"discard": false,
"transfer_contact": {
"type": "Sales Rep",
"name": "<string>",
"email": "<string>",
"phone": {
"number": "<string>",
"extension": "<string>"
},
"contact_id": "<string>",
"slack_channel_id": "<string>"
}
}
curl --request POST \
--url https://app.happyrobot.ai/api/v1/evaluate/{id}/generate \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"agent_id": "<string>",
"messages": [
{
"id": "<string>",
"role": "system",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"name": "<string>",
"tool_call_id": "<string>",
"start": 123,
"end": 123,
"unpreferred_messages": [
{
"id": "<string>",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
}
],
"interrupted_thoughts": "<string>",
"is_filler": true,
"discard": false,
"transfer_contact": {
"type": "Sales Rep",
"name": "<string>",
"email": "<string>",
"phone": {
"number": "<string>",
"extension": "<string>"
},
"contact_id": "<string>",
"slack_channel_id": "<string>"
}
}
],
"model": "<string>",
"temperature": 0.1,
"date": "<string>",
"params": {},
"language": "en-US",
"selectedRootNodeId": "<string>"
}'
{
"id": "<string>",
"role": "system",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"name": "<string>",
"tool_call_id": "<string>",
"start": 123,
"end": 123,
"unpreferred_messages": [
{
"id": "<string>",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
}
],
"interrupted_thoughts": "<string>",
"is_filler": true,
"discard": false,
"transfer_contact": {
"type": "Sales Rep",
"name": "<string>",
"email": "<string>",
"phone": {
"number": "<string>",
"extension": "<string>"
},
"contact_id": "<string>",
"slack_channel_id": "<string>"
}
}
Your API key for authentication. Use Bearer format.
"Bearer API_KEY"
24
Body
The body is of type object
.
200
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://app.happyrobot.ai/api/v1/evaluate/{id}/generate \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"agent_id": "<string>",
"messages": [
{
"id": "<string>",
"role": "system",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"name": "<string>",
"tool_call_id": "<string>",
"start": 123,
"end": 123,
"unpreferred_messages": [
{
"id": "<string>",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
}
],
"interrupted_thoughts": "<string>",
"is_filler": true,
"discard": false,
"transfer_contact": {
"type": "Sales Rep",
"name": "<string>",
"email": "<string>",
"phone": {
"number": "<string>",
"extension": "<string>"
},
"contact_id": "<string>",
"slack_channel_id": "<string>"
}
}
],
"model": "<string>",
"temperature": 0.1,
"date": "<string>",
"params": {},
"language": "en-US",
"selectedRootNodeId": "<string>"
}'
{
"id": "<string>",
"role": "system",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"name": "<string>",
"tool_call_id": "<string>",
"start": 123,
"end": 123,
"unpreferred_messages": [
{
"id": "<string>",
"content": "<string>",
"tool_calls": [
{
"type": "<string>",
"id": "<string>",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
}
],
"interrupted_thoughts": "<string>",
"is_filler": true,
"discard": false,
"transfer_contact": {
"type": "Sales Rep",
"name": "<string>",
"email": "<string>",
"phone": {
"number": "<string>",
"extension": "<string>"
},
"contact_id": "<string>",
"slack_channel_id": "<string>"
}
}