getOpenAiTools
client.codeboltTools.getOpenAiTools(): Promise<OpenAiTool[]>
Retrieves all tools formatted as OpenAI tools.
Returns the entire tool catalog in OpenAI's tools schema format, suitable for direct use with OpenAI's API function calling feature. Each tool includes its type, function definition, and parameters.
Parameters
No parameters.
Returns
Promise<OpenAiTool[]> — A promise that resolves to an array of OpenAiTool objects
Example
import { CodeBoltClient } from '@codebolt/clientsdk';
const client = new CodeBoltClient();
const result = await client.codeboltTools.getOpenAiTools();
console.log(result);