telnyx 5.64.0 → 5.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistant_create_params.rb +8 -1
  5. data/lib/telnyx/models/ai/assistant_update_params.rb +8 -1
  6. data/lib/telnyx/models/ai/assistants/tool_add_params.rb +30 -0
  7. data/lib/telnyx/models/ai/assistants/tool_add_response.rb +12 -0
  8. data/lib/telnyx/models/ai/assistants/tool_remove_params.rb +30 -0
  9. data/lib/telnyx/models/ai/assistants/tool_remove_response.rb +12 -0
  10. data/lib/telnyx/models/ai/assistants/update_assistant.rb +8 -1
  11. data/lib/telnyx/models/ai/tool_create_params.rb +64 -0
  12. data/lib/telnyx/models/ai/tool_create_response.rb +48 -0
  13. data/lib/telnyx/models/ai/tool_delete_params.rb +22 -0
  14. data/lib/telnyx/models/ai/tool_delete_response.rb +10 -0
  15. data/lib/telnyx/models/ai/tool_list_params.rb +40 -0
  16. data/lib/telnyx/models/ai/tool_list_response.rb +48 -0
  17. data/lib/telnyx/models/ai/tool_retrieve_params.rb +22 -0
  18. data/lib/telnyx/models/ai/tool_retrieve_response.rb +48 -0
  19. data/lib/telnyx/models/ai/tool_update_params.rb +70 -0
  20. data/lib/telnyx/models/ai/tool_update_response.rb +48 -0
  21. data/lib/telnyx/resources/ai/assistants/tools.rb +50 -0
  22. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
  23. data/lib/telnyx/resources/ai/assistants.rb +6 -2
  24. data/lib/telnyx/resources/ai/tools.rb +143 -0
  25. data/lib/telnyx/resources/ai.rb +5 -0
  26. data/lib/telnyx/version.rb +1 -1
  27. data/lib/telnyx.rb +15 -0
  28. data/rbi/telnyx/models/ai/assistant_create_params.rbi +9 -0
  29. data/rbi/telnyx/models/ai/assistant_update_params.rbi +9 -0
  30. data/rbi/telnyx/models/ai/assistants/tool_add_params.rbi +50 -0
  31. data/rbi/telnyx/models/ai/assistants/tool_add_response.rbi +11 -0
  32. data/rbi/telnyx/models/ai/assistants/tool_remove_params.rbi +50 -0
  33. data/rbi/telnyx/models/ai/assistants/tool_remove_response.rbi +12 -0
  34. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +9 -0
  35. data/rbi/telnyx/models/ai/tool_create_params.rbi +103 -0
  36. data/rbi/telnyx/models/ai/tool_create_response.rbi +79 -0
  37. data/rbi/telnyx/models/ai/tool_delete_params.rbi +37 -0
  38. data/rbi/telnyx/models/ai/tool_delete_response.rbi +9 -0
  39. data/rbi/telnyx/models/ai/tool_list_params.rbi +73 -0
  40. data/rbi/telnyx/models/ai/tool_list_response.rbi +79 -0
  41. data/rbi/telnyx/models/ai/tool_retrieve_params.rbi +37 -0
  42. data/rbi/telnyx/models/ai/tool_retrieve_response.rbi +79 -0
  43. data/rbi/telnyx/models/ai/tool_update_params.rbi +115 -0
  44. data/rbi/telnyx/models/ai/tool_update_response.rbi +79 -0
  45. data/rbi/telnyx/resources/ai/assistants/tools.rbi +22 -0
  46. data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -0
  47. data/rbi/telnyx/resources/ai/assistants.rbi +4 -0
  48. data/rbi/telnyx/resources/ai/tools.rbi +114 -0
  49. data/rbi/telnyx/resources/ai.rbi +4 -0
  50. data/sig/telnyx/models/ai/assistant_create_params.rbs +7 -0
  51. data/sig/telnyx/models/ai/assistant_update_params.rbs +7 -0
  52. data/sig/telnyx/models/ai/assistants/tool_add_params.rbs +32 -0
  53. data/sig/telnyx/models/ai/assistants/tool_add_response.rbs +9 -0
  54. data/sig/telnyx/models/ai/assistants/tool_remove_params.rbs +32 -0
  55. data/sig/telnyx/models/ai/assistants/tool_remove_response.rbs +9 -0
  56. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +7 -0
  57. data/sig/telnyx/models/ai/tool_create_params.rbs +75 -0
  58. data/sig/telnyx/models/ai/tool_create_response.rbs +53 -0
  59. data/sig/telnyx/models/ai/tool_delete_params.rbs +25 -0
  60. data/sig/telnyx/models/ai/tool_delete_response.rbs +7 -0
  61. data/sig/telnyx/models/ai/tool_list_params.rbs +51 -0
  62. data/sig/telnyx/models/ai/tool_list_response.rbs +53 -0
  63. data/sig/telnyx/models/ai/tool_retrieve_params.rbs +25 -0
  64. data/sig/telnyx/models/ai/tool_retrieve_response.rbs +53 -0
  65. data/sig/telnyx/models/ai/tool_update_params.rbs +84 -0
  66. data/sig/telnyx/models/ai/tool_update_response.rbs +53 -0
  67. data/sig/telnyx/resources/ai/assistants/tools.rbs +12 -0
  68. data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
  69. data/sig/telnyx/resources/ai/assistants.rbs +2 -0
  70. data/sig/telnyx/resources/ai/tools.rbs +52 -0
  71. data/sig/telnyx/resources/ai.rbs +2 -0
  72. metadata +46 -1
