This is a Gradle template project designed to quickly create an Agent based on the LMOS Server SDK.
- Clone the Repository: Clone this repository to your local machine.
- Open in IDE: Open the project in your favorite IDE (e.g., IntelliJ IDEA, VSCode).
- Configure the ARC Client: Modify the
src/main/resources/application.yml
file to configure the ARC client. - Configure the ARC Agent: Modify AgentConfiguration in
src/main/kotlin/template/AgentConfiguration.kt
to set up the agent's configuration.- Agent Prompt: Configure the agent's prompt.
- Agent Model: Set the model to be used by the agent, which is configured in
application.yml
.
- Run the Agent: After building, you can run the agent using the following command:
./gradlew bootRun
- Access the Agent: Open your web browser and navigate to
http://localhost:8181/chatagent
to access the agent's description. - Install SigNoz for Telemetry: Follow the Installation guide You should point your browser to http://localhost:3301/
- Run test: After installing SigNoz, you can run the test using the following command:
./gradlew test --tests "org.eclipse.lmos.template.LocalAgentApplicationTest"
- View Telemetry: After running the test, you can view the telemetry data in SigNoz. Navigate to the "Traces" section.
- View Logs: You can view the logs in the "Logs" section of SigNoz.
- Create image: You can create an image using the following command:
./gradlew bootBuildImage --imageName=lmos/lmos-kotlin-sdk-template:0.0.1-SNAPSHOT
It will build an image called docker.io/lmos/lmos-kotlin-sdk-template:0.0.1-SNAPSHOT