---
layout: default
---

# Usando Tools Integradas

<div class="text-sm mt-6">

<v-click>

```typescript
import { TavilySearchResults } from "@langchain/community/tools/tavily_search";
import { WikipediaQueryRun } from "@langchain/community/tools/wikipedia_query_run";
import { Calculator } from "@langchain/community/tools/calculator";

// Crear instancias de las tools
const tavilySearch = new TavilySearchResults({
  apiKey: process.env.TAVILY_API_KEY,
  maxResults: 3,
});

const wikipedia = new WikipediaQueryRun({
  topKResults: 2,
  maxDocContentLength: 4000,
});

const calculator = new Calculator();

// Usar con un agente
const tools = [tavilySearch, wikipedia, calculator];
```

</v-click>

<v-click>

<div class="mt-4 text-xs bg-yellow-50 dark:bg-yellow-900/20 p-3 rounded">

**Paquete:** La mayoria de tools integradas estan en `@langchain/community`

```bash
npm install @langchain/community
```

</div>

</v-click>

</div>

