Status
Token saving capabilities and recommendations
Usage
After a function is initialized you can run /agent/status
to access the current status of the agent
POST
/agent/status
Calling /logs will return
Headers
Body
Name
Type
Required
Description
Response
{
"status" : {
"code" : 1,
"status" : "waiting for user",
"error": null
},
"error": null
}
{
"error": "Invalid request"
}
Possible Status
{
"status" : "waiting for user",
"error": null
}
{
"status" : "waiting for agent",
"agent" : "agent_name",
"error": null
}
{
"status" : "waiting for tool",
"tool" : "function_name",
"error": null
}
{
"status" : "error",
"error": {
"code" : 1,
"message" : "error message"
}
}
{
"status" : "deploying code",
"tool" : "function_name",
"error": null
}
{
"status" : "testing code",
"test" : "test objective",
"error": null
}
Last updated