getToolCalls
The tool calls one assistant message made, with their results.
import { getToolCalls } from '@threadplane/langgraph';Declaration · overload 1
export declare function getToolCalls(aiMessage: LangGraphWireMessage, messages: readonly LangGraphWireMessage[]): readonly LangGraphToolCallWithResult[];Parameters
aiMessage· requiredLangGraphWireMessagemessages· requiredreadonly LangGraphWireMessage[]
Returns
readonly LangGraphToolCallWithResult[]