Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
fix publishing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcheng1982 committed May 8, 2024
1 parent 987afd6 commit fa6fb91
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package io.github.llmagentbuilder.codeexecution;
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ object JavaCodeExecutor : NonSandboxedCodeExecutor() {
}
}


/**
* Tool to execute Java code
*/
class JavaCodeExecutionTool(private val config: JavaCodeExecutionConfig) :
ConfigurableAgentTool<JavaCodeExecutionRequest, JavaCodeExecutionResponse, JavaCodeExecutionConfig> {

Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>1.9.20</version>
<configuration>
<sourceDirectories>
<sourceDirectory>${project.basedir}/src/main/kotlin
</sourceDirectory>
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
</sourceDirectories>
</configuration>
<executions>
<execution>
<phase>package</phase>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class PythonCodeExecutor(private val config: PythonCodeExecutionConfig) :
}
}

/**
* Tool to execute Python code
*/
class PythonCodeExecutionTool(config: PythonCodeExecutionConfig) :
ConfigurableAgentTool<PythonCodeExecutionRequest, PythonCodeExecutionResponse, PythonCodeExecutionConfig> {

Expand Down

0 comments on commit fa6fb91

Please sign in to comment.