Llamada de funciones
La llamada a funciones (Function Calling) permite que los modelos de NovaAI interactúen con herramientas, APIs y servicios externos. En lugar de limitarse a generar texto, el modelo puede decidir cuándo invocar una función, pasar argumentos estructurados y utilizar los datos devueltos para generar una respuesta final.
Overview
Function Calling extends the capabilities of language models by connecting them to real-world actions. For example, an agent can check the weather, retrieve database records, send emails, or perform calculations by calling predefined functions.
Function Calling Flow
Example Function
Your application receives this object, executes the appropriate function, and sends the result back to the model.
Supported Tool Types
Tool | Description |
|---|---|
API Calls | Retrieve data from external services. |
Database | Query application data. |
File System | Read or write files. |
Custom Functions | Execute your own business logic. |
Example Use Cases
Weather assistants
Calendar scheduling
Database lookups
Order tracking
CRM integrations
AI workflow automation
Before Enabling Function Calling
Define clear function names.
Validate all input parameters.
Return consistent JSON responses.
Handle failures gracefully.
Restrict access to trusted tools only.
Next Step
Continue to Fine Tuning to learn how to customize NovaAI models for your specific datasets and use cases.