Skip to content

RetellAI

Nuget package dotnet License: MIT Discord

Features 🔥

  • Fully generated C# SDK based on official RetellAI OpenAPI specification using AutoSDK
  • Same day update to support new features
  • Updated and supported automatically if there are no breaking changes
  • All modern .NET features - nullability, trimming, NativeAOT, etc.
  • Supports .NET 10.0

Usage

1
2
3
using RetellAI;

using var client = new RetellAiClient(apiKey);

List Agents

Basic example showing how to create a client and list agents.

1
2
3
4
5
// Create a client with your Retell AI API key.
using var client = new RetellAiClient(apiKey);

// List all agents in your account.
var agents = await client.ListAgentsAsync();

MEAI Tools

Shows how to create MEAI AIFunction tools from the RetellAI client for use with any IChatClient.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
// Create a RetellAI client with a test API key.
var client = new RetellAiClient(apiKey: "test-key");

// Create AIFunction tools from the client.
var tools = new AIFunction[]
{
    client.AsListAgentsTool(),
    client.AsGetAgentTool(),
    client.AsCreatePhoneCallTool(),
    client.AsListCallsTool(),
    client.AsGetCallTool(),
    client.AsListPhoneNumbersTool(),
};

// Verify all tools are created with valid names and descriptions.
foreach (var tool in tools)
{
}

Support

Priority place for bugs: https://github.com/tryAGI/RetellAI/issues
Priority place for ideas and general questions: https://github.com/tryAGI/RetellAI/discussions
Discord: https://discord.gg/Ca2xhfBf3v

Acknowledgments

JetBrains logo

This project is supported by JetBrains through the Open Source Support Program.