Interface TaskScorer


public interface TaskScorer
Agent that evaluates student source code against task requirements and returns a numerical score from 0 to 10.
  • Method Details

    • score

      String score(String workDir, String lang, String requirements)
    • create

      static TaskScorer create(dev.langchain4j.model.chat.ChatModel chatModel, SourceCodeReader sourceCodeReader)
      Creates a new instance of TaskScorer.
      Parameters:
      chatModel - language model to use
      sourceCodeReader - tool for reading source files
      Returns:
      constructed agent instance