<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Api on Fernando Ruiz</title><link>https://www.fernandoux.com/tags/api/</link><description>Recent content in Api on Fernando Ruiz</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://www.fernandoux.com/tags/api/index.xml" rel="self" type="application/rss+xml"/><item><title>Tool use (function calling): cómo un modelo pide acciones</title><link>https://www.fernandoux.com/es/wiki/ia/tool-use/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.fernandoux.com/es/wiki/ia/tool-use/</guid><description>&lt;div class="info-panel"&gt;
 &lt;div class="info-header"&gt;
 &lt;span class="material-symbols-outlined info-panel-icon"&gt;info&lt;/span&gt;
 &lt;span class="info-panel-label"&gt;Definición Rápida&lt;/span&gt;
 &lt;/div&gt;
 &lt;div class="info-content"&gt;
 &lt;strong&gt;Tool use&lt;/strong&gt;, también llamado &lt;strong&gt;function calling&lt;/strong&gt;, es el mecanismo con el que un modelo de IA pide ejecutar una función externa. El modelo decide cuándo hace falta la herramienta y devuelve el nombre y los argumentos; la aplicación ejecuta la acción y le regresa el resultado al modelo.
 &lt;/div&gt;
&lt;/div&gt;

&lt;h2 id="qué-hace-realmente-el-modelo"&gt;¿Qué hace realmente el modelo?&lt;/h2&gt;
&lt;p&gt;Un modelo de lenguaje solo produce texto. No puede abrir un archivo ni consultar una base de datos. Lo que hace con tool use es producir una petición estructurada: &amp;ldquo;quiero llamar la herramienta &lt;code&gt;buscar_pedido&lt;/code&gt; con este número&amp;rdquo;. Esa petición no hace nada hasta que tu código la recibe y la ejecuta.&lt;/p&gt;</description></item><item><title>Tool Use (Function Calling): How a Model Requests Actions</title><link>https://www.fernandoux.com/en/wiki/ai/tool-use/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.fernandoux.com/en/wiki/ai/tool-use/</guid><description>&lt;div class="info-panel"&gt;
 &lt;div class="info-header"&gt;
 &lt;span class="material-symbols-outlined info-panel-icon"&gt;info&lt;/span&gt;
 &lt;span class="info-panel-label"&gt;Quick Definition&lt;/span&gt;
 &lt;/div&gt;
 &lt;div class="info-content"&gt;
 &lt;strong&gt;Tool use&lt;/strong&gt;, also called &lt;strong&gt;function calling&lt;/strong&gt;, is the mechanism through which an AI model requests the execution of an external function. The model decides when the tool is needed and returns the name and arguments; the application runs the action and sends the result back to the model.
 &lt;/div&gt;
&lt;/div&gt;

&lt;h2 id="what-does-the-model-actually-do"&gt;What does the model actually do?&lt;/h2&gt;
&lt;p&gt;A language model only produces text. It cannot open a file or query a database. What it does with tool use is produce a structured request: &amp;ldquo;I want to call the tool &lt;code&gt;lookup_order&lt;/code&gt; with this number.&amp;rdquo; That request does nothing until your code receives it and runs it.&lt;/p&gt;</description></item></channel></rss>