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
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Required
Description
agent
string
Agent name
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
Was this helpful?