Class: Raif::Evals::CliJudges::Claude

Inherits:
Base
  • Object
show all
Defined in:
app/models/raif/evals/cli_judges/claude.rb

Constant Summary collapse

NOT_SIGNED_IN =
/not logged in|please run \/login|invalid api key|authentication|oauth/i
USAGE_LIMITED =
/usage limit|limit reached|hit your limit/i
RATE_LIMITED =
/rate limit|overloaded|429/i

Constants inherited from Base

Base::STRIPPED_ENV

Constants inherited from Llm

Llm::UNSENT_TEMPERATURE_WARNINGS, Llm::VALID_RESPONSE_FORMATS

Instance Attribute Summary

Attributes inherited from Llm

#api_name, #batch_max_completion_tokens, #capabilities, #default_max_completion_tokens, #default_temperature, #deprecated, #display_name, #input_token_cost, #key, #lifecycle, #migration_note, #non_streaming_max_completion_tokens, #output_token_cost, #pricing, #provider_settings, #replacement_key, #retirement_date, #supported_provider_managed_tools, #supports_native_tool_use

Class Method Summary collapse

Methods inherited from Base

eval_judge_only?, #format_messages, llm_configs, #perform_model_completion!, reset_version_check!

Methods inherited from Llm

#accepts_reasoning_effort?, #added_on, batch_inference_cost_multiplier, #build_forced_tool_choice, #build_pending_model_completion, #build_required_tool_choice, cache_creation_input_token_cost_multiplier, cache_read_input_token_cost_multiplier, #chat, #deprecated?, #deprecated_on, deprecation_details, #deprecation_message, eval_judge_only?, #initialize, #lifecycle_status, #name, #pending_model_completion_attributes, #perform_model_completion!, prompt_tokens_include_cached_tokens?, #reasoning_effort_levels, #streaming_supported?, streaming_supported_for_key?, supports_batch_inference?, #supports_batch_inference?, #supports_encrypted_reasoning?, #supports_faithful_required_tool_choice?, #supports_forced_tool_choice?, #supports_parallel_tool_calls?, #supports_provider_managed_tool?, supports_reasoning_effort?, #supports_required_tool_choice?, #supports_strict_structured_outputs?, #supports_structured_outputs?, #supports_temperature?, valid_response_formats, #validate_provider_managed_tool_support!, #validate_tool_choice_support!

Constructor Details

This class inherits a constructor from Raif::Llm

Class Method Details

.executable ⇒ Object



18
# File 'app/models/raif/evals/cli_judges/claude.rb', line 18

def self.executable = "claude"

.kept_env ⇒ Object

The login a headless or container setup passes in the environment (claude setup-token).



21
# File 'app/models/raif/evals/cli_judges/claude.rb', line 21

def self.kept_env = ["CLAUDE_CODE_OAUTH_TOKEN"]

.minimum_version ⇒ Object

The oldest version the flags in #argv were checked against.



24
# File 'app/models/raif/evals/cli_judges/claude.rb', line 24

def self.minimum_version = "2.1.334"

.models ⇒ Object



11
12
13
14
15
16
# File 'app/models/raif/evals/cli_judges/claude.rb', line 11

def self.models
  [
    { key: :claude_cli_opus_5_5, api_name: "claude-opus-5-5", display_name: "Claude 5.5 Opus (claude CLI)", effort: "high" },
    { key: :claude_cli_sonnet_5_5, api_name: "claude-sonnet-5-5", display_name: "Claude 5.5 Sonnet (claude CLI)", effort: "high" }
  ]
end