This example assumes using ModerationAPI; is in scope and apiKey contains your ModerationAPI API key.
| using var client = new ModerationAPIClient(apiKey);
// Create tools for text moderation, image moderation, queue stats, and listing actions.
var moderateTextTool = client.AsModerateTextTool();
var moderateImageTool = client.AsModerateImageTool();
var getQueueStatsTool = client.AsGetQueueStatsTool();
var listActionsTool = client.AsListActionsTool();
// These tools can be passed to any IChatClient that supports function calling.
var tools = new[] { moderateTextTool, moderateImageTool, getQueueStatsTool, listActionsTool };
|