Function Calling

Coming Soon!

We’re working on comprehensive documentation for our function calling features. For now, you can use our Swift Import feature below to get started.

Swift Import

Compiler provides a streamlined process to import your functions directly from Swift code. Here’s how to do it:

  1. Navigate to the Developer Dashboard and select the “Swift Import” option from the sidebar.

Navigating to Swift Import on Developer Dashboard

  1. Copy your Swift function definitions (typically a CompilerFunction enum) and paste them into the import field.

Pasting in your CompilerFunction enum

  1. Review the preview of your function definitions to ensure everything was parsed correctly.

Preview your import

  1. Click the “Import” button to add these functions to your project.

Import

  1. Your functions are now ready to use! You can view and manage them in the functions list.

View results

Stay tuned for more detailed documentation on implementing function calling in your app, including examples, best practices, and advanced usage scenarios!