hasServerToolCall

True if the last message calls at least one server (non-client) tool. A call is server-side when its name is in serverToolNames OR is not a known client tool (unknown tools are assumed server-side).

import { hasServerToolCall } from '@threadplane/middleware/langgraph';

Declaration · overload 1

export declare function hasServerToolCall(state: ClientToolsState, serverToolNames: Iterable<string>): boolean;

Parameters

state · required
ClientToolsState
serverToolNames · required
Iterable<string>

Returns

boolean