Class: Riffer::Evals::Judge::EvaluationTool

Inherits:
Tool
  • Object
show all
Defined in:
lib/riffer/evals/judge.rb

Overview

Internal tool for structured evaluation output.

Constant Summary

Constants inherited from Tool

Tool::DEFAULT_TIMEOUT, Tool::TOOL_SEPARATOR

Constants included from Helpers::ClassNameConverter

Helpers::ClassNameConverter::DEFAULT_SEPARATOR

Instance Method Summary collapse

Methods inherited from Tool

#call_with_validation, description, #error, identifier, #json, name, parameters_schema, params, #text, timeout

Methods included from Helpers::ClassNameConverter

#class_name_to_path

Instance Method Details

#call(context:, score:, reason:) ⇒ Object

: (context: Hash[Symbol, untyped]?, score: Float, reason: String) -> Riffer::Tools::Response



32
33
34
# File 'lib/riffer/evals/judge.rb', line 32

def call(context:, score:, reason:)
  json({score: score, reason: reason})
end