AI Tools API Guide
Learn how to manage AI tools using the Wacht Rust SDK.Prerequisites
Before using any API methods, you must initialize the SDK:List AI Tools
Get all AI tools in your deployment.Basic List
With Filters
Get AI Tool
Retrieve a specific AI tool by ID.Create AI Tool
Create a new AI tool with custom configuration.API Tool Creation
Platform Function Tool
Update AI Tool
Modify an existing AI tool’s configuration.Delete AI Tool
Permanently delete an AI tool.Builder Methods
ListToolsBuilder
limit(i32)- Number of results to return (max 100)offset(i32)- Number of results to skipsearch(&str)- Search tools by name or descriptionis_active(bool)- Filter by active status
Request Models
CreateAiToolRequest
name(String) - Tool name (required)tool_type(String) - Type of tool (required, e.g., “function”, “retrieval”)configuration(AiToolConfiguration) - Tool configuration (required)
UpdateAiToolRequest
All fields are optional - only include what you want to change:name(Option<String>)description(Option<String>)configuration(Option<serde_json::Value>)
AiToolConfiguration
description(Option<String>) - Tool descriptionparameters(Option<serde_json::Value>) - Function parameters schemaendpoint(Option<String>) - API endpoint URLmethod(Option<String>) - HTTP methodheaders(Option<serde_json::Value>) - HTTP headers
Tool Types
Common tool types include:function- Function calling tools with JSON schemasretrieval- Knowledge retrieval toolscode_interpreter- Code execution toolscustom- Custom tool implementations
Configuration Examples
Function Calling Tool
API Integration Tool
Error Handling
All SDK methods return aResult<T, Error>:
Related
- Installation - SDK setup
- Agents Guide - AI agent management
- Knowledge Bases Guide - Knowledge base management
- Execution Context Guide - Agent execution
- API Reference - Backend API - Full API docs
