Class: Deeprails::Models::MonitorSubmitEventParams::ModelInput
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Deeprails::Models::MonitorSubmitEventParams::ModelInput
- Defined in:
- lib/deeprails/models/monitor_submit_event_params.rb
Instance Attribute Summary collapse
-
#ground_truth ⇒ String?
The ground truth for evaluating Ground Truth Adherence guardrail.
-
#system_prompt ⇒ String?
The system prompt used to generate the output.
-
#user_prompt ⇒ String?
The user prompt used to generate the output.
Instance Method Summary collapse
-
#initialize(model_input:, model_output:, nametag: nil, run_mode: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see Deeprails::Models::MonitorSubmitEventParams 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(model_input:, model_output:, nametag: nil, run_mode: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Deeprails::Models::MonitorSubmitEventParams for more details.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/deeprails/models/monitor_submit_event_params.rb', line 53 class ModelInput < Deeprails::Internal::Type::BaseModel # @!attribute ground_truth # The ground truth for evaluating Ground Truth Adherence guardrail. # # @return [String, nil] optional :ground_truth, String # @!attribute system_prompt # The system prompt used to generate the output. # # @return [String, nil] optional :system_prompt, String # @!attribute user_prompt # The user prompt used to generate the output. # # @return [String, nil] optional :user_prompt, String # @!method initialize(ground_truth: nil, system_prompt: nil, user_prompt: nil) # A dictionary of inputs sent to the LLM to generate output. The dictionary must # contain at least a `user_prompt` field or a `system_prompt` field. For # ground_truth_adherence guardrail metric, `ground_truth` should be provided. # # @param ground_truth [String] The ground truth for evaluating Ground Truth Adherence guardrail. # # @param system_prompt [String] The system prompt used to generate the output. # # @param user_prompt [String] The user prompt used to generate the output. end |
Instance Attribute Details
#ground_truth ⇒ String?
The ground truth for evaluating Ground Truth Adherence guardrail.
58 |
# File 'lib/deeprails/models/monitor_submit_event_params.rb', line 58 optional :ground_truth, String |
#system_prompt ⇒ String?
The system prompt used to generate the output.
64 |
# File 'lib/deeprails/models/monitor_submit_event_params.rb', line 64 optional :system_prompt, String |
#user_prompt ⇒ String?
The user prompt used to generate the output.
70 |
# File 'lib/deeprails/models/monitor_submit_event_params.rb', line 70 optional :user_prompt, String |