Uso de herramientas y function calling
Que el modelo elija la API y rellene los argumentos
El texto completo se presenta en inglés; el título y el resumen están traducidos.
QUÉ SIGNIFICA ESTA CAPACIDAD
Takes a user request and a list of available tools — names, descriptions, argument schemas — and outputs a structured call such as get_weather with city set to Shanghai. The model executes nothing itself; it selects a tool and assembles arguments, while the actual call is made by external code whose result is fed back for further reasoning.
Cómo se consigue técnicamente
Fine-tuning on many examples of when to call, which tool to use and what arguments look like teaches the model to emit a call when it needs external information or action; at inference the tool definitions go into the prompt and the output is constrained to a valid structure. With many tools, retrieval first narrows the candidates, and a multi-turn loop that feeds results back handles complex tasks.
Productos representativos
10LangChain
2022Encadena modelos, herramientas y recuperación
GPT-4o
2024Un modelo general nativamente multimodal: texto, imagen y audio por una misma puerta
Claude
2023Un modelo de chat general conocido por su contexto largo y su alineación de seguridad
Gemini
2023Un modelo general nativamente multimodal, pensado para contextos muy largos
Qwen
2023Una familia de pesos abiertos con muchos tamaños y versiones multimodales
MiniMax-M
2025Un modelo de razonamiento de pesos abiertos con atención híbrida y contexto de un millón de tokens
Command R
2024Un modelo comercial diseñado para recuperación aumentada y uso de herramientas
Mistral Large
2024El modelo comercial insignia de un laboratorio europeo de pesos abiertos
GLM
2023Un modelo general chino que comenzó con preentrenamiento de relleno de espacios autorregresivo
Llama
2023La familia que llevó la ruta de pesos abiertos a la corriente principal
Organizaciones relacionadas
Usos típicos
- Fetching live data such as weather, prices or stock
- Performing business actions such as orders and messages
- Calling calculators, search and code executors
- Chaining several APIs for a composite task
Cómo se evalúa
- Function-selection accuracy
- Share of requests where the right tool was chosen
- Exact argument match
- Share with arguments exactly matching the reference
- End-to-end task success
- Whether the task completes once tools actually run
Límites y dificultades
- Slightly complex argument shapes — nested objects, arrays, optional fields — are easily filled wrongly
- As the tool list grows, wrong selections rise sharply, and similar-purpose tools are the most confusable
- Recovery after a failed call is unreliable, and the model often loops on the error instead of adapting
Conceptos detrás
Agentes y uso de herramientas
Que un modelo no solo responda: consulte, llame APIs, ejecute código — y decida el siguiente paso según el resultado
Ingeniería de prompts y alineación
Hacer que un modelo sea útil, honesto e inofensivo es más difícil que simplemente agrandarlo
Arquitectura Transformer
Sustituir el relé palabra a palabra por una sala donde todos hablan a la vez, para que las dependencias lejanas estén a un salto