Class: Telnyx::Resources::AI::Assistants::Tests::TestSuites

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/ai/assistants/tests/test_suites.rb,
lib/telnyx/resources/ai/assistants/tests/test_suites/runs.rb

Overview

Configure AI assistant specifications

Defined Under Namespace

Classes: Runs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ TestSuites

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of TestSuites.

Parameters:



35
36
37
38
# File 'lib/telnyx/resources/ai/assistants/tests/test_suites.rb', line 35

def initialize(client:)
  @client = client
  @runs = Telnyx::Resources::AI::Assistants::Tests::TestSuites::Runs.new(client: client)
end

Instance Attribute Details

#runsTelnyx::Resources::AI::Assistants::Tests::TestSuites::Runs (readonly)

Configure AI assistant specifications



12
13
14
# File 'lib/telnyx/resources/ai/assistants/tests/test_suites.rb', line 12

def runs
  @runs
end

Instance Method Details

#list(request_options: {}) ⇒ Telnyx::Models::AI::Assistants::Tests::TestSuiteListResponse

Retrieves a list of all distinct test suite names available to the current user



23
24
25
26
27
28
29
30
# File 'lib/telnyx/resources/ai/assistants/tests/test_suites.rb', line 23

def list(params = {})
  @client.request(
    method: :get,
    path: "ai/assistants/tests/test-suites",
    model: Telnyx::Models::AI::Assistants::Tests::TestSuiteListResponse,
    options: params[:request_options]
  )
end