ClientToolsState

The slice of graph state this middleware reads.

import type { ClientToolsState } from '@threadplane/middleware/langgraph';

Declaration

export interface ClientToolsState  {
  client_tools?: ClientToolSpec[];
  messages: BaseMessage[];
  tools?: ClientToolSpec[];
}

Members

client_tools

Fallback channel — the raw run input key.

client_tools?: ClientToolSpec[];

messages

messages: BaseMessage[];

tools

Primary channel — AG-UI/LangGraph merges RunAgentInput.tools here.

tools?: ClientToolSpec[];