InferUITool
API Reference for InferUITool.
Infers the input and output types of a tool.
This type helper is useful when working with individual tools to ensure type safety for your tool inputs and outputs in UIMessages.
Import
API Signature
Type Parameters
TOOL:
Tool
The tool to infer types from.
Returns
A type that contains the inferred input and output types of the tool.
The resulting type has the shape:
Examples
Basic Usage
Related
InferUITools- Infer types for a tool setToolUIPart- Tool part type for UI messages