evoloop-cli 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. evoloop_cli/__init__.py +3 -0
  2. evoloop_cli/__main__.py +10 -0
  3. evoloop_cli/_skills/evoloop-constitution/SKILL.md +59 -0
  4. evoloop_cli/_skills/evoloop-constitution/references/writing-guide.md +89 -0
  5. evoloop_cli/_skills/evoloop-constitution/templates/config.yaml +52 -0
  6. evoloop_cli/_skills/evoloop-constitution/templates/constitution.md +39 -0
  7. evoloop_cli/_skills/evoloop-evaluate/SKILL.md +85 -0
  8. evoloop_cli/_skills/evoloop-evaluate/schemas/parsed_report.schema.json +170 -0
  9. evoloop_cli/_skills/evoloop-evaluate/scripts/parse_junit_report.py +311 -0
  10. evoloop_cli/_skills/evoloop-evaluate/scripts/parse_pytest_report.py +276 -0
  11. evoloop_cli/_skills/evoloop-evaluate/scripts/parse_report.py +101 -0
  12. evoloop_cli/_skills/evoloop-evaluate/scripts/update_eval_index.py +111 -0
  13. evoloop_cli/_skills/evoloop-evaluate/scripts/validate_parsed_report.py +178 -0
  14. evoloop_cli/_skills/evoloop-evaluate/templates/analysis.md +51 -0
  15. evoloop_cli/_skills/evoloop-evaluate/templates/progress.md +42 -0
  16. evoloop_cli/_skills/evoloop-evaluate/templates/tasks.md +34 -0
  17. evoloop_cli/_skills/evoloop-evolve/SKILL.md +76 -0
  18. evoloop_cli/_skills/evoloop-evolve/scripts/evolve_state.py +333 -0
  19. evoloop_cli/_skills/evoloop-implement/SKILL.md +57 -0
  20. evoloop_cli/_skills/evoloop-implement/scripts/check_scope.py +154 -0
  21. evoloop_cli/_skills/evoloop-implement/scripts/commit_section.py +78 -0
  22. evoloop_cli/_skills/evoloop-init/SKILL.md +95 -0
  23. evoloop_cli/_skills/evoloop-init/scripts/scaffold_evals.py +546 -0
  24. evoloop_cli/_skills/evoloop-init/templates/common/evals/datasets/domain_flows.yaml +33 -0
  25. evoloop_cli/_skills/evoloop-init/templates/common/evaluations/README.md +9 -0
  26. evoloop_cli/_skills/evoloop-init/templates/java/src/test/java/__PACKAGE_PATH__/evals/AgentAdapter.java +13 -0
  27. evoloop_cli/_skills/evoloop-init/templates/java/src/test/java/__PACKAGE_PATH__/evals/AgenticFlowEvalTest.java +71 -0
  28. evoloop_cli/_skills/evoloop-init/templates/java/src/test/java/__PACKAGE_PATH__/evals/DeterministicEvaluators.java +174 -0
  29. evoloop_cli/_skills/evoloop-init/templates/java/src/test/java/__PACKAGE_PATH__/evals/EvalFrameworkTest.java +45 -0
  30. evoloop_cli/_skills/evoloop-init/templates/java/src/test/java/__PACKAGE_PATH__/evals/FlowRunResult.java +25 -0
  31. evoloop_cli/_skills/evoloop-init/templates/python/evals/__init__.py +1 -0
  32. evoloop_cli/_skills/evoloop-init/templates/python/evals/adapter.py +63 -0
  33. evoloop_cli/_skills/evoloop-init/templates/python/evals/deepagents_adapter.py +223 -0
  34. evoloop_cli/_skills/evoloop-init/templates/python/evals/evaluators/__init__.py +1 -0
  35. evoloop_cli/_skills/evoloop-init/templates/python/evals/evaluators/deterministic.py +234 -0
  36. evoloop_cli/_skills/evoloop-init/templates/python/evals/evaluators/llm_judge.py +189 -0
  37. evoloop_cli/_skills/evoloop-init/templates/python/evals/fakes.py +26 -0
  38. evoloop_cli/_skills/evoloop-init/templates/python/evals/harness.py +100 -0
  39. evoloop_cli/_skills/evoloop-init/templates/python/tests/conftest.py +38 -0
  40. evoloop_cli/_skills/evoloop-init/templates/python/tests/test_agentic_flows.py +36 -0
  41. evoloop_cli/_skills/evoloop-init/templates/python/tests/test_eval_framework.py +175 -0
  42. evoloop_cli/_skills/evoloop-new/SKILL.md +125 -0
  43. evoloop_cli/_skills/evoloop-new/scripts/scaffold_agent.py +911 -0
  44. evoloop_cli/_skills/evoloop-new/templates/common/.evoloop/constitution.md +34 -0
  45. evoloop_cli/_skills/evoloop-new/templates/common/.gitignore +22 -0
  46. evoloop_cli/_skills/evoloop-new/templates/common/AGENTS.md +17 -0
  47. evoloop_cli/_skills/evoloop-new/templates/common/README.md +83 -0
  48. evoloop_cli/_skills/evoloop-new/templates/common/skills/__DOMAIN__/SKILL.md +21 -0
  49. evoloop_cli/_skills/evoloop-new/templates/java/eval_wiring/src/test/java/__PACKAGE_PATH__/evals/AgenticFlowEvalTest.java +113 -0
  50. evoloop_cli/_skills/evoloop-new/templates/java/eval_wiring/src/test/java/__PACKAGE_PATH__/evals/EvalFrameworkTest.java +85 -0
  51. evoloop_cli/_skills/evoloop-new/templates/java/eval_wiring/src/test/java/__PACKAGE_PATH__/evals/Fake__DOMAIN_PASCAL__Client.java +37 -0
  52. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/custom/src/main/java/__PACKAGE_PATH__/Application.java +46 -0
  53. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/custom/src/main/java/__PACKAGE_PATH__/OpenAiCompatibleRunner.java +433 -0
  54. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/custom/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Agent.java +125 -0
  55. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/langchain4j/src/main/java/__PACKAGE_PATH__/Application.java +46 -0
  56. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/langchain4j/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Agent.java +163 -0
  57. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/langchain4j/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Tools.java +18 -0
  58. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/java/__PACKAGE_PATH__/Application.java +15 -0
  59. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Agent.java +167 -0
  60. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Controller.java +41 -0
  61. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Factory.java +32 -0
  62. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Tools.java +20 -0
  63. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/micronaut/src/main/resources/application.yml +17 -0
  64. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/java/__PACKAGE_PATH__/Application.java +17 -0
  65. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Agent.java +159 -0
  66. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Config.java +32 -0
  67. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Controller.java +40 -0
  68. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Tools.java +25 -0
  69. evoloop_cli/_skills/evoloop-new/templates/java/frameworks/spring-ai/src/main/resources/application.yml +19 -0
  70. evoloop_cli/_skills/evoloop-new/templates/java/gradle/build_custom.gradle +33 -0
  71. evoloop_cli/_skills/evoloop-new/templates/java/gradle/build_langchain4j.gradle +40 -0
  72. evoloop_cli/_skills/evoloop-new/templates/java/gradle/build_micronaut.gradle +52 -0
  73. evoloop_cli/_skills/evoloop-new/templates/java/gradle/build_spring-ai.gradle +45 -0
  74. evoloop_cli/_skills/evoloop-new/templates/java/gradle/settings.gradle +1 -0
  75. evoloop_cli/_skills/evoloop-new/templates/java/maven/pom_custom.xml +57 -0
  76. evoloop_cli/_skills/evoloop-new/templates/java/maven/pom_langchain4j.xml +87 -0
  77. evoloop_cli/_skills/evoloop-new/templates/java/maven/pom_micronaut.xml +101 -0
  78. evoloop_cli/_skills/evoloop-new/templates/java/maven/pom_spring-ai.xml +61 -0
  79. evoloop_cli/_skills/evoloop-new/templates/java/src/main/java/__PACKAGE_PATH__/ConversationMemory.java +36 -0
  80. evoloop_cli/_skills/evoloop-new/templates/java/src/main/java/__PACKAGE_PATH__/Default__DOMAIN_PASCAL__Client.java +9 -0
  81. evoloop_cli/_skills/evoloop-new/templates/java/src/main/java/__PACKAGE_PATH__/DomainRecord.java +10 -0
  82. evoloop_cli/_skills/evoloop-new/templates/java/src/main/java/__PACKAGE_PATH__/TurnOutcome.java +15 -0
  83. evoloop_cli/_skills/evoloop-new/templates/java/src/main/java/__PACKAGE_PATH__/__DOMAIN_PASCAL__Client.java +8 -0
  84. evoloop_cli/_skills/evoloop-new/templates/python/eval_wiring/evals/fakes.py +22 -0
  85. evoloop_cli/_skills/evoloop-new/templates/python/eval_wiring/evals/harness_custom.py +186 -0
  86. evoloop_cli/_skills/evoloop-new/templates/python/eval_wiring/evals/harness_deepagents.py +100 -0
  87. evoloop_cli/_skills/evoloop-new/templates/python/eval_wiring/tests/test_eval_framework.py +196 -0
  88. evoloop_cli/_skills/evoloop-new/templates/python/pyproject.toml +18 -0
  89. evoloop_cli/_skills/evoloop-new/templates/python/src/__PACKAGE__/__init__.py +13 -0
  90. evoloop_cli/_skills/evoloop-new/templates/python/src/__PACKAGE__/__main__.py +6 -0
  91. evoloop_cli/_skills/evoloop-new/templates/python/src/__PACKAGE__/agent_custom.py +209 -0
  92. evoloop_cli/_skills/evoloop-new/templates/python/src/__PACKAGE__/agent_deepagents.py +61 -0
  93. evoloop_cli/_skills/evoloop-new/templates/python/src/__PACKAGE__/cli.py +71 -0
  94. evoloop_cli/_skills/evoloop-new/templates/python/src/__PACKAGE__/client.py +31 -0
  95. evoloop_cli/_skills/evoloop-scenarios/SKILL.md +49 -0
  96. evoloop_cli/_skills/evoloop-scenarios/scripts/validate_scenarios.py +261 -0
  97. evoloop_cli/_skills/evoloop-scenarios/templates/scenario_schema.md +49 -0
  98. evoloop_cli/cli.py +331 -0
  99. evoloop_cli-0.1.0.dist-info/METADATA +214 -0
  100. evoloop_cli-0.1.0.dist-info/RECORD +103 -0
  101. evoloop_cli-0.1.0.dist-info/WHEEL +4 -0
  102. evoloop_cli-0.1.0.dist-info/entry_points.txt +2 -0
  103. evoloop_cli-0.1.0.dist-info/licenses/LICENSE +202 -0
