Skip to content

MEAI Tools

Examples showing how to use Greptile as AIFunction tools with any Microsoft.Extensions.AI IChatClient.

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

1
2
3
4
5
6
7
using var client = new GreptileClient(apiKey);

// Create AIFunction tools from the Greptile client:
var queryTool = client.AsQueryCodebaseTool();
var searchTool = client.AsSearchCodebaseTool();
var indexTool = client.AsIndexRepositoryTool();
var statusTool = client.AsGetRepositoryStatusTool();