Skip to content

RelationalAI/rai-sdk-csharp

Repository files navigation

General

Workflow Status
Continuous Integration (CI) build
Publish to Nuget publish

The RelationalAI Software Development Kit for C#

The RelationalAI (RAI) SDK for C# enables developers to access the RAI REST APIs from C#.

Getting started

Building:

cd rai-sdk-csharp
dotnet build

Running Examples:

cd rai-sdk-csharp/RelationalAI.Examples
dotnet run ListUsers --profile latest
dotnet run CreateEngine --engine csharp-sdk-test --profile latest
dotnet run DeleteEngine --engine csharp-sdk-test --profile latest

Requirements

.Net Core 3.1

Installing the SDK

dotnet build

Create a configuration file

In order to run the examples and, you will need to create an SDK config file. The default location for the file is $HOME/.rai/config and the file should include the following:

[default]
host = azure.relationalai.com
client_id = <your client_id>
client_secret = <your client secret>

# the following are all optional, with default values shown
# port = 443
# scheme = https
# client_credentials_url = https://login.relationalai.com/oauth/token

Client credentials can be created using the RAI console at https://console.relationalai.com/login

You can copy config.spec from the root of this repo and modify as needed.

Examples

cd rai-sdk-csharp/RelationalAI.Examples
dotnet run ListUsers --profile latest

Support

You can reach the RAI developer support team at [email protected]

Contributing

We value feedback and contributions from our developer community. Feel free to submit an issue or a PR here.

License

The RelationalAI Software Development Kit for C# is licensed under the Apache License 2.0. See: https://github.com/RelationalAI/rai-sdk-csharp/blob/master/LICENSE

About

The RelationalAI Software Development Kit (SDK) for C#

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages