State
Token saving capabilities and recommendations
Usage
After a session is initialized you can run /agent/session/state
to access the last message of a session with an agent
POST
/agent/session/state
Calling /logs will return
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Required
Description
session_id
string
Unique identifier of the running process.
Response
{
"message": "message example",
"status" : {
"code" : 1,
"status" : "waiting for user",
"error": null
},
"error": null
}
Last updated
Was this helpful?