DefaultTools
defaultTools
A record of all built-in tools provided by the AI plugin.
These tools are automatically available to the AI unless disableBuiltInTools is set to true.
You can use this to selectively include specific built-in tools when disableBuiltInTools is enabled:
Example
import { configureAI, defaultTools } from '@commandkit/ai';
configureAI({
disableBuiltInTools: true,
selectAiModel: async (ctx, message) => ({
model: google.languageModel('gemini-2.0-flash'),
// Only include specific built-in tools
tools: {
getAvailableCommands: defaultTools.getAvailableCommands,
getUserById: defaultTools.getUserById,
},
}),
});