langgraph_agent_toolkit.schema.task_data module

class langgraph_agent_toolkit.schema.task_data.TaskData(*, name=None, run_id='', state=None, result=None, data={})[source][source]

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:
  • name (str | None)

  • run_id (str)

  • state (Literal['new', 'running', 'complete'] | None)

  • result (Literal['success', 'error'] | None)

  • data (dict[str, Any])

name: str | None
run_id: str
state: Literal['new', 'running', 'complete'] | None
result: Literal['success', 'error'] | None
data: dict[str, Any]
completed()[source][source]
Return type:

bool

completed_with_error()[source][source]
Return type:

bool

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class langgraph_agent_toolkit.schema.task_data.TaskDataStatus[source][source]

Bases: object

__init__()[source][source]
Return type:

None

current_task_data: dict[str, TaskData]
add_and_draw_task_data(task_data)[source][source]
Parameters:

task_data (TaskData)

Return type:

None