Skip to content

eclipse-lmos/lmos-kotlin-sdk-template

Repository files navigation

Template Project for LMOS SDK Agent

This is a Gradle template project designed to quickly create an Agent based on the LMOS Server SDK.

Getting Started

  1. Clone the Repository: Clone this repository to your local machine.
  2. Open in IDE: Open the project in your favorite IDE (e.g., IntelliJ IDEA, VSCode).
  3. Configure the ARC Client: Modify the src/main/resources/application.yml file to configure the ARC client.
  4. 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.
  5. Run the Agent: After building, you can run the agent using the following command:
     ./gradlew bootRun
  6. Access the Agent: Open your web browser and navigate to http://localhost:8181/chatagent to access the agent's description.
  7. Install SigNoz for Telemetry: Follow the Installation guide You should point your browser to http://localhost:3301/
  8. Run test: After installing SigNoz, you can run the test using the following command:
    ./gradlew test --tests "org.eclipse.lmos.template.LocalAgentApplicationTest"
  9. View Telemetry: After running the test, you can view the telemetry data in SigNoz. Navigate to the "Traces" section.
  10. View Logs: You can view the logs in the "Logs" section of SigNoz.

img.png

  1. 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

About

Quick start template project for LMOS Kotlin SDK.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages