Manage AI Tools in Wacht
fetchTools(options?: ListToolsOptions)
options
(optional): An object containing pagination and filtering options.
page
(number): The page number to retrieve.per_page
(number): The number of items per page.search
(string): Search term for tools.is_active
(boolean): Filter by active status.Promise<ToolListResponse>
: A promise that resolves to a list of AI tools and pagination information.
createTool(request: CreateAiToolRequest)
request
(CreateAiToolRequest): The request body containing the details of the new AI tool.Promise<AiTool>
: A promise that resolves to the newly created AI tool object.
fetchTool(toolId: string)
toolId
(string): The unique identifier of the AI tool.Promise<AiTool>
: A promise that resolves to the AI tool object.
updateTool(toolId: string, request: UpdateAiToolRequest)
toolId
(string): The unique identifier of the AI tool to update.request
(UpdateAiToolRequest): The request body containing the updated details of the AI tool.Promise<AiTool>
: A promise that resolves to the updated AI tool object.
deleteTool(toolId: string)
toolId
(string): The unique identifier of the AI tool to delete.Promise<void>
: A promise that resolves when the tool is successfully deleted.