https://github.com/tryagi/tavily
C# SDK based on Tavily OpenAPI specification
https://github.com/tryagi/tavily
ai autosdk csharp dotnet langchain langchain-dotnet net8 netstandard sdk
Last synced: about 1 year ago
JSON representation
C# SDK based on Tavily OpenAPI specification
- Host: GitHub
- URL: https://github.com/tryagi/tavily
- Owner: tryAGI
- License: mit
- Created: 2024-10-01T04:25:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T05:39:35.000Z (about 1 year ago)
- Last Synced: 2025-05-13T01:16:34.547Z (about 1 year ago)
- Topics: ai, autosdk, csharp, dotnet, langchain, langchain-dotnet, net8, netstandard, sdk
- Language: C#
- Homepage: https://tryagi.github.io/Tavily/
- Size: 232 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tavily
[](https://www.nuget.org/packages/Tavily/)
[](https://github.com/tryAGI/Tavily/actions/workflows/dotnet.yml)
[](https://github.com/tryAGI/Tavily/blob/main/LICENSE.txt)
[](https://discord.gg/Ca2xhfBf3v)
## Features 🔥
- Fully generated C# SDK based on [official Tavily OpenAPI specification](https://raw.githubusercontent.com/Tavily/assemblyai-api-spec/main/openapi.yml) using [AutoSDK](https://github.com/HavenDV/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.
- Support .Net Framework/.Net Standard 2.0
### Usage
```csharp
using Tavily;
var apiKey =
Environment.GetEnvironmentVariable("TAVILY_API_KEY") ??
throw new AssertInconclusiveException("TAVILY_API_KEY environment variable is not found.");
using var client = new TavilyClient();
SearchResponse searchResponse = await client.SearchAsync(
apiKey: apiKey,
query: "Who is Leo Messi?");
foreach (var result in searchResponse.Results)
{
Console.WriteLine($"Title: {result.Title}");
Console.WriteLine($"Content: {result.Content}");
Console.WriteLine($"Score: {result.Score}");
Console.WriteLine($"Url: {result.Url}");
Console.WriteLine();
}
```
## Support
Priority place for bugs: https://github.com/tryAGI/Tavily/issues
Priority place for ideas and general questions: https://github.com/tryAGI/Tavily/discussions
Discord: https://discord.gg/Ca2xhfBf3v
## Acknowledgments

This project is supported by JetBrains through the [Open Source Support Program](https://jb.gg/OpenSourceSupport).

This project is supported by CodeRabbit through the [Open Source Support Program](https://github.com/marketplace/coderabbitai).