A continuaciónSiguiente guía
Orquestación de herramientas agentes
Idioma IA
GUÍA de IA en idiomas
La llamada a herramientas permite que un modelo solicite una operación a través de una interfaz definida.
Escuche esta guíaNarrado por IA · ~2 min
The application or provider executes the operation and returns a result. A model proposing a tool call is different from that call succeeding, and both are different from the user’s overall task being completed.
Define each tool’s purpose, input schema, output shape, and side effects. A narrowly scoped operation is easier to validate than a general command interface. The tool description should explain when the operation is appropriate without granting the model authority beyond the user’s request. Validate inputs and permissions in application code. A well-formed argument can still identify the wrong account, destination, or amount. Keep secrets out of tool descriptions and return only information the requesting user is allowed to access. Handle errors and uncertain outcomes explicitly. A network timeout may occur before or after an external action completes. Use operation identifiers or a read-back check where possible so a retry does not duplicate a completed action. After execution, supply an accurate result and verify the intended state. Treat text returned by a website or document as untrusted content; it cannot authorize new actions merely because it arrived through a tool. Test cancellation, malformed responses, revoked access, and partial completion as part of the full tool-use loop.
04Ejemplo resuelto
Imagine a task-creation tool accepts request identifier demo-17. The response times out after the task is created.
Look up demo-17 before creating another task. If the service supports idempotency, reuse the same identifier for the retry.
Report completion only after confirming the resulting task and its contents.
lo que muestra
This constructed example separates uncertain transport from the external action’s actual outcome.
Fetch a current record before proposing an update.
Return an operation identifier and verified result after a file save.
Boletín gratuito
Tres noticias verificadas sobre IA cada mañana de lunes a viernes, explicadas con claridad. Gratis para siempre y sin anuncios.
Un correo cada día laborable. Date de baja con un clic. Nunca vendemos ni compartimos tu dirección.
Ponte a prueba
Corrección inmediata en cada respuesta y un certificado para compartir, con un ID verificable, cuando apruebas un curso.
Apoya la educación gratuita sobre IA. AI Understanding es una organización sin fines de lucro 501(c)(3): sin anuncios ni muros de pago, nunca. Hacer una donación
No. The application or tool provider executes the operation. A structured request must be handled, authorized, and checked.
sigue aprendiendo
Más guías seleccionadas para este tema.
A continuaciónSiguiente guía
Orquestación de herramientas agentes
Idioma IA