Skip to content

As Tool Creates List Tool

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

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