---
layout: default
---

# Middleware Built-in: Resumen

<div class="mt-6 text-xs space-y-3">

<v-click>
<div class="border-l-4 border-blue-500 pl-4 bg-blue-50 dark:bg-blue-900/20 p-2">
  <code class="font-bold">summarizationMiddleware</code> - Resumir historial cuando supera tokens
</div>
</v-click>

<v-click>
<div class="border-l-4 border-green-500 pl-4 bg-green-50 dark:bg-green-900/20 p-2">
  <code class="font-bold">humanInTheLoopMiddleware</code> - Pausar para aprobación humana
</div>
</v-click>

<v-click>
<div class="border-l-4 border-purple-500 pl-4 bg-purple-50 dark:bg-purple-900/20 p-2">
  <code class="font-bold">toolCallLimitMiddleware</code> - Limitar llamadas a tools
</div>
</v-click>

<v-click>
<div class="border-l-4 border-orange-500 pl-4 bg-orange-50 dark:bg-orange-900/20 p-2">
  <code class="font-bold">modelCallLimitMiddleware</code> - Limitar llamadas al modelo
</div>
</v-click>

<v-click>
<div class="border-l-4 border-red-500 pl-4 bg-red-50 dark:bg-red-900/20 p-2">
  <code class="font-bold">modelFallbackMiddleware</code> - Fallback a modelos alternativos
</div>
</v-click>

<v-click>
<div class="border-l-4 border-cyan-500 pl-4 bg-cyan-50 dark:bg-cyan-900/20 p-2">
  <code class="font-bold">modelRetryMiddleware</code> - Reintentar con backoff exponencial
</div>
</v-click>

<v-click>
<div class="border-l-4 border-yellow-500 pl-4 bg-yellow-50 dark:bg-yellow-900/20 p-2">
  <code class="font-bold">piiRedactionMiddleware</code> - Redactar información personal
</div>
</v-click>

</div>
