Class: Deeprails::Models::MonitorDetailResponse::Evaluation::ModelInput::Context
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Deeprails::Models::MonitorDetailResponse::Evaluation::ModelInput::Context
- Defined in:
- lib/deeprails/models/monitor_detail_response.rb
Instance Attribute Summary collapse
-
#content ⇒ String?
The content of the message.
-
#role ⇒ String?
The role of the speaker.
Instance Method Summary collapse
-
#initialize(user_prompt:, context: nil, ground_truth: nil, system_prompt: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Deeprails::Models::MonitorDetailResponse::Evaluation::ModelInput for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(user_prompt:, context: nil, ground_truth: nil, system_prompt: nil) ⇒ Object
Some parameter documentations has been truncated, see Deeprails::Models::MonitorDetailResponse::Evaluation::ModelInput for more details.
A dictionary of inputs sent to the LLM to generate output. The dictionary must
contain a user_prompt field. For ground_truth_adherence guardrail metric,
ground_truth should be provided. When context_awareness is enabled,
context should be provided.
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 |
# File 'lib/deeprails/models/monitor_detail_response.rb', line 276 class Context < Deeprails::Internal::Type::BaseModel # @!attribute content # The content of the message. # # @return [String, nil] optional :content, String # @!attribute role # The role of the speaker. # # @return [String, nil] optional :role, String # @!method initialize(content: nil, role: nil) # @param content [String] The content of the message. # # @param role [String] The role of the speaker. end |
Instance Attribute Details
#content ⇒ String?
The content of the message.
281 |
# File 'lib/deeprails/models/monitor_detail_response.rb', line 281 optional :content, String |
#role ⇒ String?
The role of the speaker.
287 |
# File 'lib/deeprails/models/monitor_detail_response.rb', line 287 optional :role, String |