Conversion properties
List of controllers to convert to Vercel tools.
typia.llm.controller<Class>(), converts all
methods of the class to toolsHttpLlm.controller(), converts all
operations from OpenAPI document to toolsOptionalprefix?: booleanWhether to prefix tool names with controller name.
If true, tool names are formatted as {controller}_{function}. If
false, only the function name is used (may cause conflicts).
Record of Vercel AI SDK Tools keyed by tool name
Convert typia controllers to Vercel AI SDK tools.
Transforms TypeScript class methods via
typia.llm.controller<Class>()or OpenAPI operations viaHttpLlm.controller()into Vercel AI SDK tools that can be used with any LLM provider (OpenAI, Anthropic, Google, etc.).Every tool call is validated by typia. If the LLM provides invalid arguments, returns a validation error formatted by LlmJson.stringify so the LLM can auto-correct in the next turn.
Example with OpenAI
Example with Anthropic
Example with HTTP Controller (OpenAPI)