0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/integrations/perplexity
History 2026-10-22 14:33:21 +02:00
..
src feat(tools): add Perplexity Search tool + provider docs (#15939) 2026-04-30 14:56:17 -07: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(tools): add Perplexity Search tool + provider docs (#15939) 2026-04-30 14:56:17 -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(tools): add Perplexity Search tool + provider docs (#15939) 2026-04-30 14:56:17 -07:00

@mastra/perplexity

Web search tool for Mastra agents, backed by the Perplexity Search API.

Installation

npm install @mastra/perplexity

Usage

Set PERPLEXITY_API_KEY before creating the search tool.

import { Agent } from '@mastra/core/agent';
import { createPerplexitySearchTool } from '@mastra/perplexity';

export const researchAgent = new Agent({
  id: 'research-agent',
  name: 'Research Agent',
  model: 'openai/gpt-5.6-sol',
  instructions: 'Use web search to find current sources before answering.',
  tools: {
    search: createPerplexitySearchTool(),
  },
});

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.