langgraph_agent_toolkit.agents.blueprints.bg_task_agent.utils module

class langgraph_agent_toolkit.agents.blueprints.bg_task_agent.utils.CustomData(*, data)[source][source]

Bases: BaseModel

Custom data sent by an agent.

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:

data (dict[str, Any])

data: dict[str, Any]
to_langchain()[source][source]
Return type:

ChatMessage

dispatch(writer)[source][source]
Parameters:

writer (Callable[[Any], None])

Return type:

None

model_config = {}

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