@@ -0,0 +1,114 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Resources
5
+ class AI
6
+ # Configure AI assistant specifications
7
+ class Tools
8
+ # Create Tool
9
+ sig do
10
+ params(
11
+ display_name: String,
12
+ type: String,
13
+ function: T::Hash[Symbol, T.anything],
14
+ handoff: T::Hash[Symbol, T.anything],
15
+ invite: T::Hash[Symbol, T.anything],
16
+ retrieval: T::Hash[Symbol, T.anything],
17
+ timeout_ms: Integer,
18
+ webhook: T::Hash[Symbol, T.anything],
19
+ request_options: Telnyx::RequestOptions::OrHash
20
+ ).returns(Telnyx::Models::AI::ToolCreateResponse)
21
+ end
22
+ def create(
23
+ display_name:,
24
+ type:,
25
+ function: nil,
26
+ handoff: nil,
27
+ invite: nil,
28
+ retrieval: nil,
29
+ timeout_ms: nil,
30
+ webhook: nil,
31
+ request_options: {}
32
+ )
33
+ end
34
+
35
+ # Get Tool
36
+ sig do
37
+ params(
38
+ tool_id: String,
39
+ request_options: Telnyx::RequestOptions::OrHash
40
+ ).returns(Telnyx::Models::AI::ToolRetrieveResponse)
41
+ end
42
+ def retrieve(tool_id, request_options: {})
43
+ end
44
+
45
+ # Update Tool
46
+ sig do
47
+ params(
48
+ tool_id: String,
49
+ display_name: String,
50
+ function: T::Hash[Symbol, T.anything],
51
+ handoff: T::Hash[Symbol, T.anything],
52
+ invite: T::Hash[Symbol, T.anything],
53
+ retrieval: T::Hash[Symbol, T.anything],
54
+ timeout_ms: Integer,
55
+ type: String,
56
+ webhook: T::Hash[Symbol, T.anything],
57
+ request_options: Telnyx::RequestOptions::OrHash
58
+ ).returns(Telnyx::Models::AI::ToolUpdateResponse)
59
+ end
60
+ def update(
61
+ tool_id,
62
+ display_name: nil,
63
+ function: nil,
64
+ handoff: nil,
65
+ invite: nil,
66
+ retrieval: nil,
67
+ timeout_ms: nil,
68
+ type: nil,
69
+ webhook: nil,
70
+ request_options: {}
71
+ )
72
+ end
73
+
74
+ # List Tools
75
+ sig do
76
+ params(
77
+ filter_name: String,
78
+ filter_type: String,
79
+ page_number: Integer,
80
+ page_size: Integer,
81
+ request_options: Telnyx::RequestOptions::OrHash
82
+ ).returns(
83
+ Telnyx::Internal::DefaultFlatPagination[
84
+ Telnyx::Models::AI::ToolListResponse
85
+ ]
86
+ )
87
+ end
88
+ def list(
89
+ filter_name: nil,
90
+ filter_type: nil,
91
+ page_number: nil,
92
+ page_size: nil,
93
+ request_options: {}
94
+ )
95
+ end
96
+
97
+ # Delete Tool
98
+ sig do
99
+ params(
100
+ tool_id: String,
101
+ request_options: Telnyx::RequestOptions::OrHash
102
+ ).returns(T.anything)
103
+ end
104
+ def delete(tool_id, request_options: {})
105
+ end
106
+
107
+ # @api private
108
+ sig { params(client: Telnyx::Client).returns(T.attached_class) }
109
+ def self.new(client:)
110
+ end
111
+ end
112
+ end
113
+ end
114
+ end
@@ -42,6 +42,10 @@ module Telnyx
42
42
  sig { returns(Telnyx::Resources::AI::OpenAI) }
