Infer the discriminated union of AssembledToolCall handles from an agent brand, an array of LangChain tools, or fall back to the untyped default handle.
Pass typeof agent or typeof tools and narrow on name / args
(aliases for input) in tool-call UI components.
InferToolCalls: T extends readonly unknown[] ToolCallFromTool<
T[number]
> : ExtractAgentConfig<T>["Tools"] extends Tools