π Basic Function Calling
Simple Example
π§ Function Schema
Required Fields
Parameter Types
string: Text valuesnumber: Numeric valuesboolean: True/false valuesarray: Lists of valuesobject: Structured data
π Multiple Functions
Provide multiple functions and let Incredible choose:π Function Calling in Conversations
Include function results in subsequent messages:π¨ Error Handling
Common Errors
Invalid Function Schema:π‘ Best Practices
- Clear Names: Use descriptive function names
- Detailed Descriptions: Explain what the function does
- Parameter Validation: Define required vs optional clearly
- Test Functions: Ensure functions work independently
π― Whatβs Next?
Mathematical Operations
Learn about built-in math capabilities.
Examples
See function calling in action.
API Reference
Complete API documentation.
Need Help? Check our GitHub cookbook for examples.