43
43
  attr_reader :openai
44
44
 
45
+ # Configure AI assistant specifications
46
+ sig { returns(Telnyx::Resources::AI::Tools) }
47
+ attr_reader :tools
48
+
45
49
  # This endpoint returns a list of Open Source and OpenAI models that are available
46
50
  # for use. <br /><br /> **Note**: Model `id`'s will be in the form
47
51
  # `{source}/{model_name}`. For example `openai/gpt-4` or
@@ -16,6 +16,7 @@ module Telnyx
16
16
  messaging_settings: Telnyx::AI::MessagingSettings,
17
17
  privacy_settings: Telnyx::AI::PrivacySettings,
18
18
  telephony_settings: Telnyx::AI::TelephonySettings,
19
+ tool_ids: ::Array[String],
19
20
  tools: ::Array[Telnyx::Models::AI::assistant_tool],
20
21
  transcription: Telnyx::AI::TranscriptionSettings,
21
22
  voice_settings: Telnyx::AI::VoiceSettings,
@@ -83,6 +84,10 @@ module Telnyx
83
84
  Telnyx::AI::TelephonySettings
84
85
  ) -> Telnyx::AI::TelephonySettings
85
86
 
87
+ attr_reader tool_ids: ::Array[String]?
88
+
89
+ def tool_ids=: (::Array[String]) -> ::Array[String]
90
+
86
91
  attr_reader tools: ::Array[Telnyx::Models::AI::assistant_tool]?
87
92
 
