Constructs a Zod schema for ToolCallResult that matches the TypeScript types defined in tool2agent.ts.
Zod schema for the tool input type (can be ZodObject for records or any ZodType for non-records)
Zod schema for the tool output type
Zod schema for ToolCallResult<InputType, OutputType>
Constructs a Zod schema for ToolCallResult that matches the TypeScript types defined in tool2agent.ts.