Skip to main content
POST
Create Task State

Body

application/json
task_id
string
required
agent_id
string
required
state
The state to send to the task. · object
required

Response

Successful Response

Represents a state in the agent system. A state is associated uniquely with a task and an agent.

This entity is used to store states in MongoDB, with each state associated with a specific task and agent. The combination of task_id and agent_id is globally unique.

The state is a dictionary of arbitrary data.

task_id
string
required
agent_id
string
required
state
The state to send to the task. · object
required
id
string
required

The task state's unique id

created_at
string<date-time>
required

The timestamp when the state was created

updated_at
string<date-time> | null

The timestamp when the state was last updated