No-code applications as tools
This guide explains how to use no-code applications as tools with the Chat completion endpoint.
You can use deployed no-code applications as tools in your tool calling implementation. This allows you to combine the power of no-code applications with other tools and APIs.
This approach allows you to:
- Use no-code applications alongside other tools
- Chain multiple applications together
- Combine application outputs with other API calls or business logic
Tool calling is only available with Palmyra-X-004.
Implementation steps
Build and deploy your application
First, build a text generation or research assistant application in AI Studio and deploy it to get an application ID. Make note of the application ID and input field names as you’ll need these for the API calls.
Define your function
Create a function that calls your deployed application:
Define the tool schema
Next, define your application as a tool in your tools array:
Use the tool with chat completion
Finally, use your application as a tool in a chat completion. This example uses non-streaming responses for simplicity - for streaming implementation, follow the patterns in the tool calling guide.
For more details on tool calling, see the tool calling guide.