Developer Guide - Agentic AI¶
This guide provides step-by-step instructions to set up and run the Agentic AI platform. Follow the steps below to clone the repositories, configure the server, and set up the UI.
1. Clone the Repositories¶
To begin, clone the following three repositories from GitHub:
-
XiansAI.Server
Repository URL: https://github.com/XiansAiPlatform/XiansAi.Server.git
Command to clone: -
XiansAI.Lib
Repository URL: https://github.com/XiansAiPlatform/XiansAi.Lib.git
Command to clone: -
XiansAI.UI
Repository URL: https://github.com/XiansAiPlatform/XiansAi.UI.git
Command to clone:
2. Setting Up the Server¶
To configure and run the server, follow these steps:
-
Obtain Configuration Files
Request the
appsettings.json
andappsettings.Development.json
files from a team member. These files contain the necessary configuration settings for the server. -
Place Configuration Files
Copy the
appsettings.json
andappsettings.Development.json
files into thesrc
folder of theXiansAI.Server
repository.Example path:
-
Run the Server
Follow the specific instructions provided in the
XiansAI.Server
repository's README file to build and run the server.
3. Setting Up the UI¶
To configure and run the UI, follow these steps:
-
Create a
.env
File- Navigate to the root directory of the
XiansAI.UI
repository. - Create a new file named
.env
.
- Navigate to the root directory of the
-
Copy Environment Variables
- Open the
XiansAI.UI
repository and locate the.env.development
file. - Copy the contents of the
.env.development
file into the newly created.env
file.
- Open the
-
Install Dependencies
- Run the following command to install all required dependencies:
-
Start the UI
-
Start the development server by running:
-
The UI should now be accessible in your browser. The default URL is typically
http://localhost:3000
, but refer to the project documentation for confirmation.
-
4. Setting Up the Library (XiansAI.Lib)¶
To configure and use the XiansAI.Lib
library, follow these steps:
-
Run the Library
- After cloning the
XiansAI.Lib
repository, navigate to its root directory and run the following command to build and execute the library in release mode:
- After cloning the
-
Making Changes to the Library
- If you make any changes to the
XiansAI.Lib
codebase, you need to update its reference in the agent's package dependency list: - Locate the
.csproj
file of theXiansAI.Lib
project. - Copy the file path of the
.csproj
file. - Update the agent's package dependency list to reference the updated
.csproj
file location.
Example of referencing the
.csproj
file in another project: - If you make any changes to the
-
Rebuild the Dependent Project
- After updating the reference, rebuild the dependent project to ensure the changes in the library are applied.
Notes¶
- Ensure you have the required versions of .NET SDK installed on your system before setting up the library. Refer to the
XiansAI.Lib
repository's README for version requirements. - For the server and library, ensure you have the necessary runtime environment (e.g., .NET Core) installed. Check the respective repositories for specific prerequisites.
- If you encounter any issues during setup, consult the respective repository's documentation or reach out to your team for assistance.
By following these steps, you should be able to successfully set up and run the Agentic AI platform.