Avanzado

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.

Important: Models do not execute functions directly. They generate a structured function call, and your application is responsible for executing it and returning the result.

Important: Models do not execute functions directly. They generate a structured function call, and your application is responsible for executing it and returning the result.

Function Calling Flow

Rendering diagram…

Example Function

{
"name": "get_weather",
"parameters": {
"city": "San Francisco"
}
}

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

Keep function names descriptive and return structured JSON. Predictable inputs and outputs make tool execution more reliable.

Keep function names descriptive and return structured JSON. Predictable inputs and outputs make tool execution more reliable.

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.

Documentación relacionada

¿Te resultó útil?

¿Te resultó útil?

Create a free website with Framer, the website builder loved by startups, designers and agencies.