diff --git a/code-execution/src/main/java/io/github/llmagentbuilder/codeexecution/package-info.java b/code-execution/src/main/java/io/github/llmagentbuilder/codeexecution/package-info.java new file mode 100644 index 0000000..846b9fb --- /dev/null +++ b/code-execution/src/main/java/io/github/llmagentbuilder/codeexecution/package-info.java @@ -0,0 +1 @@ +package io.github.llmagentbuilder.codeexecution; \ No newline at end of file diff --git a/code-execution/src/main/kotlin/io/github/llmagentbuilder/codeexecution/CodeExecutor.kt b/code-execution/src/main/kotlin/io/github/llmagentbuilder/codeexecution/CodeExecutor.kt index 1836c53..352b0cb 100644 --- a/code-execution/src/main/kotlin/io/github/llmagentbuilder/codeexecution/CodeExecutor.kt +++ b/code-execution/src/main/kotlin/io/github/llmagentbuilder/codeexecution/CodeExecutor.kt @@ -3,6 +3,9 @@ package io.github.llmagentbuilder.codeexecution import java.nio.file.Files import kotlin.io.path.writeText +/** + * Code executor + */ interface CodeExecutor { fun execute(input: String): String } diff --git a/java/src/main/kotlin/io/github/llmagentbuilder/tool/javacodeexecution/JavaCodeExecutionTool.kt b/java/src/main/kotlin/io/github/llmagentbuilder/tool/javacodeexecution/JavaCodeExecutionTool.kt index b557536..83da8ff 100644 --- a/java/src/main/kotlin/io/github/llmagentbuilder/tool/javacodeexecution/JavaCodeExecutionTool.kt +++ b/java/src/main/kotlin/io/github/llmagentbuilder/tool/javacodeexecution/JavaCodeExecutionTool.kt @@ -22,7 +22,9 @@ object JavaCodeExecutor : NonSandboxedCodeExecutor() { } } - +/** + * Tool to execute Java code + */ class JavaCodeExecutionTool(private val config: JavaCodeExecutionConfig) : ConfigurableAgentTool { diff --git a/pom.xml b/pom.xml index dc6b2a4..f6e7ffe 100644 --- a/pom.xml +++ b/pom.xml @@ -175,6 +175,13 @@ org.jetbrains.dokka dokka-maven-plugin 1.9.20 + + + ${project.basedir}/src/main/kotlin + + ${project.basedir}/src/main/java + + package diff --git a/python/src/main/kotlin/io/github/llmagentbuilder/tool/pythoncodeexecution/PythonCodeExecutionTool.kt b/python/src/main/kotlin/io/github/llmagentbuilder/tool/pythoncodeexecution/PythonCodeExecutionTool.kt index cfb3a38..16a603b 100644 --- a/python/src/main/kotlin/io/github/llmagentbuilder/tool/pythoncodeexecution/PythonCodeExecutionTool.kt +++ b/python/src/main/kotlin/io/github/llmagentbuilder/tool/pythoncodeexecution/PythonCodeExecutionTool.kt @@ -23,6 +23,9 @@ class PythonCodeExecutor(private val config: PythonCodeExecutionConfig) : } } +/** + * Tool to execute Python code + */ class PythonCodeExecutionTool(config: PythonCodeExecutionConfig) : ConfigurableAgentTool {