88
93
  def tools=: (
@@ -121,6 +126,7 @@ module Telnyx
121
126
  ?messaging_settings: Telnyx::AI::MessagingSettings,
122
127
  ?privacy_settings: Telnyx::AI::PrivacySettings,
123
128
  ?telephony_settings: Telnyx::AI::TelephonySettings,
129
+ ?tool_ids: ::Array[String],
124
130
  ?tools: ::Array[Telnyx::Models::AI::assistant_tool],
125
131
  ?transcription: Telnyx::AI::TranscriptionSettings,
126
132
  ?voice_settings: Telnyx::AI::VoiceSettings,
@@ -142,6 +148,7 @@ module Telnyx
142
148
  messaging_settings: Telnyx::AI::MessagingSettings,
143
149
  privacy_settings: Telnyx::AI::PrivacySettings,
144
150
  telephony_settings: Telnyx::AI::TelephonySettings,
151
+ tool_ids: ::Array[String],
145
152
  tools: ::Array[Telnyx::Models::AI::assistant_tool],
146
153
  transcription: Telnyx::AI::TranscriptionSettings,
147
154
  voice_settings: Telnyx::AI::VoiceSettings,
@@ -18,6 +18,7 @@ module Telnyx
18
18
  privacy_settings: Telnyx::AI::PrivacySettings,
19
19
  promote_to_main: bool,
20
20
  telephony_settings: Telnyx::AI::TelephonySettings,
21
+ tool_ids: ::Array[String],
21
22
  tools: ::Array[Telnyx::Models::AI::assistant_tool],
22
23
  transcription: Telnyx::AI::TranscriptionSettings,
23
24
  voice_settings: Telnyx::AI::VoiceSettings,
@@ -97,6 +98,10 @@ module Telnyx
97
98
  Telnyx::AI::TelephonySettings
98
99
  ) -> Telnyx::AI::TelephonySettings
99
100
 
101
+ attr_reader tool_ids: ::Array[String]?
102
+
103
+ def tool_ids=: (::Array[String]) -> ::Array[String]
104
+
100
105
  attr_reader tools: ::Array[Telnyx::Models::AI::assistant_tool]?
101
106
 
102
107
  def tools=: (
@@ -137,6 +142,7 @@ module Telnyx
137
142
  ?privacy_settings: Telnyx::AI::PrivacySettings,
138
143
  ?promote_to_main: bool,
139
144
  ?telephony_settings: Telnyx::AI::TelephonySettings,
145
+ ?tool_ids: ::Array[String],
140
146
  ?tools: ::Array[Telnyx::Models::AI::assistant_tool],
141
147
  ?transcription: Telnyx::AI::TranscriptionSettings,
142
148
  ?voice_settings: Telnyx::AI::VoiceSettings,
@@ -160,6 +166,7 @@ module Telnyx
160
166
  privacy_settings: Telnyx::AI::PrivacySettings,
161
167
  promote_to_main: bool,
162
168
  telephony_settings: Telnyx::AI::TelephonySettings,
169
+ tool_ids: ::Array[String],
163
170
  tools: ::Array[Telnyx::Models::AI::assistant_tool],
164
171
  transcription: Telnyx::AI::TranscriptionSettings,
165
172
  voice_settings: Telnyx::AI::VoiceSettings,
@@ -0,0 +1,32 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ module Assistants
5
+ type tool_add_params =
6
+ { assistant_id: String, tool_id: String }
7
+ & Telnyx::Internal::Type::request_parameters
8
+
9
+ class ToolAddParams < Telnyx::Internal::Type::BaseModel
10
+ extend Telnyx::Internal::Type::RequestParameters::Converter
11
+ include Telnyx::Internal::Type::RequestParameters
12
+
13
+ attr_accessor assistant_id: String
14
+
15
+ attr_accessor tool_id: String
16
+
17
+ def initialize: (
18
+ assistant_id: String,
19
+ tool_id: String,
20
+ ?request_options: Telnyx::request_opts
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ assistant_id: String,
25
+ tool_id: String,
26
+ request_options: Telnyx::RequestOptions
27
+ }
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,9 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ module Assistants
5
+ ToolAddResponse: Telnyx::Internal::Type::Converter
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,32 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ module Assistants
5
+ type tool_remove_params =
6
+ { assistant_id: String, tool_id: String }
7
+ & Telnyx::Internal::Type::request_parameters
8
+
9
+ class ToolRemoveParams < Telnyx::Internal::Type::BaseModel
10
+ extend Telnyx::Internal::Type::RequestParameters::Converter
11
+ include Telnyx::Internal::Type::RequestParameters
12
+
13
+ attr_accessor assistant_id: String
14
+
15
+ attr_accessor tool_id: String
16
+
17
+ def initialize: (
18
+ assistant_id: String,
19
+ tool_id: String,
20
+ ?request_options: Telnyx::request_opts
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ assistant_id: String,
25
+ tool_id: String,
26
+ request_options: Telnyx::RequestOptions
27
+ }
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,9 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ module Assistants
5
+ ToolRemoveResponse: Telnyx::Internal::Type::Converter
6
+ end
7
+ end
8
+ end
9
+ end
@@ -19,6 +19,7 @@ module Telnyx
19
19
  name: String,
20
20
  privacy_settings: Telnyx::AI::PrivacySettings,
21
21
  telephony_settings: Telnyx::AI::TelephonySettings,
22
+ tool_ids: ::Array[String],
22
23
  tools: ::Array[Telnyx::Models::AI::assistant_tool],
23
24
  transcription: Telnyx::AI::TranscriptionSettings,
24
25
  voice_settings: Telnyx::AI::VoiceSettings,
@@ -88,6 +89,10 @@ module Telnyx
88
89
  Telnyx::AI::TelephonySettings
89
90
  ) -> Telnyx::AI::TelephonySettings
