Class: Riffer::Evals::Judge::EvaluationTool
- Defined in:
- lib/riffer/evals/judge.rb
Overview
Internal tool for structured evaluation output.
Constant Summary
Constants included from Toolable
Instance Method Summary collapse
-
#call(context:, score:, reason:) ⇒ Object
– : (context: Hash[Symbol, untyped]?, score: Float, reason: String) -> Riffer::Tools::Response.
Methods inherited from Tool
#call_with_validation, #error, #json, #text
Methods included from Toolable
all, #description, extended, #identifier, #kind, #name, #parameters_schema, #params, #timeout, #to_tool_schema, #validate_as_tool!
Instance Method Details
#call(context:, score:, reason:) ⇒ Object
– : (context: Hash[Symbol, untyped]?, score: Float, reason: String) -> Riffer::Tools::Response
34 35 36 |
# File 'lib/riffer/evals/judge.rb', line 34 def call(context:, score:, reason:) json({score: score, reason: reason}) end |