Infer the discriminated union of tool call shapes from an input that
may be an agent brand, an array of LangGraph tools, or a direct
DefaultToolCall shape.
See InferToolCallsFromUi for the full resolution table.
InferToolCalls: T extends readonly unknown[] ToolCallFromTool<T[number]> : InferToolCalls<T>