An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Tavily

[![Nuget package](https://img.shields.io/nuget/vpre/Tavily)](https://www.nuget.org/packages/Tavily/)
[![dotnet](https://github.com/tryAGI/Tavily/actions/workflows/dotnet.yml/badge.svg?branch=main)](https://github.com/tryAGI/Tavily/actions/workflows/dotnet.yml)
[![License: MIT](https://img.shields.io/github/license/tryAGI/Tavily)](https://github.com/tryAGI/Tavily/blob/main/LICENSE.txt)
[![Discord](https://img.shields.io/discord/1115206893015662663?label=Discord&logo=discord&logoColor=white&color=d82679)](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

![JetBrains logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.png)

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

![CodeRabbit logo](https://opengraph.githubassets.com/1c51002d7d0bbe0c4fd72ff8f2e58192702f73a7037102f77e4dbb98ac00ea8f/marketplace/coderabbitai)

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