This document provides instructions on how to set up and run the xMind project. After building the project, you'll find the following key folders and files:
- Config: Contains configuration files, including
config.yml
andconfig.xml
. - Examples: Includes example agents and reference files.
- Service: The webserver directory containing the service xLang code (
main.x
) and other web pages. - xMind: The executable to start the xMind application.
Ensure that all necessary dependencies are installed and that you have successfully built the project. The key executable to start the application is xMind
.
The config.yml
file contains critical configurations for the xMind application. Below is a summary of the key sections:
-
WebServer:
Port
: The port on which the web server will run (default:9901
).ServiceEntry
: Path to the main xLang code for the web server (../Service/main.x
).
-
RootAgents:
- List of agents to be registered and displayed in the chat page's Agent/Model choose list.
- Example:
RootAgents: - name: simple file: ../Examples/Simple/simple.yml - name: QAJudge file: ../Examples/Simple/two_simples.yml
-
Start xMind: Execute the
xMind
binary from theout/bin
directory../xMind
-
Access the Web Interface:
- Open a web browser and navigate to http://localhost:9901 to access the index page.
- If accessing from another machine, replace
localhost
with the IP address of the machine running xMind.
-
Using RootAgents:
- The RootAgents defined in
config.yml
will appear in the chat page under the Agent/Model choose list, allowing you to interact with the registered agents.
- The RootAgents defined in
- Config: Contains configuration files such as
config.xml
andconfig.yml
. - Examples: Holds example agents that serve as references for creating and configuring your agents.
- Service: Contains the webserver code and pages, including
main.x
, which serves as the service entry point.
- Service Folder: The
Service
folder includes the webserver's xLang code (main.x
) and associated web pages. - Logs: Log files are stored in the
Logs
directory for troubleshooting and monitoring.
This should cover the essentials needed to start and run the xMind project successfully. If you encounter any issues, please refer to the logs in the Logs
directory for more detailed information.