import type { ToolCall, ToolCallChunk } from '@langchain/core/messages/tool'; import type { Graph, MultiAgentGraph, StandardGraph } from '@/graphs'; import type { AgentContext } from '@/agents/AgentContext'; import type * as t from '@/types'; export declare function handleToolCallChunks({ graph, stepKey, toolCallChunks, metadata, }: { graph: StandardGraph | MultiAgentGraph; stepKey: string; toolCallChunks: ToolCallChunk[]; metadata?: Record; }): Promise; export declare const handleToolCalls: (toolCalls?: ToolCall[], metadata?: Record, graph?: Graph | StandardGraph | MultiAgentGraph) => Promise; export declare const toolResultTypes: Set; /** * Handles the result of a server tool call; in other words, a provider's built-in tool. * As of 2025-07-06, only Anthropic handles server tool calls with this pattern. */ export declare function handleServerToolResult({ graph, content, metadata, agentContext, }: { graph: StandardGraph | MultiAgentGraph; content?: string | t.MessageContentComplex[]; metadata?: Record; agentContext?: AgentContext; }): Promise;