0aff31e2d3
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
924 B
924 B
layout
| layout |
|---|
| default |
APIs Nativas de los Providers
Cada provider tiene su SDK oficial para Node.js/TS
OpenAI SDK
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
Anthropic SDK + Agent SDK
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)