Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tavily

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tavily

TS SDK for the Tavily search API which is tailored for LLM agents.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NPM Build Status MIT License Prettier Code Formatting

Tavily

Tavily is a search API tailored for LLM Agents.

Install

npm install tavily

This package is ESM only and requires Node.js >= 18 or an equivalent environment (bun, deno, CF workers, etc).

Usage

Sign up for a Tavily API key.

import { TavilyClient } from 'tavily'

const tavily = new TavilyClient() // api key defaults to "TAVILY_API_KEY" env var

const result0 = await tavily.search('what is AGI?')
console.log(result0)

const result1 = await tavily.search({
  query: 'when can we expect to have AGI?',
  search_depth: 'advanced',
  include_answer: true,
  include_images: true,
  max_results: 10
})
console.log(result1)

See the Tavily docs for more info.

License

MIT © Travis Fischer

To stay up to date or learn more, follow @transitive_bs on Twitter.

FAQs

Package last updated on 06 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc