Class: Telnyx::Models::AI::Assistants::AssistantTest::Rubric

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/assistants/assistant_test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(created_at:, name:, rubric:, telnyx_conversation_channel:, test_id:, description: nil, destination: nil, instructions: nil, max_duration_seconds: nil, test_suite: nil) ⇒ Object

Response model containing complete assistant test information.

Returns all test configuration details including evaluation criteria, scheduling, and metadata. Used when retrieving individual tests or after creating/updating tests.

Parameters:

  • created_at (Time)

    Timestamp when the test was created.

  • name (String)

    Human-readable name of the test.

  • rubric (Array<Telnyx::Models::AI::Assistants::AssistantTest::Rubric>)

    Evaluation criteria used to assess test performance.

  • telnyx_conversation_channel (Symbol, Telnyx::Models::AI::Assistants::TelnyxConversationChannel)

    Communication channel used for test execution.

  • test_id (String)

    Unique identifier for the assistant test.

  • description (String) (defaults to: nil)

    Detailed description of the test’s purpose and scope.

  • destination (String) (defaults to: nil)

    Target destination for test conversations.

  • instructions (String) (defaults to: nil)

    Detailed test scenario instructions and objectives.

  • max_duration_seconds (Integer) (defaults to: nil)

    Maximum allowed duration for test execution in seconds.

  • test_suite (String) (defaults to: nil)

    Test suite grouping for organizational purposes.



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'lib/telnyx/models/ai/assistants/assistant_test.rb', line 96

class Rubric < Telnyx::Internal::Type::BaseModel
  # @!attribute criteria
  #   Specific guidance on how to assess the assistant’s performance for this rubric
  #   item.
  #
  #   @return [String]
  required :criteria, String

  # @!attribute name
  #   Label for the evaluation criterion, e.g., Empathy, Accuracy, Clarity.
  #
  #   @return [String]
  required :name, String

  # @!method initialize(criteria:, name:)
  #   Some parameter documentations has been truncated, see
  #   {Telnyx::Models::AI::Assistants::AssistantTest::Rubric} for more details.
  #
  #   @param criteria [String] Specific guidance on how to assess the assistant’s performance for this rubric i
  #
  #   @param name [String] Label for the evaluation criterion, e.g., Empathy, Accuracy, Clarity.
end

Instance Attribute Details

#criteriaString

Specific guidance on how to assess the assistant’s performance for this rubric item.

Returns:

  • (String)


102
# File 'lib/telnyx/models/ai/assistants/assistant_test.rb', line 102

required :criteria, String

#nameString

Label for the evaluation criterion, e.g., Empathy, Accuracy, Clarity.

Returns:

  • (String)


108
# File 'lib/telnyx/models/ai/assistants/assistant_test.rb', line 108

required :name, String