---
layout: default
---

# APIs Nativas de los Providers

Cada provider tiene su SDK oficial para Node.js/TS

<v-clicks>

<div class="grid grid-cols-2 gap-6 mt-4">

<div>

### OpenAI SDK
```typescript
import OpenAI from "openai";
const openai = new OpenAI();

// Function calling nativo
const response = await openai.chat.completions.create({
  model: "gpt-4.1",
  messages: [...],
  tools: [{ type: "function", function: {...} }],
});
```
- Assistants API (agentes con estado)
- File search, code interpreter built-in

</div>

<div>

### Anthropic SDK + Agent SDK
```typescript
import Anthropic from "@anthropic-ai/sdk";
const anthropic = new Anthropic();

const message = await anthropic.messages.create({
  model: "claude-sonnet-4-6",
  messages: [...],
  tools: [{ name: "...", input_schema: {...} }],
});
```
- Tool use muy potente
- **Claude Agent SDK** (`@anthropic-ai/claude-agent-sdk`)

</div>

</div>

</v-clicks>
