Skip to content

As Tool Creates Get Agent Tool

Verify that AsGetAgentTool 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.AsGetAgentTool();

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