Skip to content

As Tool Creates Agent Tool

Verify that AsCreateAgentTool creates a valid AIFunction.

This example assumes using CursorAgents; is in scope and apiKey contains your CursorAgents API key.

1
2
3
4
5
6
// Create a client and wrap it as an MEAI tool.
using var client = new CursorAgentsClient(apiKey);

var tool = client.AsCreateAgentTool();

// The tool has a name and description for use with any IChatClient.