Freddy assistants can invoke external tools and business logic through structured function calls. Use this guide to define functions, describe parameters, and safely handle tool results.
- Combine model reasoning with deterministic operations (databases, APIs, workflows).
- Enforce schema validation for user inputs before executing sensitive actions.
- Provide assistants with controlled access to enterprise systems.
- Register tools in Freddy Hub or via the API with clear names and JSON schemas.
- Supply function definitions when creating responses or assistants (
functionsarray). - Inspect the model’s tool call payload, execute your backend logic, and return formatted results.
- Resume the conversation with the tool output so Freddy can craft the final response.