org.llm4s.codegen.CodeWorker
class CodeWorker (sourceDirectory : String , imageName : String , hostPort : Int , client : LLMClient ) extends AutoCloseable
A worker for code generation and manipulation tasks. CodeWorker combines a workspace environment with an LLM agent to handle tasks involving code base understanding, modification, and generation.
Value parameters
sourceDirectory
The directory containing the codebase to work with
Attributes
Graph
Reset zoom Hide graph Show graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any
Members list
Attributes
Definition Classes
AutoCloseable
Execute a code task and return the result
Execute a code task and return the result
Value parameters
maxSteps
Maximum number of agent steps to run (None for unlimited)
task
The description of the code task to perform
traceLogPath
Optional path to write a markdown trace file
Attributes
Returns
Either an error or the agent's final state
Initialize the workspace and prepare for code tasks
Initialize the workspace and prepare for code tasks
Attributes
Returns
true if the workspace was initialized successfully
Clean up resources when done
Clean up resources when done
Attributes