Delete Task State
import os
from agentex import Agentex
client = Agentex(
api_key=os.environ.get("AGENTEX_SDK_API_KEY"), # This is the default and can be omitted
)
state = client.states.delete(
"state_id",
)
print(state.id){
"id": "id",
"agent_id": "agent_id",
"created_at": "2019-12-27T18:11:19.117Z",
"state": {
"foo": "bar"
},
"task_id": "task_id",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "id",
"agent_id": "agent_id",
"created_at": "2019-12-27T18:11:19.117Z",
"state": {
"foo": "bar"
},
"task_id": "task_id",
"updated_at": "2019-12-27T18:11:19.117Z"
}