RelationalAI / rai-sdk-csharp

The RelationalAI Software Development Kit (SDK) for C#
Apache License 2.0
0 stars 1 forks source link

Initial commit with SDK code and project layout #1

Closed miazamrai closed 2 years ago

miazamrai commented 2 years ago

This SDK code is an idiomatic way of laying out a C# solution for an SDK. It is on the same lines as the Python SDK. It contains the RAILib project, which has the main source code, RAILib.Examples project, to list the examples, and RAILib.Test project for UT.

I have an empty ICredentials interface, which currently looks weird but I used it as a generic credentials object to pass into different functions. It is because in future we may start supporting other credentials and with some common attributes.

Currently it has almost all the API functions written, except transactions, as present in the python SDK.

TODOs: Transaction/query APIs Show class Examples UT ReadMe Project setup for NuGet release and .Net version selections etc. etc ....

miazamrai commented 2 years ago

@bradlo Kindly have a look into the sdk code. I have implemented the api method returning the objects instead of json strings. But the object can be deserialized to a json string. It also has the transactions/query working. Also, take a look at the examples CLI, we might do something similar for Java. Need to work on exceptions/errors next.