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 Agent Studio.
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: -
Agent Studio
Repository URL: https://github.com/XiansAiPlatform/agent-studio.git
Command to clone:
2. Setting Up the Server¶
To configure and run the server, follow these steps:
-
Obtain Configuration Files
Request the
appsettings.jsonandappsettings.Development.jsonfiles from a team member. These files contain the necessary configuration settings for the server. -
Place Configuration Files
Copy the
appsettings.jsonandappsettings.Development.jsonfiles into thesrcfolder of theXiansAI.Serverrepository.Example path:
-
Run the Server
Follow the specific instructions provided in the
XiansAI.Serverrepository's README file to build and run the server.
3. Setting Up Agent Studio¶
To configure and run Agent Studio, follow these steps (see also the full Agent Studio installation guide):
-
Create an environment file
- Navigate to the root directory of the
agent-studiorepository. - Copy the example env file:
- Navigate to the root directory of the
-
Configure environment variables
- Edit
.env.localand set at least:XIANS_SERVER_URL— your local server URL (e.g.http://localhost:5005)XIANS_APIKEY— an API key from the server (bootstrap or tenant settings)NEXTAUTH_URL—http://localhost:3010NEXTAUTH_SECRET— generate withopenssl rand -base64 32- At least one OAuth/OIDC provider (Google, Azure AD, Keycloak, or Visma Connect)
- Edit
-
Install Dependencies
- Run the following command to install all required dependencies:
-
Start Agent Studio
-
Start the development server by running:
-
Agent Studio should now be accessible at http://localhost:3010.
-
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.Librepository, navigate to its root directory and run the following command to build and execute the library in release mode: -
Making Changes to the Library
- If you make any changes to the
XiansAI.Libcodebase, you need to update its reference in the agent's package dependency list: - Locate the
.csprojfile of theXiansAI.Libproject. - Copy the file path of the
.csprojfile. -
Update the agent's package dependency list to reference the updated
.csprojfile location.Example of referencing the
.csprojfile in another project: -
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.Librepository'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.
- Agent Studio requires Node.js 20+ (
>=20.9.0). - 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.