Skip to content

langgraph

A graph as a seat, with an interrupt where a person must consent.

coalitionkit_langgraph

Run a LangGraph graph as a seat in a room, with an interrupt where a person must consent.

GraphSeat

A seat's connection, with room for one person's answer on its way to the host.

act async
act(
    name: str,
    arguments: dict[str, Any],
    answer: bool | None,
) -> str

Run one tool. answer is the person's, and it serves this call alone.

PersonAsked

Bases: TypedDict

What an interrupt shows: which call waits for the person's yes or no.

seat_graph

seat_graph(
    chat: BaseChatModel,
    seat: GraphSeat,
    *,
    checkpointer: BaseCheckpointSaver[Any] | None = None,
    tools: Sequence[BaseTool] | None = None,
) -> Any

Compile the graph. Run it with a thread_id; resume an interrupt with resume(yes).