---
layout: default
---

# Configuración del Modelo

<div class="mt-4 text-xs">

<v-click>

**Opción 1: String con formato `provider:model`**

```typescript
const agent = createAgent({
  model: "mistral:mistral-large-latest",  // Mistral
  // model: "openai:gpt-4.1",               // OpenAI
  // model: "anthropic:claude-sonnet-4-6",  // Anthropic
  tools: [],
});
```

</v-click>

<v-click>

**Opción 2: Instancia del modelo con configuración avanzada**

```typescript
import { ChatMistralAI } from "@langchain/mistralai";

const model = new ChatMistralAI({
  model: "mistral-large-latest",
  temperature: 0.1,
  maxTokens: 1000,
});

const agent = createAgent({ model, tools: [] });
```

</v-click>

</div>
