https://github.com/tryagi/mystic
Generated C# SDK based on official Mystic OpenAPI specification
https://github.com/tryagi/mystic
ai csharp dotnet generated github langchain langchain-dotnet mystic openai openapi provider sdk
Last synced: 20 days ago
JSON representation
Generated C# SDK based on official Mystic OpenAPI specification
- Host: GitHub
- URL: https://github.com/tryagi/mystic
- Owner: tryAGI
- License: mit
- Created: 2024-09-10T19:25:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-01T06:29:25.000Z (over 1 year ago)
- Last Synced: 2024-10-03T07:42:23.038Z (over 1 year ago)
- Topics: ai, csharp, dotnet, generated, github, langchain, langchain-dotnet, mystic, openai, openapi, provider, sdk
- Language: C#
- Homepage: https://tryagi.github.io/Mystic/
- Size: 445 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mystic
[](https://www.nuget.org/packages/Mystic/)
[](https://github.com/tryAGI/Mystic/actions/workflows/dotnet.yml)
[](https://github.com/tryAGI/Mystic/blob/main/LICENSE.txt)
[](https://discord.gg/Ca2xhfBf3v)
## Features 🔥
- Fully generated C# SDK based on [official Mystic OpenAPI specification](https://raw.githubusercontent.com/Mystic/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 Mystic;
using var api = new MysticApi(apiKey);
var result = await api.Runs.SubmitRunAsync(
pipeline: "black-forest-labs/flux-pro:v1",
inputs: new List
{
new()
{
Type = RunIOType.Dictionary,
Value = new RunInputValue
{
AdditionalProperties = new Dictionary
{
["prompt"] = "a female, european, young adult, fit body, wavy acid orange hair, wearing open swimsuit, sea in the background.",
["width"] = 1024,
["height"] = 1024,
["variant"] = "flux.1-pro",
["steps"] = 25,
["prompt_upsampling"] = false,
["seed"] = Random.Shared.Next(0, 1000000),
["guidance"] = 3.5,
["safety_tolerance"] = 5,
["interval"] = 3,
}
},
},
}
);
Console.WriteLine($"Output: {new Uri(result.Outputs![0].File!.Url!)}");
```
## Support
Priority place for bugs: https://github.com/tryAGI/Mystic/issues
Priority place for ideas and general questions: https://github.com/tryAGI/Mystic/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).