90
91
 
92
+ attr_reader tool_ids: ::Array[String]?
93
+
94
+ def tool_ids=: (::Array[String]) -> ::Array[String]
95
+
91
96
  attr_reader tools: ::Array[Telnyx::Models::AI::assistant_tool]?
92
97
 
93
98
  def tools=: (
@@ -126,6 +131,7 @@ module Telnyx
126
131
  ?name: String,
127
132
  ?privacy_settings: Telnyx::AI::PrivacySettings,
128
133
  ?telephony_settings: Telnyx::AI::TelephonySettings,
134
+ ?tool_ids: ::Array[String],
129
135
  ?tools: ::Array[Telnyx::Models::AI::assistant_tool],
130
136
  ?transcription: Telnyx::AI::TranscriptionSettings,
131
137
  ?voice_settings: Telnyx::AI::VoiceSettings,
@@ -146,6 +152,7 @@ module Telnyx
146
152
  name: String,
147
153
  privacy_settings: Telnyx::AI::PrivacySettings,
148
154
  telephony_settings: Telnyx::AI::TelephonySettings,
155
+ tool_ids: ::Array[String],
149
156
  tools: ::Array[Telnyx::Models::AI::assistant_tool],
150
157
  transcription: Telnyx::AI::TranscriptionSettings,
151
158
  voice_settings: Telnyx::AI::VoiceSettings,
@@ -0,0 +1,75 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ type tool_create_params =
5
+ {
6
+ display_name: String,
7
+ type: String,
8
+ function: ::Hash[Symbol, top],
9
+ handoff: ::Hash[Symbol, top],
10
+ invite: ::Hash[Symbol, top],
11
+ retrieval: ::Hash[Symbol, top],
12
+ timeout_ms: Integer,
13
+ webhook: ::Hash[Symbol, top]
14
+ }
15
+ & Telnyx::Internal::Type::request_parameters
16
+
17
+ class ToolCreateParams < Telnyx::Internal::Type::BaseModel
18
+ extend Telnyx::Internal::Type::RequestParameters::Converter
19
+ include Telnyx::Internal::Type::RequestParameters
20
+
21
+ attr_accessor display_name: String
22
+
23
+ attr_accessor type: String
24
+
25
+ attr_reader function: ::Hash[Symbol, top]?
26
+
27
+ def function=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
28
+
29
+ attr_reader handoff: ::Hash[Symbol, top]?
30
+
31
+ def handoff=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
32
+
33
+ attr_reader invite: ::Hash[Symbol, top]?
34
+
35
+ def invite=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
36
+
37
+ attr_reader retrieval: ::Hash[Symbol, top]?
38
+
39
+ def retrieval=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
40
+
41
+ attr_reader timeout_ms: Integer?
42
+
43
+ def timeout_ms=: (Integer) -> Integer
44
+
45
+ attr_reader webhook: ::Hash[Symbol, top]?
46
+
47
+ def webhook=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
48
+
49
+ def initialize: (
50
+ display_name: String,
51
+ type: String,
52
+ ?function: ::Hash[Symbol, top],
53
+ ?handoff: ::Hash[Symbol, top],
54
+ ?invite: ::Hash[Symbol, top],
55
+ ?retrieval: ::Hash[Symbol, top],
56
+ ?timeout_ms: Integer,
57
+ ?webhook: ::Hash[Symbol, top],
58
+ ?request_options: Telnyx::request_opts
59
+ ) -> void
60
+
61
+ def to_hash: -> {
62
+ display_name: String,
63
+ type: String,
64
+ function: ::Hash[Symbol, top],
65
+ handoff: ::Hash[Symbol, top],
66
+ invite: ::Hash[Symbol, top],
67
+ retrieval: ::Hash[Symbol, top],
68
+ timeout_ms: Integer,
69
+ webhook: ::Hash[Symbol, top],
70
+ request_options: Telnyx::RequestOptions
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,53 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ type tool_create_response =
5
+ {
6
+ id: String,
7
+ tool_definition: ::Hash[Symbol, top],
8
+ type: String,
9
+ created_at: String,
10
+ display_name: String,
11
+ timeout_ms: Integer
12
+ }
13
+
14
+ class ToolCreateResponse < Telnyx::Internal::Type::BaseModel
15
+ attr_accessor id: String
16
+
17
+ attr_accessor tool_definition: ::Hash[Symbol, top]
18
+
19
+ attr_accessor type: String
20
+
21
+ attr_reader created_at: String?
22
+
23
+ def created_at=: (String) -> String
24
+
25
+ attr_reader display_name: String?
26
+
27
+ def display_name=: (String) -> String
28
+
29
+ attr_reader timeout_ms: Integer?
30
+
31
+ def timeout_ms=: (Integer) -> Integer
32
+
33
+ def initialize: (
34
+ id: String,
35
+ tool_definition: ::Hash[Symbol, top],
36
+ type: String,
37
+ ?created_at: String,
38
+ ?display_name: String,
39
+ ?timeout_ms: Integer
40
+ ) -> void
41
+
42
+ def to_hash: -> {
43
+ id: String,
44
+ tool_definition: ::Hash[Symbol, top],
45
+ type: String,
46
+ created_at: String,
47
+ display_name: String,
48
+ timeout_ms: Integer
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,25 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ type tool_delete_params =
5
+ { tool_id: String } & Telnyx::Internal::Type::request_parameters
6
+
7
+ class ToolDeleteParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ attr_accessor tool_id: String
12
+
13
+ def initialize: (
14
+ tool_id: String,
15
+ ?request_options: Telnyx::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ tool_id: String,
20
+ request_options: Telnyx::RequestOptions
21
+ }
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,7 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ ToolDeleteResponse: Telnyx::Internal::Type::Converter
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,51 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ type tool_list_params =
5
+ {
6
+ filter_name: String,
7
+ filter_type: String,
8
+ page_number: Integer,
9
+ page_size: Integer
10
+ }
11
+ & Telnyx::Internal::Type::request_parameters
12
+
13
+ class ToolListParams < Telnyx::Internal::Type::BaseModel
14
+ extend Telnyx::Internal::Type::RequestParameters::Converter
15
+ include Telnyx::Internal::Type::RequestParameters
16
+
17
+ attr_reader filter_name: String?
18
+
19
+ def filter_name=: (String) -> String
20
+
21
+ attr_reader filter_type: String?
22
+
23
+ def filter_type=: (String) -> String
24
+
25
+ attr_reader page_number: Integer?
26
+
27
+ def page_number=: (Integer) -> Integer
28
+
29
+ attr_reader page_size: Integer?
30
+
31
+ def page_size=: (Integer) -> Integer
32
+
33
+ def initialize: (
34
+ ?filter_name: String,
35
+ ?filter_type: String,
36
+ ?page_number: Integer,
37
+ ?page_size: Integer,
38
+ ?request_options: Telnyx::request_opts
39
+ ) -> void
40
+
41
+ def to_hash: -> {
42
+ filter_name: String,
43
+ filter_type: String,
44
+ page_number: Integer,
45
+ page_size: Integer,
46
+ request_options: Telnyx::RequestOptions
47
+ }
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,53 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ type tool_list_response =
5
+ {
6
+ id: String,
7
+ tool_definition: ::Hash[Symbol, top],
8
+ type: String,
9
+ created_at: String,
10
+ display_name: String,
11
+ timeout_ms: Integer
12
+ }
13
+
14
+ class ToolListResponse < Telnyx::Internal::Type::BaseModel
15
+ attr_accessor id: String
16
+
17
+ attr_accessor tool_definition: ::Hash[Symbol, top]
18
+
19
+ attr_accessor type: String
20
+
21
+ attr_reader created_at: String?
22
+
23
+ def created_at=: (String) -> String
24
+
25
+ attr_reader display_name: String?
26
+
27
+ def display_name=: (String) -> String
28
+
29
+ attr_reader timeout_ms: Integer?
30
+
31
+ def timeout_ms=: (Integer) -> Integer
32
+
33
+ def initialize: (
34
+ id: String,
35
+ tool_definition: ::Hash[Symbol, top],
36
+ type: String,
37
+ ?created_at: String,
38
+ ?display_name: String,
39
+ ?timeout_ms: Integer
40
+ ) -> void
41
+
42
+ def to_hash: -> {
43
+ id: String,
44
+ tool_definition: ::Hash[Symbol, top],
45
+ type: String,
46
+ created_at: String,
47
+ display_name: String,
48
+ timeout_ms: Integer
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,25 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ type tool_retrieve_params =
5
+ { tool_id: String } & Telnyx::Internal::Type::request_parameters
6
+
7
+ class ToolRetrieveParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ attr_accessor tool_id: String
12
+
13
+ def initialize: (
14
+ tool_id: String,
15
+ ?request_options: Telnyx::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ tool_id: String,
20
+ request_options: Telnyx::RequestOptions
21
+ }
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,53 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ type tool_retrieve_response =
5
+ {
6
+ id: String,
7
+ tool_definition: ::Hash[Symbol, top],
8
+ type: String,
9
+ created_at: String,
10
+ display_name: String,
11
+ timeout_ms: Integer
12
+ }
13
+
14
+ class ToolRetrieveResponse < Telnyx::Internal::Type::BaseModel
15
+ attr_accessor id: String
16
+
17
+ attr_accessor tool_definition: ::Hash[Symbol, top]
18
+
19
+ attr_accessor type: String
20
+
21
+ attr_reader created_at: String?
22
+
23
+ def created_at=: (String) -> String
24
+
25
+ attr_reader display_name: String?
26
+
27
+ def display_name=: (String) -> String
28
+
29
+ attr_reader timeout_ms: Integer?
30
+
31
+ def timeout_ms=: (Integer) -> Integer
32
+
33
+ def initialize: (
34
+ id: String,
35
+ tool_definition: ::Hash[Symbol, top],
36
+ type: String,
37
+ ?created_at: String,
38
+ ?display_name: String,
39
+ ?timeout_ms: Integer
40
+ ) -> void
41
+
42
+ def to_hash: -> {
43
+ id: String,
44
+ tool_definition: ::Hash[Symbol, top],
45
+ type: String,
46
+ created_at: String,
47
+ display_name: String,
48
+ timeout_ms: Integer
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end