Skip to content

MEAI Tools

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
using var client = new ApifyClient(apiKey);

// Create AIFunction tools for use with any IChatClient
var runActorTool = client.AsRunActorTool();
var getRunStatusTool = client.AsGetRunStatusTool();
var listActorsTool = client.AsListActorsTool();
var getDatasetItemsTool = client.AsGetDatasetItemsTool();
var listRunsTool = client.AsListRunsTool();

// All tools are created with descriptive names and descriptions