Tool Calling in Confidential AI
Tool calling, also known as function calling, enables AI models to interact with external systems by invoking predefined functions or APIs. This allows the model to access up-to-date information, perform specific actions, or integrate with other services, extending its capabilities beyond static knowledge. Here we provide a simple example of tool calling.Define the Tool
Use following request to create a function namedget_weather
.
Example response of tool calling request
Example response of tool calling request
chatcmpl-tool-471f2c795ab64a27ab671a9e302c94db
.
Invoke the Tool
Use the tool id extracted from previouse request to call the tool.Example response of invoke the tool
Example response of invoke the tool
Supported Models
- phala/deepseek-chat-v3-0324
- phala/qwen3-coder
- phala/llama-3.3-70b-instruct