Skip to main content

Setup Dokimos in Java / Kotlin

This page shows you how to add Dokimos to a Java or Kotlin project so you can start writing evaluations.

You only need one dependency to start: dokimos-core. Kotlin users add a second one for the DSL. Integrations (JUnit, LangChain4j, Spring AI, Spring AI Alibaba, Koog, Embabel) are extra dependencies you add when you want them.

Step 1: Add the core dependency

Pick your build tool. If you write Kotlin, use the Kotlin tab to also get the dokimos-kotlin DSL.

Add this to your pom.xml:

<dependency>
<groupId>dev.dokimos</groupId>
<artifactId>dokimos-core</artifactId>
<version>${dokimos.version}</version>
</dependency>

Kotlin projects also add the DSL:

<dependency>
<groupId>dev.dokimos</groupId>
<artifactId>dokimos-kotlin</artifactId>
<version>${dokimos.version}</version>
</dependency>

Replace ${dokimos.version} (or ${dokimosVersion}) with the latest release. Dokimos is published to Maven Central under the dev.dokimos group.

Step 2: Add an integration (optional)

Dokimos ships separate dependencies for the tools you already use. Add one only when you need it.

IntegrationArtifactDocs
JUnit 5 / 6dokimos-junitJUnit Integration
LangChain4jdokimos-langchain4jLangChain4j Integration
Spring AIdokimos-spring-aiSpring AI Integration
Spring AI Alibabadokimos-spring-ai-alibabaSpring AI Alibaba Integration
Koogdokimos-koogKoog Integration
Embabel (Java 21+)dokimos-embabelEmbabel Integration

Each integration page lists its exact dependency block. For example, to run evaluations as JUnit tests:

<dependency>
<groupId>dev.dokimos</groupId>
<artifactId>dokimos-junit</artifactId>
<version>${dokimos.version}</version>
</dependency>

Next steps

You are set up. Now write your first evaluation:

For AI agentsView as Markdown