initial commit: slides ready + upgraded

This commit is contained in:
2026-05-24 10:37:53 +02:00
commit f6f46972c3
173 changed files with 16756 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
---
layout: default
---
# Ejemplo: Configurando Parámetros
<div class="text-sm mt-6">
```typescript
import { ChatOpenAI } from "@langchain/openai";
const model = new ChatOpenAI({
model: "gpt-4.1-mini",
temperature: 0.7, // Balance entre creatividad y coherencia
maxTokens: 500, // Limitar longitud de respuesta
topP: 0.9, // Nucleus sampling
});
const response = await model.invoke(
"Explica qué es un agente en LangChain"
);
console.log(response.content);
```
<v-click>
<div class="mt-4 text-xs opacity-80 text-center">
💡 <strong>Tip:</strong> Usa <code>temperature: 0</code> para respuestas deterministas (útil en tests)
</div>
</v-click>
</div>