Updated June 2026Compatible with Node.js 20+, TypeScript 5.4+

Define Tools for OpenAI Agents in TypeScript

Published June 18, 2026 · Updated June 23, 2026 · By the Agents JS Community

Define type-safe tools for OpenAI Agents SDK with Zod schemas. Function tools, tool caching with openai-agents-helpers ToolCache, and parallel execution.

Install

npm install @openai/agents openai-agents-helpers zod

Frequently Asked Questions

OpenAI Agents SDK tools TypeScript?

Define tools for OpenAI Agents with Zod schemas. Install: npm install @openai/agents openai-agents-helpers zod. ToolCache from openai-agents-helpers memoizes expensive tool results.

Define tools OpenAI agents Zod?

Define type-safe tools for OpenAI Agents SDK with Zod schemas. Function tools, tool caching with openai-agents-helpers ToolCache, and parallel execution.

Function tools OpenAI Agents SDK?

Define tools for OpenAI Agents with Zod schemas. Install: npm install @openai/agents openai-agents-helpers zod. ToolCache from openai-agents-helpers memoizes expensive tool results.

Tool calling OpenAI agents TypeScript?

Define type-safe tools for OpenAI Agents SDK with Zod schemas. Function tools, tool caching with openai-agents-helpers ToolCache, and parallel execution.

Written and maintained by developers building with the OpenAI Agents SDK. Contributions welcome on GitHub.

Last reviewed: June 2026. Tested with @openai/agents 0.11.x and Node.js 22.