0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/integrations/tavily
History 2026-10-22 14:33:21 +02:00
..
src fix(tavily): use client name attribution (#19607) 2026-07-17 10:36:39 +02:00
CHANGELOG.md chore: version - exit prerelease mode 2026-10-21 11:26:39 +00:00
lint-staged.config.js refactor(lint): replace ESLint with type-aware oxlint (#27476) 2026-10-18 10:38:35 -07:00
package.json chore(deps): update build tools (#27997) 2026-10-22 14:33:21 +02:00
README.md chore(*): Update/unify/add READMEs (#22858) 2026-09-02 14:36:59 +02:00
tsconfig.build.json feat: add Tavily integration package (#15448) 2026-04-21 17:08:21 -07:00
tsconfig.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
tsdown.config.ts chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
turbo.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
vitest.config.ts feat: add Tavily integration package (#15448) 2026-04-21 17:08:21 -07:00

@mastra/tavily

Add Tavily search, extract, crawl, and map tools to Mastra agents with shared configuration, typed Zod schemas, and structured web results.

Installation

npm install @mastra/tavily

Usage

Set TAVILY_API_KEY before creating the tools.

import { Agent } from '@mastra/core/agent';
import { createTavilyExtractTool, createTavilySearchTool } from '@mastra/tavily';

export const researchAgent = new Agent({
  id: 'research-agent',
  name: 'Research Agent',
  model: 'openai/gpt-5.6-sol',
  instructions: 'Search for relevant pages, then extract the best sources before answering.',
  tools: {
    search: createTavilySearchTool(),
    extract: createTavilyExtractTool(),
  },
});

Documentation

Changelog

See the package changelog for version history and release notes.

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.