Reviewer

marola.llm.Reviewer
object Reviewer

The reviewer/critic pass (FUTURE-WORK.md ยง4.2, now built rather than just proposed): replays a second DSPy-compiled artifact (review_prompt.json, compiled from dspy/compile_recommendation_prompt.py's ReviewSwimSummary signature) against the summarizer's own draft output, before either reaches a user.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Reviewer.type

Members list

Type members

Classlikes

final case class MalformedReviewException(message: String) extends Exception

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final case class ReviewResult(finalSummary: String, score: Int, verdict: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def review(client: LlmClient, prompt: CompiledPrompt, factInputs: Map[String, String], draftSummary: String): ReviewResult < Sync