@@ -0,0 +1,32 @@
1
+ package __JAVA_PACKAGE__;
2
+
3
+ import org.springframework.beans.factory.annotation.Value;
4
+ import org.springframework.context.annotation.Bean;
5
+ import org.springframework.context.annotation.Configuration;
6
+
7
+ /**
8
+ * Spring configuration wiring the testable client interface, checkpointer, and Spring AI agent bean.
9
+ */
10
+ @Configuration
11
+ public class __DOMAIN_PASCAL__Config {
12
+
13
+ @Bean
14
+ public __DOMAIN_PASCAL__Client domainClient() {
15
+ return new Default__DOMAIN_PASCAL__Client();
16
+ }
17
+
18
+ @Bean
19
+ public ConversationMemory conversationMemory() {
20
+ return new ConversationMemory.InMemory();
21
+ }
22
+
23
+ @Bean
24
+ public __DOMAIN_PASCAL__Agent domainAgent(
25
+ __DOMAIN_PASCAL__Client client,
26
+ ConversationMemory memory,
27
+ @Value("${llm.base-url:http://localhost:8080/v1}") String baseUrl,
28
+ @Value("${llm.model:local-model}") String model,
29
+ @Value("${llm.api-key:not-needed}") String apiKey) {
30
+ return new __DOMAIN_PASCAL__Agent(client, memory, baseUrl, model, apiKey);
31
+ }
32
+ }
@@ -0,0 +1,40 @@
1
+ package __JAVA_PACKAGE__;
2
+
3
+ import java.util.Map;
4
+ import org.springframework.web.bind.annotation.GetMapping;
5
+ import org.springframework.web.bind.annotation.PostMapping;
6
+ import org.springframework.web.bind.annotation.RequestBody;
7
+ import org.springframework.web.bind.annotation.RequestMapping;
8
+ import org.springframework.web.bind.annotation.RestController;
9
+
10
+ /**
11
+ * Minimal Spring Web REST controller exposing the __DOMAIN_TITLE__ agent.
12
+ */
13
+ @RestController
14
+ @RequestMapping("/api/__DOMAIN__")
15
+ public class __DOMAIN_PASCAL__Controller {
16
+
17
+ private final __DOMAIN_PASCAL__Agent agent;
18
+
19
+ public __DOMAIN_PASCAL__Controller(__DOMAIN_PASCAL__Agent agent) {
20
+ this.agent = agent;
21
+ }
22
+
23
+ public record ChatRequest(String threadId, String message) {}
24
+
25
+ public record ChatResponse(String threadId, String reply) {}
26
+
27
+ @GetMapping("/health")
28
+ public Map<String, String> health() {
29
+ return Map.of("status", "ok", "domain", "__DOMAIN__", "framework", "spring-ai");
30
+ }
31
+
32
+ @PostMapping("/chat")
33
+ public ChatResponse chat(@RequestBody ChatRequest request) {
34
+ String tid = (request.threadId() == null || request.threadId().isBlank())
35
+ ? "default"
36
+ : request.threadId();
37
+ String reply = agent.chat(tid, request.message());
38
+ return new ChatResponse(tid, reply);
39
+ }
40
+ }
@@ -0,0 +1,25 @@
1
+ package __JAVA_PACKAGE__;
2
+
3
+ import java.util.List;
4
+ import java.util.Map;
5
+ import org.springframework.ai.tool.annotation.Tool;
6
+ import org.springframework.ai.tool.annotation.ToolParam;
7
+
8
+ /**
9
+ * Spring AI @Tool adapter backed by {@link __DOMAIN_PASCAL__Client} that records
10
+ * structured tool invocations for deterministic evaluation.
11
+ */
12
+ public class __DOMAIN_PASCAL__Tools {
13
+
14
+ private final __DOMAIN_PASCAL__Client client;
15
+ private final List<TurnOutcome.ToolInvocation> recorder;
16
+
17
+ public __DOMAIN_PASCAL__Tools(
18
+ __DOMAIN_PASCAL__Client client,
19
+ List<TurnOutcome.ToolInvocation> recorder) {
20
+ this.client = client;
21
+ this.recorder = recorder;
22
+ }
23
+
24
+ __JAVA_SPRING_AI_TOOLS__
25
+ }
@@ -0,0 +1,19 @@
1
+ spring:
2
+ application:
3
+ name: __PROJECT_NAME__
4
+ ai:
5
+ openai:
6
+ base-url: "${LLM_BASE_URL:http://localhost:8080}"
7
+ api-key: ${LLM_API_KEY:not-needed}
8
+ chat:
9
+ options:
10
+ model: ${LLM_MODEL:local-model}
11
+ temperature: 0.0
12
+
13
+ server:
14
+ port: ${SERVER_PORT:9000}
15
+
16
+ llm:
17
+ base-url: "${LLM_BASE_URL:http://localhost:8080/v1}"
18
+ model: ${LLM_MODEL:local-model}
19
+ api-key: ${LLM_API_KEY:not-needed}
@@ -0,0 +1,33 @@
1
+ plugins {
2
+ id 'java'
3
+ id 'application'
4
+ }
5
+
6
+ group = '__JAVA_PACKAGE__'
7
+ version = '0.1.0-SNAPSHOT'
8
+
9
+ java {
10
+ toolchain {
11
+ languageVersion = JavaLanguageVersion.of(17)
12
+ }
13
+ }
14
+
15
+ application {
16
+ mainClass = '__JAVA_PACKAGE__.Application'
17
+ }
18
+
19
+ repositories {
20
+ mavenCentral()
21
+ }
22
+
23
+ dependencies {
24
+ testImplementation platform('org.junit:junit-bom:5.11.4')
25
+ testImplementation 'org.junit.jupiter:junit-jupiter'
26
+ testImplementation 'org.yaml:snakeyaml:2.3'
27
+ testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
28
+ }
29
+
30
+ tasks.named('test') {
31
+ useJUnitPlatform()
32
+ systemProperties(System.getProperties().findAll { it.key.toString().startsWith('run') })
33
+ }
@@ -0,0 +1,40 @@
1
+ plugins {
2
+ id 'java'
3
+ id 'application'
4
+ }
5
+
6
+ group = '__JAVA_PACKAGE__'
7
+ version = '0.1.0-SNAPSHOT'
8
+
9
+ java {
10
+ toolchain {
11
+ languageVersion = JavaLanguageVersion.of(17)
12
+ }
13
+ }
14
+
15
+ tasks.withType(JavaCompile).configureEach {
16
+ options.compilerArgs.add('-parameters')
17
+ }
18
+
19
+ application {
20
+ mainClass = '__JAVA_PACKAGE__.Application'
21
+ }
22
+
23
+ repositories {
24
+ mavenCentral()
25
+ }
26
+
27
+ dependencies {
28
+ implementation platform('dev.langchain4j:langchain4j-bom:1.0.0')
29
+ implementation 'dev.langchain4j:langchain4j'
30
+ implementation 'dev.langchain4j:langchain4j-open-ai'
31
+ testImplementation platform('org.junit:junit-bom:5.11.4')
32
+ testImplementation 'org.junit.jupiter:junit-jupiter'
33
+ testImplementation 'org.yaml:snakeyaml:2.3'
34
+ testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
35
+ }
36
+
37
+ tasks.named('test') {
38
+ useJUnitPlatform()
39
+ systemProperties(System.getProperties().findAll { it.key.toString().startsWith('run') })
40
+ }
@@ -0,0 +1,52 @@
1
+ plugins {
2
+ id 'io.micronaut.application' version '5.0.2'
3
+ }
4
+
5
+ group = '__JAVA_PACKAGE__'
6
+ version = '0.1.0-SNAPSHOT'
7
+
8
+ repositories {
9
+ mavenCentral()
10
+ }
11
+
12
+ dependencies {
13
+ annotationProcessor 'io.micronaut:micronaut-http-validation'
14
+ annotationProcessor 'io.micronaut.serde:micronaut-serde-processor'
15
+ annotationProcessor 'io.micronaut.jsonschema:micronaut-json-schema-processor'
16
+ implementation 'io.micronaut.serde:micronaut-serde-jackson'
17
+ implementation 'io.micronaut.mcp:micronaut-mcp-server-java-sdk'
18
+ implementation 'dev.langchain4j:langchain4j'
19
+ implementation 'dev.langchain4j:langchain4j-open-ai'
20
+ runtimeOnly 'ch.qos.logback:logback-classic'
21
+ runtimeOnly 'org.yaml:snakeyaml'
22
+ testImplementation 'org.junit.jupiter:junit-jupiter'
23
+ testImplementation 'org.yaml:snakeyaml'
24
+ testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
25
+ }
26
+
27
+ application {
28
+ mainClass = '__JAVA_PACKAGE__.Application'
29
+ }
30
+
31
+ java {
32
+ sourceCompatibility = JavaVersion.toVersion('25')
33
+ targetCompatibility = JavaVersion.toVersion('25')
34
+ }
35
+
36
+ tasks.withType(JavaCompile).configureEach {
37
+ options.compilerArgs.add('-parameters')
38
+ }
39
+
40
+ micronaut {
41
+ version = '5.2.5'
42
+ runtime('netty')
43
+ testRuntime('junit5')
44
+ processing {
45
+ incremental(true)
46
+ annotations('__JAVA_PACKAGE__.*')
47
+ }
48
+ }
49
+
50
+ tasks.named('test') {
51
+ systemProperties(System.getProperties().findAll { it.key.toString().startsWith('run') })
52
+ }
@@ -0,0 +1,45 @@
1
+ plugins {
2
+ id 'java'
3
+ id 'org.springframework.boot' version '3.4.5'
4
+ id 'io.spring.dependency-management' version '1.1.7'
5
+ }
6
+
7
+ group = '__JAVA_PACKAGE__'
8
+ version = '0.1.0-SNAPSHOT'
9
+
10
+ java {
11
+ toolchain {
12
+ languageVersion = JavaLanguageVersion.of(17)
13
+ }
14
+ }
15
+
16
+ tasks.withType(JavaCompile).configureEach {
17
+ options.compilerArgs.add('-parameters')
18
+ }
19
+
20
+ repositories {
21
+ mavenCentral()
22
+ }
23
+
24
+ ext {
25
+ set('springAiVersion', '1.0.0')
26
+ }
27
+
28
+ dependencyManagement {
29
+ imports {
30
+ mavenBom "org.springframework.ai:spring-ai-bom:${springAiVersion}"
31
+ }
32
+ }
33
+
34
+ dependencies {
35
+ implementation 'org.springframework.boot:spring-boot-starter-web'
36
+ implementation 'org.springframework.ai:spring-ai-starter-model-openai'
37
+ testImplementation 'org.springframework.boot:spring-boot-starter-test'
38
+ testImplementation 'org.yaml:snakeyaml'
39
+ testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
40
+ }
41
+
42
+ tasks.named('test') {
43
+ useJUnitPlatform()
44
+ systemProperties(System.getProperties().findAll { it.key.toString().startsWith('run') })
45
+ }
@@ -0,0 +1 @@
1
+ rootProject.name = '__PROJECT_NAME__'
@@ -0,0 +1,57 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+ <modelVersion>4.0.0</modelVersion>
6
+
7
+ <groupId>__JAVA_PACKAGE__</groupId>
8
+ <artifactId>__PROJECT_NAME__</artifactId>
9
+ <version>0.1.0-SNAPSHOT</version>
10
+ <name>__PROJECT_NAME__</name>
11
+ <description>Evaluation-ready __DOMAIN_TITLE__ Java agent scaffolded with evoloop.</description>
12
+
13
+ <properties>
14
+ <maven.compiler.release>17</maven.compiler.release>
15
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16
+ <junit.version>5.11.4</junit.version>
17
+ <snakeyaml.version>2.3</snakeyaml.version>
18
+ </properties>
19
+
20
+ <dependencies>
21
+ <dependency>
22
+ <groupId>org.junit.jupiter</groupId>
23
+ <artifactId>junit-jupiter</artifactId>
24
+ <version>${junit.version}</version>
25
+ <scope>test</scope>
26
+ </dependency>
27
+ <dependency>
28
+ <groupId>org.yaml</groupId>
29
+ <artifactId>snakeyaml</artifactId>
30
+ <version>${snakeyaml.version}</version>
31
+ <scope>test</scope>
32
+ </dependency>
33
+ </dependencies>
34
+
35
+ <build>
36
+ <plugins>
37
+ <plugin>
38
+ <groupId>org.apache.maven.plugins</groupId>
39
+ <artifactId>maven-compiler-plugin</artifactId>
40
+ <version>3.13.0</version>
41
+ </plugin>
42
+ <plugin>
43
+ <groupId>org.apache.maven.plugins</groupId>
44
+ <artifactId>maven-surefire-plugin</artifactId>
45
+ <version>3.5.2</version>
46
+ </plugin>
47
+ <plugin>
48
+ <groupId>org.codehaus.mojo</groupId>
49
+ <artifactId>exec-maven-plugin</artifactId>
50
+ <version>3.5.0</version>
51
+ <configuration>
52
+ <mainClass>__JAVA_PACKAGE__.Application</mainClass>
53
+ </configuration>
54
+ </plugin>
55
+ </plugins>
56
+ </build>
57
+ </project>
@@ -0,0 +1,87 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+ <modelVersion>4.0.0</modelVersion>
6
+
7
+ <groupId>__JAVA_PACKAGE__</groupId>
8
+ <artifactId>__PROJECT_NAME__</artifactId>
9
+ <version>0.1.0-SNAPSHOT</version>
10
+ <name>__PROJECT_NAME__</name>
11
+ <description>Evaluation-ready __DOMAIN_TITLE__ LangChain4j agent application scaffolded with evoloop.</description>
12
+
13
+ <properties>
14
+ <maven.compiler.release>17</maven.compiler.release>
15
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16
+ <langchain4j.version>1.0.0</langchain4j.version>
17
+ <junit.version>5.11.4</junit.version>
18
+ <snakeyaml.version>2.3</snakeyaml.version>
19
+ </properties>
20
+
21
+ <dependencyManagement>
22
+ <dependencies>
23
+ <dependency>
24
+ <groupId>dev.langchain4j</groupId>
25
+ <artifactId>langchain4j-bom</artifactId>
26
+ <version>${langchain4j.version}</version>
27
+ <type>pom</type>
28
+ <scope>import</scope>
29
+ </dependency>
30
+ <dependency>
31
+ <groupId>org.junit</groupId>
32
+ <artifactId>junit-bom</artifactId>
33
+ <version>${junit.version}</version>
34
+ <type>pom</type>
35
+ <scope>import</scope>
36
+ </dependency>
37
+ </dependencies>
38
+ </dependencyManagement>
39
+
40
+ <dependencies>
41
+ <dependency>
42
+ <groupId>dev.langchain4j</groupId>
43
+ <artifactId>langchain4j</artifactId>
44
+ </dependency>
45
+ <dependency>
46
+ <groupId>dev.langchain4j</groupId>
47
+ <artifactId>langchain4j-open-ai</artifactId>
48
+ </dependency>
49
+ <dependency>
50
+ <groupId>org.junit.jupiter</groupId>
51
+ <artifactId>junit-jupiter</artifactId>
52
+ <scope>test</scope>
53
+ </dependency>
54
+ <dependency>
55
+ <groupId>org.yaml</groupId>
56
+ <artifactId>snakeyaml</artifactId>
57
+ <version>${snakeyaml.version}</version>
58
+ <scope>test</scope>
59
+ </dependency>
60
+ </dependencies>
61
+
62
+ <build>
63
+ <plugins>
64
+ <plugin>
65
+ <groupId>org.apache.maven.plugins</groupId>
66
+ <artifactId>maven-compiler-plugin</artifactId>
67
+ <version>3.13.0</version>
68
+ <configuration>
69
+ <parameters>true</parameters>
70
+ </configuration>
71
+ </plugin>
72
+ <plugin>
73
+ <groupId>org.apache.maven.plugins</groupId>
74
+ <artifactId>maven-surefire-plugin</artifactId>
75
+ <version>3.5.2</version>
76
+ </plugin>
77
+ <plugin>
78
+ <groupId>org.codehaus.mojo</groupId>
79
+ <artifactId>exec-maven-plugin</artifactId>
80
+ <version>3.5.0</version>
81
+ <configuration>
82
+ <mainClass>__JAVA_PACKAGE__.Application</mainClass>
83
+ </configuration>
84
+ </plugin>
85
+ </plugins>
86
+ </build>
87
+ </project>
@@ -0,0 +1,101 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+ <modelVersion>4.0.0</modelVersion>
6
+
7
+ <parent>
8
+ <groupId>io.micronaut.platform</groupId>
9
+ <artifactId>micronaut-parent</artifactId>
10
+ <version>5.2.5</version>
11
+ </parent>
12
+
13
+ <groupId>__JAVA_PACKAGE__</groupId>
14
+ <artifactId>__PROJECT_NAME__</artifactId>
15
+ <version>0.1.0-SNAPSHOT</version>
16
+ <name>__PROJECT_NAME__</name>
17
+ <description>Evaluation-ready __DOMAIN_TITLE__ Micronaut 5 + LangChain4j + MCP agent application scaffolded with evoloop.</description>
18
+
19
+ <properties>
20
+ <packaging>jar</packaging>
21
+ <micronaut.version>5.2.5</micronaut.version>
22
+ <jdk.version>25</jdk.version>
23
+ <release.version>25</release.version>
24
+ <exec.mainClass>__JAVA_PACKAGE__.Application</exec.mainClass>
25
+ <micronaut.runtime>netty</micronaut.runtime>
26
+ <micronaut.test.resources.enabled>false</micronaut.test.resources.enabled>
27
+ </properties>
28
+
29
+ <dependencies>
30
+ <dependency>
31
+ <groupId>io.micronaut</groupId>
32
+ <artifactId>micronaut-http-server-netty</artifactId>
33
+ <scope>compile</scope>
34
+ </dependency>
35
+ <dependency>
36
+ <groupId>io.micronaut.serde</groupId>
37
+ <artifactId>micronaut-serde-jackson</artifactId>
38
+ <scope>compile</scope>
39
+ </dependency>
40
+ <dependency>
41
+ <groupId>io.micronaut.mcp</groupId>
42
+ <artifactId>micronaut-mcp-server-java-sdk</artifactId>
43
+ <scope>compile</scope>
44
+ </dependency>
45
+ <dependency>
46
+ <groupId>dev.langchain4j</groupId>
47
+ <artifactId>langchain4j</artifactId>
48
+ <scope>compile</scope>
49
+ </dependency>
50
+ <dependency>
51
+ <groupId>dev.langchain4j</groupId>
52
+ <artifactId>langchain4j-open-ai</artifactId>
53
+ <scope>compile</scope>
54
+ </dependency>
55
+ <dependency>
56
+ <groupId>ch.qos.logback</groupId>
57
+ <artifactId>logback-classic</artifactId>
58
+ <scope>runtime</scope>
59
+ </dependency>
60
+ <dependency>
61
+ <groupId>org.yaml</groupId>
62
+ <artifactId>snakeyaml</artifactId>
63
+ <scope>compile</scope>
64
+ </dependency>
65
+ <dependency>
66
+ <groupId>org.junit.jupiter</groupId>
67
+ <artifactId>junit-jupiter</artifactId>
68
+ <scope>test</scope>
69
+ </dependency>
70
+ </dependencies>
71
+
72
+ <build>
73
+ <plugins>
74
+ <plugin>
75
+ <groupId>io.micronaut.maven</groupId>
76
+ <artifactId>micronaut-maven-plugin</artifactId>
77
+ </plugin>
78
+ <plugin>
79
+ <groupId>org.apache.maven.plugins</groupId>
80
+ <artifactId>maven-compiler-plugin</artifactId>
81
+ <configuration>
82
+ <parameters>true</parameters>
83
+ <annotationProcessorPaths combine.children="append">
84
+ <path>
85
+ <groupId>io.micronaut</groupId>
86
+ <artifactId>micronaut-http-validation</artifactId>
87
+ </path>
88
+ <path>
89
+ <groupId>io.micronaut.serde</groupId>
90
+ <artifactId>micronaut-serde-processor</artifactId>
91
+ </path>
92
+ <path>
93
+ <groupId>io.micronaut.jsonschema</groupId>
94
+ <artifactId>micronaut-json-schema-processor</artifactId>
95
+ </path>
96
+ </annotationProcessorPaths>
97
+ </configuration>
98
+ </plugin>
99
+ </plugins>
100
+ </build>
101
+ </project>
@@ -0,0 +1,61 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+ <modelVersion>4.0.0</modelVersion>
6
+
7
+ <parent>
8
+ <groupId>org.springframework.boot</groupId>
9
+ <artifactId>spring-boot-starter-parent</artifactId>
10
+ <version>3.4.5</version>
11
+ <relativePath/>
12
+ </parent>
13
+
14
+ <groupId>__JAVA_PACKAGE__</groupId>
15
+ <artifactId>__PROJECT_NAME__</artifactId>
16
+ <version>0.1.0-SNAPSHOT</version>
17
+ <name>__PROJECT_NAME__</name>
18
+ <description>Evaluation-ready __DOMAIN_TITLE__ Spring AI agent application scaffolded with evoloop.</description>
19
+
20
+ <properties>
21
+ <java.version>17</java.version>
22
+ <spring-ai.version>1.0.0</spring-ai.version>
23
+ </properties>
24
+
25
+ <dependencyManagement>
26
+ <dependencies>
27
+ <dependency>
28
+ <groupId>org.springframework.ai</groupId>
29
+ <artifactId>spring-ai-bom</artifactId>
30
+ <version>${spring-ai.version}</version>
31
+ <type>pom</type>
32
+ <scope>import</scope>
33
+ </dependency>
34
+ </dependencies>
35
+ </dependencyManagement>
36
+
37
+ <dependencies>
38
+ <dependency>
39
+ <groupId>org.springframework.boot</groupId>
40
+ <artifactId>spring-boot-starter-web</artifactId>
41
+ </dependency>
42
+ <dependency>
43
+ <groupId>org.springframework.ai</groupId>
44
+ <artifactId>spring-ai-starter-model-openai</artifactId>
45
+ </dependency>
46
+ <dependency>
47
+ <groupId>org.springframework.boot</groupId>
48
+ <artifactId>spring-boot-starter-test</artifactId>
49
+ <scope>test</scope>
50
+ </dependency>
51
+ </dependencies>
52
+
53
+ <build>
54
+ <plugins>
55
+ <plugin>
56
+ <groupId>org.springframework.boot</groupId>
57
+ <artifactId>spring-boot-maven-plugin</artifactId>
58
+ </plugin>
59
+ </plugins>
60
+ </build>
61
+ </project>
@@ -0,0 +1,36 @@
1
+ package __JAVA_PACKAGE__;
2
+
3
+ import java.util.ArrayList;
4
+ import java.util.List;
5
+ import java.util.Map;
6
+ import java.util.concurrent.ConcurrentHashMap;
7
+
8
+ /**
9
+ * Thread-scoped checkpointer / conversation state store for deterministic multi-turn flows.
10
+ */
11
+ public interface ConversationMemory {
12
+
13
+ record Message(String role, String content) {}
14
+
15
+ List<Message> getMessages(String threadId);
16
+
17
+ void append(String threadId, Message message);
18
+
19
+ /**
20
+ * Default in-memory checkpointer enabled by __DOMAIN_PASCAL__Agent.
21
+ */
22
+ class InMemory implements ConversationMemory {
23
+ private final Map<String, List<Message>> threads = new ConcurrentHashMap<>();
24
+
25
+ @Override
26
+ public List<Message> getMessages(String threadId) {
27
+ List<Message> existing = threads.get(threadId);
28
+ return existing == null ? List.of() : List.copyOf(existing);
29
+ }
30
+
31
+ @Override
32
+ public void append(String threadId, Message message) {
33
+ threads.computeIfAbsent(threadId, k -> new ArrayList<>()).add(message);
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,9 @@
1
+ package __JAVA_PACKAGE__;
2
+
3
+ /**
4
+ * Runnable default client stub.
5
+ * TODO(domain): Replace stub responses with real external API / database calls.
6
+ */
7
+ public class Default__DOMAIN_PASCAL__Client implements __DOMAIN_PASCAL__Client {
8
+ __JAVA_STUB_METHODS__
9
+ }
@@ -0,0 +1,10 @@
1
+ package __JAVA_PACKAGE__;
2
+
3
+ /**
4
+ * Immutable value object returned by __DOMAIN_TITLE__ client operations.
5
+ */
6
+ public record DomainRecord(String query, String status, String detail) {
7
+ public DomainRecord(String query, String status) {
8
+ this(query, status, "");
9
+ }
10
+ }