telnyx 5.76.0 → 5.78.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/conversations/message_list_params.rb +18 -1
- data/lib/telnyx/models/ai/conversations/message_list_response.rb +91 -109
- data/lib/telnyx/models/ai/telephony_settings.rb +11 -1
- data/lib/telnyx/models/call_dial_params.rb +6 -2
- data/lib/telnyx/models/calls/action_transfer_params.rb +6 -2
- data/lib/telnyx/resources/ai/conversations/messages.rb +12 -3
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/ai/conversations/message_list_params.rbi +26 -1
- data/rbi/telnyx/models/ai/conversations/message_list_response.rbi +176 -231
- data/rbi/telnyx/models/ai/telephony_settings.rbi +15 -0
- data/rbi/telnyx/models/call_dial_params.rbi +9 -3
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +9 -3
- data/rbi/telnyx/resources/ai/conversations/messages.rbi +15 -2
- data/rbi/telnyx/resources/calls/actions.rbi +3 -1
- data/rbi/telnyx/resources/calls.rbi +3 -1
- data/sig/telnyx/models/ai/conversations/message_list_params.rbs +13 -1
- data/sig/telnyx/models/ai/conversations/message_list_response.rbs +67 -89
- data/sig/telnyx/models/ai/telephony_settings.rbs +7 -0
- data/sig/telnyx/resources/ai/conversations/messages.rbs +3 -1
- metadata +2 -2
|
@@ -13,328 +13,273 @@ module Telnyx
|
|
|
13
13
|
)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
+
# The role of the message sender.
|
|
16
17
|
sig do
|
|
17
18
|
returns(
|
|
18
|
-
|
|
19
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data
|
|
20
|
-
]
|
|
19
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::Role::TaggedSymbol
|
|
21
20
|
)
|
|
22
21
|
end
|
|
23
|
-
attr_accessor :
|
|
22
|
+
attr_accessor :role
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
# The message content. Can be null for tool calls.
|
|
25
|
+
sig { returns(String) }
|
|
26
|
+
attr_accessor :text
|
|
27
|
+
|
|
28
|
+
# The datetime the message was created on the conversation. This does not
|
|
29
|
+
# necesarily correspond to the time the message was sent. The best field to use to
|
|
30
|
+
# determine the time the end user experienced the message is `sent_at`.
|
|
31
|
+
sig { returns(T.nilable(Time)) }
|
|
32
|
+
attr_reader :created_at
|
|
33
|
+
|
|
34
|
+
sig { params(created_at: Time).void }
|
|
35
|
+
attr_writer :created_at
|
|
36
|
+
|
|
37
|
+
# The datetime the message was sent to the end user.
|
|
38
|
+
sig { returns(T.nilable(Time)) }
|
|
39
|
+
attr_reader :sent_at
|
|
40
|
+
|
|
41
|
+
sig { params(sent_at: Time).void }
|
|
42
|
+
attr_writer :sent_at
|
|
43
|
+
|
|
44
|
+
# Optional tool calls made by the assistant.
|
|
45
|
+
sig do
|
|
46
|
+
returns(
|
|
47
|
+
T.nilable(
|
|
48
|
+
T::Array[
|
|
49
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall
|
|
50
|
+
]
|
|
51
|
+
)
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
attr_reader :tool_calls
|
|
27
55
|
|
|
28
56
|
sig do
|
|
29
57
|
params(
|
|
30
|
-
|
|
58
|
+
tool_calls:
|
|
59
|
+
T::Array[
|
|
60
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::OrHash
|
|
61
|
+
]
|
|
31
62
|
).void
|
|
32
63
|
end
|
|
33
|
-
attr_writer :
|
|
64
|
+
attr_writer :tool_calls
|
|
34
65
|
|
|
35
66
|
sig do
|
|
36
67
|
params(
|
|
37
|
-
|
|
68
|
+
role:
|
|
69
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::Role::OrSymbol,
|
|
70
|
+
text: String,
|
|
71
|
+
created_at: Time,
|
|
72
|
+
sent_at: Time,
|
|
73
|
+
tool_calls:
|
|
38
74
|
T::Array[
|
|
39
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::
|
|
40
|
-
]
|
|
41
|
-
meta: Telnyx::AI::Assistants::Tests::TestSuites::Meta::OrHash
|
|
75
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::OrHash
|
|
76
|
+
]
|
|
42
77
|
).returns(T.attached_class)
|
|
43
78
|
end
|
|
44
|
-
def self.new(
|
|
79
|
+
def self.new(
|
|
80
|
+
# The role of the message sender.
|
|
81
|
+
role:,
|
|
82
|
+
# The message content. Can be null for tool calls.
|
|
83
|
+
text:,
|
|
84
|
+
# The datetime the message was created on the conversation. This does not
|
|
85
|
+
# necesarily correspond to the time the message was sent. The best field to use to
|
|
86
|
+
# determine the time the end user experienced the message is `sent_at`.
|
|
87
|
+
created_at: nil,
|
|
88
|
+
# The datetime the message was sent to the end user.
|
|
89
|
+
sent_at: nil,
|
|
90
|
+
# Optional tool calls made by the assistant.
|
|
91
|
+
tool_calls: nil
|
|
92
|
+
)
|
|
45
93
|
end
|
|
46
94
|
|
|
47
95
|
sig do
|
|
48
96
|
override.returns(
|
|
49
97
|
{
|
|
50
|
-
|
|
98
|
+
role:
|
|
99
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::Role::TaggedSymbol,
|
|
100
|
+
text: String,
|
|
101
|
+
created_at: Time,
|
|
102
|
+
sent_at: Time,
|
|
103
|
+
tool_calls:
|
|
51
104
|
T::Array[
|
|
52
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::
|
|
53
|
-
]
|
|
54
|
-
meta: Telnyx::AI::Assistants::Tests::TestSuites::Meta
|
|
105
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall
|
|
106
|
+
]
|
|
55
107
|
}
|
|
56
108
|
)
|
|
57
109
|
end
|
|
58
110
|
def to_hash
|
|
59
111
|
end
|
|
60
112
|
|
|
61
|
-
|
|
62
|
-
|
|
113
|
+
# The role of the message sender.
|
|
114
|
+
module Role
|
|
115
|
+
extend Telnyx::Internal::Type::Enum
|
|
116
|
+
|
|
117
|
+
TaggedSymbol =
|
|
63
118
|
T.type_alias do
|
|
64
|
-
T.
|
|
65
|
-
|
|
66
|
-
Telnyx::
|
|
119
|
+
T.all(
|
|
120
|
+
Symbol,
|
|
121
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::Role
|
|
67
122
|
)
|
|
68
123
|
end
|
|
124
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
125
|
+
|
|
126
|
+
USER =
|
|
127
|
+
T.let(
|
|
128
|
+
:user,
|
|
129
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::Role::TaggedSymbol
|
|
130
|
+
)
|
|
131
|
+
ASSISTANT =
|
|
132
|
+
T.let(
|
|
133
|
+
:assistant,
|
|
134
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::Role::TaggedSymbol
|
|
135
|
+
)
|
|
136
|
+
TOOL =
|
|
137
|
+
T.let(
|
|
138
|
+
:tool,
|
|
139
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::Role::TaggedSymbol
|
|
140
|
+
)
|
|
69
141
|
|
|
70
|
-
# The role of the message sender.
|
|
71
142
|
sig do
|
|
72
|
-
returns(
|
|
73
|
-
|
|
143
|
+
override.returns(
|
|
144
|
+
T::Array[
|
|
145
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::Role::TaggedSymbol
|
|
146
|
+
]
|
|
74
147
|
)
|
|
75
148
|
end
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
sig { returns(String) }
|
|
80
|
-
attr_accessor :text
|
|
81
|
-
|
|
82
|
-
# The datetime the message was created on the conversation. This does not
|
|
83
|
-
# necesarily correspond to the time the message was sent. The best field to use to
|
|
84
|
-
# determine the time the end user experienced the message is `sent_at`.
|
|
85
|
-
sig { returns(T.nilable(Time)) }
|
|
86
|
-
attr_reader :created_at
|
|
87
|
-
|
|
88
|
-
sig { params(created_at: Time).void }
|
|
89
|
-
attr_writer :created_at
|
|
149
|
+
def self.values
|
|
150
|
+
end
|
|
151
|
+
end
|
|
90
152
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
153
|
+
class ToolCall < Telnyx::Internal::Type::BaseModel
|
|
154
|
+
OrHash =
|
|
155
|
+
T.type_alias do
|
|
156
|
+
T.any(
|
|
157
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall,
|
|
158
|
+
Telnyx::Internal::AnyHash
|
|
159
|
+
)
|
|
160
|
+
end
|
|
94
161
|
|
|
95
|
-
|
|
96
|
-
|
|
162
|
+
# Unique identifier for the tool call.
|
|
163
|
+
sig { returns(String) }
|
|
164
|
+
attr_accessor :id
|
|
97
165
|
|
|
98
|
-
# Optional tool calls made by the assistant.
|
|
99
166
|
sig do
|
|
100
167
|
returns(
|
|
101
|
-
|
|
102
|
-
T::Array[
|
|
103
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall
|
|
104
|
-
]
|
|
105
|
-
)
|
|
168
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Function
|
|
106
169
|
)
|
|
107
170
|
end
|
|
108
|
-
attr_reader :
|
|
171
|
+
attr_reader :function
|
|
109
172
|
|
|
110
173
|
sig do
|
|
111
174
|
params(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::OrHash
|
|
115
|
-
]
|
|
175
|
+
function:
|
|
176
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Function::OrHash
|
|
116
177
|
).void
|
|
117
178
|
end
|
|
118
|
-
attr_writer :
|
|
179
|
+
attr_writer :function
|
|
180
|
+
|
|
181
|
+
# Type of the tool call.
|
|
182
|
+
sig do
|
|
183
|
+
returns(
|
|
184
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Type::TaggedSymbol
|
|
185
|
+
)
|
|
186
|
+
end
|
|
187
|
+
attr_accessor :type
|
|
119
188
|
|
|
120
189
|
sig do
|
|
121
190
|
params(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
tool_calls:
|
|
128
|
-
T::Array[
|
|
129
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::OrHash
|
|
130
|
-
]
|
|
191
|
+
id: String,
|
|
192
|
+
function:
|
|
193
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Function::OrHash,
|
|
194
|
+
type:
|
|
195
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Type::OrSymbol
|
|
131
196
|
).returns(T.attached_class)
|
|
132
197
|
end
|
|
133
198
|
def self.new(
|
|
134
|
-
#
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
# necesarily correspond to the time the message was sent. The best field to use to
|
|
140
|
-
# determine the time the end user experienced the message is `sent_at`.
|
|
141
|
-
created_at: nil,
|
|
142
|
-
# The datetime the message was sent to the end user.
|
|
143
|
-
sent_at: nil,
|
|
144
|
-
# Optional tool calls made by the assistant.
|
|
145
|
-
tool_calls: nil
|
|
199
|
+
# Unique identifier for the tool call.
|
|
200
|
+
id:,
|
|
201
|
+
function:,
|
|
202
|
+
# Type of the tool call.
|
|
203
|
+
type:
|
|
146
204
|
)
|
|
147
205
|
end
|
|
148
206
|
|
|
149
207
|
sig do
|
|
150
208
|
override.returns(
|
|
151
209
|
{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
tool_calls:
|
|
158
|
-
T::Array[
|
|
159
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall
|
|
160
|
-
]
|
|
210
|
+
id: String,
|
|
211
|
+
function:
|
|
212
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Function,
|
|
213
|
+
type:
|
|
214
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Type::TaggedSymbol
|
|
161
215
|
}
|
|
162
216
|
)
|
|
163
217
|
end
|
|
164
218
|
def to_hash
|
|
165
219
|
end
|
|
166
220
|
|
|
167
|
-
|
|
168
|
-
module Role
|
|
169
|
-
extend Telnyx::Internal::Type::Enum
|
|
170
|
-
|
|
171
|
-
TaggedSymbol =
|
|
172
|
-
T.type_alias do
|
|
173
|
-
T.all(
|
|
174
|
-
Symbol,
|
|
175
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::Role
|
|
176
|
-
)
|
|
177
|
-
end
|
|
178
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
179
|
-
|
|
180
|
-
USER =
|
|
181
|
-
T.let(
|
|
182
|
-
:user,
|
|
183
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::Role::TaggedSymbol
|
|
184
|
-
)
|
|
185
|
-
ASSISTANT =
|
|
186
|
-
T.let(
|
|
187
|
-
:assistant,
|
|
188
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::Role::TaggedSymbol
|
|
189
|
-
)
|
|
190
|
-
TOOL =
|
|
191
|
-
T.let(
|
|
192
|
-
:tool,
|
|
193
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::Role::TaggedSymbol
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
sig do
|
|
197
|
-
override.returns(
|
|
198
|
-
T::Array[
|
|
199
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::Role::TaggedSymbol
|
|
200
|
-
]
|
|
201
|
-
)
|
|
202
|
-
end
|
|
203
|
-
def self.values
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
class ToolCall < Telnyx::Internal::Type::BaseModel
|
|
221
|
+
class Function < Telnyx::Internal::Type::BaseModel
|
|
208
222
|
OrHash =
|
|
209
223
|
T.type_alias do
|
|
210
224
|
T.any(
|
|
211
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::
|
|
225
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Function,
|
|
212
226
|
Telnyx::Internal::AnyHash
|
|
213
227
|
)
|
|
214
228
|
end
|
|
215
229
|
|
|
216
|
-
#
|
|
230
|
+
# JSON-formatted arguments to pass to the function.
|
|
217
231
|
sig { returns(String) }
|
|
218
|
-
attr_accessor :
|
|
219
|
-
|
|
220
|
-
sig do
|
|
221
|
-
returns(
|
|
222
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Function
|
|
223
|
-
)
|
|
224
|
-
end
|
|
225
|
-
attr_reader :function
|
|
232
|
+
attr_accessor :arguments
|
|
226
233
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Function::OrHash
|
|
231
|
-
).void
|
|
232
|
-
end
|
|
233
|
-
attr_writer :function
|
|
234
|
+
# Name of the function to call.
|
|
235
|
+
sig { returns(String) }
|
|
236
|
+
attr_accessor :name
|
|
234
237
|
|
|
235
|
-
# Type of the tool call.
|
|
236
238
|
sig do
|
|
237
|
-
returns(
|
|
238
|
-
|
|
239
|
+
params(arguments: String, name: String).returns(
|
|
240
|
+
T.attached_class
|
|
239
241
|
)
|
|
240
242
|
end
|
|
241
|
-
attr_accessor :type
|
|
242
|
-
|
|
243
|
-
sig do
|
|
244
|
-
params(
|
|
245
|
-
id: String,
|
|
246
|
-
function:
|
|
247
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Function::OrHash,
|
|
248
|
-
type:
|
|
249
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Type::OrSymbol
|
|
250
|
-
).returns(T.attached_class)
|
|
251
|
-
end
|
|
252
243
|
def self.new(
|
|
253
|
-
#
|
|
254
|
-
|
|
255
|
-
function
|
|
256
|
-
|
|
257
|
-
type:
|
|
244
|
+
# JSON-formatted arguments to pass to the function.
|
|
245
|
+
arguments:,
|
|
246
|
+
# Name of the function to call.
|
|
247
|
+
name:
|
|
258
248
|
)
|
|
259
249
|
end
|
|
260
250
|
|
|
261
|
-
sig
|
|
262
|
-
override.returns(
|
|
263
|
-
{
|
|
264
|
-
id: String,
|
|
265
|
-
function:
|
|
266
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Function,
|
|
267
|
-
type:
|
|
268
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Type::TaggedSymbol
|
|
269
|
-
}
|
|
270
|
-
)
|
|
271
|
-
end
|
|
251
|
+
sig { override.returns({ arguments: String, name: String }) }
|
|
272
252
|
def to_hash
|
|
273
253
|
end
|
|
254
|
+
end
|
|
274
255
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
T.any(
|
|
279
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Function,
|
|
280
|
-
Telnyx::Internal::AnyHash
|
|
281
|
-
)
|
|
282
|
-
end
|
|
283
|
-
|
|
284
|
-
# JSON-formatted arguments to pass to the function.
|
|
285
|
-
sig { returns(String) }
|
|
286
|
-
attr_accessor :arguments
|
|
287
|
-
|
|
288
|
-
# Name of the function to call.
|
|
289
|
-
sig { returns(String) }
|
|
290
|
-
attr_accessor :name
|
|
256
|
+
# Type of the tool call.
|
|
257
|
+
module Type
|
|
258
|
+
extend Telnyx::Internal::Type::Enum
|
|
291
259
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
260
|
+
TaggedSymbol =
|
|
261
|
+
T.type_alias do
|
|
262
|
+
T.all(
|
|
263
|
+
Symbol,
|
|
264
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Type
|
|
295
265
|
)
|
|
296
266
|
end
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
267
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
268
|
+
|
|
269
|
+
FUNCTION =
|
|
270
|
+
T.let(
|
|
271
|
+
:function,
|
|
272
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Type::TaggedSymbol
|
|
302
273
|
)
|
|
303
|
-
end
|
|
304
274
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
275
|
+
sig do
|
|
276
|
+
override.returns(
|
|
277
|
+
T::Array[
|
|
278
|
+
Telnyx::Models::AI::Conversations::MessageListResponse::ToolCall::Type::TaggedSymbol
|
|
279
|
+
]
|
|
280
|
+
)
|
|
308
281
|
end
|
|
309
|
-
|
|
310
|
-
# Type of the tool call.
|
|
311
|
-
module Type
|
|
312
|
-
extend Telnyx::Internal::Type::Enum
|
|
313
|
-
|
|
314
|
-
TaggedSymbol =
|
|
315
|
-
T.type_alias do
|
|
316
|
-
T.all(
|
|
317
|
-
Symbol,
|
|
318
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Type
|
|
319
|
-
)
|
|
320
|
-
end
|
|
321
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
322
|
-
|
|
323
|
-
FUNCTION =
|
|
324
|
-
T.let(
|
|
325
|
-
:function,
|
|
326
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Type::TaggedSymbol
|
|
327
|
-
)
|
|
328
|
-
|
|
329
|
-
sig do
|
|
330
|
-
override.returns(
|
|
331
|
-
T::Array[
|
|
332
|
-
Telnyx::Models::AI::Conversations::MessageListResponse::Data::ToolCall::Type::TaggedSymbol
|
|
333
|
-
]
|
|
334
|
-
)
|
|
335
|
-
end
|
|
336
|
-
def self.values
|
|
337
|
-
end
|
|
282
|
+
def self.values
|
|
338
283
|
end
|
|
339
284
|
end
|
|
340
285
|
end
|
|
@@ -84,6 +84,15 @@ module Telnyx
|
|
|
84
84
|
sig { params(time_limit_secs: Integer).void }
|
|
85
85
|
attr_writer :time_limit_secs
|
|
86
86
|
|
|
87
|
+
# Duration in seconds of end user silence before the assistant checks in on the
|
|
88
|
+
# user. When this limit is reached the assistant will prompt the user to respond.
|
|
89
|
+
# This is distinct from user_idle_timeout_secs which stops the assistant entirely.
|
|
90
|
+
sig { returns(T.nilable(Integer)) }
|
|
91
|
+
attr_reader :user_idle_reply_secs
|
|
92
|
+
|
|
93
|
+
sig { params(user_idle_reply_secs: Integer).void }
|
|
94
|
+
attr_writer :user_idle_reply_secs
|
|
95
|
+
|
|
87
96
|
# Maximum duration in seconds of end user silence on the call. When this limit is
|
|
88
97
|
# reached the assistant will be stopped. This limit does not apply to portions of
|
|
89
98
|
# a call without an active assistant (for instance, a call transferred to a human
|
|
@@ -124,6 +133,7 @@ module Telnyx
|
|
|
124
133
|
Telnyx::AI::TelephonySettings::RecordingSettings::OrHash,
|
|
125
134
|
supports_unauthenticated_web_calls: T::Boolean,
|
|
126
135
|
time_limit_secs: Integer,
|
|
136
|
+
user_idle_reply_secs: Integer,
|
|
127
137
|
user_idle_timeout_secs: Integer,
|
|
128
138
|
voicemail_detection:
|
|
129
139
|
Telnyx::AI::TelephonySettings::VoicemailDetection::OrHash
|
|
@@ -150,6 +160,10 @@ module Telnyx
|
|
|
150
160
|
# apply to portions of a call without an active assistant (for instance, a call
|
|
151
161
|
# transferred to a human representative).
|
|
152
162
|
time_limit_secs: nil,
|
|
163
|
+
# Duration in seconds of end user silence before the assistant checks in on the
|
|
164
|
+
# user. When this limit is reached the assistant will prompt the user to respond.
|
|
165
|
+
# This is distinct from user_idle_timeout_secs which stops the assistant entirely.
|
|
166
|
+
user_idle_reply_secs: nil,
|
|
153
167
|
# Maximum duration in seconds of end user silence on the call. When this limit is
|
|
154
168
|
# reached the assistant will be stopped. This limit does not apply to portions of
|
|
155
169
|
# a call without an active assistant (for instance, a call transferred to a human
|
|
@@ -177,6 +191,7 @@ module Telnyx
|
|
|
177
191
|
Telnyx::AI::TelephonySettings::RecordingSettings,
|
|
178
192
|
supports_unauthenticated_web_calls: T::Boolean,
|
|
179
193
|
time_limit_secs: Integer,
|
|
194
|
+
user_idle_reply_secs: Integer,
|
|
180
195
|
user_idle_timeout_secs: Integer,
|
|
181
196
|
voicemail_detection:
|
|
182
197
|
Telnyx::AI::TelephonySettings::VoicemailDetection
|
|
@@ -59,7 +59,9 @@ module Telnyx
|
|
|
59
59
|
attr_writer :answering_machine_detection
|
|
60
60
|
|
|
61
61
|
# Optional configuration parameters to modify 'answering_machine_detection'
|
|
62
|
-
# performance.
|
|
62
|
+
# performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
|
|
63
|
+
# parameters are applicable when `premium` is selected as
|
|
64
|
+
# answering_machine_detection.
|
|
63
65
|
sig do
|
|
64
66
|
returns(
|
|
65
67
|
T.nilable(Telnyx::CallDialParams::AnsweringMachineDetectionConfig)
|
|
@@ -730,7 +732,9 @@ module Telnyx
|
|
|
730
732
|
# receive `call.machine.greeting.ended` if a beep is detected.
|
|
731
733
|
answering_machine_detection: nil,
|
|
732
734
|
# Optional configuration parameters to modify 'answering_machine_detection'
|
|
733
|
-
# performance.
|
|
735
|
+
# performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
|
|
736
|
+
# parameters are applicable when `premium` is selected as
|
|
737
|
+
# answering_machine_detection.
|
|
734
738
|
answering_machine_detection_config: nil,
|
|
735
739
|
# AI Assistant configuration. All fields except `id` are optional — the
|
|
736
740
|
# assistant's stored configuration will be used as fallback for any omitted
|
|
@@ -1155,7 +1159,9 @@ module Telnyx
|
|
|
1155
1159
|
attr_writer :total_analysis_time_millis
|
|
1156
1160
|
|
|
1157
1161
|
# Optional configuration parameters to modify 'answering_machine_detection'
|
|
1158
|
-
# performance.
|
|
1162
|
+
# performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
|
|
1163
|
+
# parameters are applicable when `premium` is selected as
|
|
1164
|
+
# answering_machine_detection.
|
|
1159
1165
|
sig do
|
|
1160
1166
|
params(
|
|
1161
1167
|
after_greeting_silence_millis: Integer,
|
|
@@ -47,7 +47,9 @@ module Telnyx
|
|
|
47
47
|
attr_writer :answering_machine_detection
|
|
48
48
|
|
|
49
49
|
# Optional configuration parameters to modify 'answering_machine_detection'
|
|
50
|
-
# performance.
|
|
50
|
+
# performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
|
|
51
|
+
# parameters are applicable when `premium` is selected as
|
|
52
|
+
# answering_machine_detection.
|
|
51
53
|
sig do
|
|
52
54
|
returns(
|
|
53
55
|
T.nilable(
|
|
@@ -568,7 +570,9 @@ module Telnyx
|
|
|
568
570
|
# receive 'call.machine.greeting.ended' if a beep is detected.
|
|
569
571
|
answering_machine_detection: nil,
|
|
570
572
|
# Optional configuration parameters to modify 'answering_machine_detection'
|
|
571
|
-
# performance.
|
|
573
|
+
# performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
|
|
574
|
+
# parameters are applicable when `premium` is selected as
|
|
575
|
+
# answering_machine_detection.
|
|
572
576
|
answering_machine_detection_config: nil,
|
|
573
577
|
# The URL of a file to be played back when the transfer destination answers before
|
|
574
578
|
# bridging the call. The URL can point to either a WAV or MP3 file. media_name and
|
|
@@ -901,7 +905,9 @@ module Telnyx
|
|
|
901
905
|
attr_writer :total_analysis_time_millis
|
|
902
906
|
|
|
903
907
|
# Optional configuration parameters to modify 'answering_machine_detection'
|
|
904
|
-
# performance.
|
|
908
|
+
# performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
|
|
909
|
+
# parameters are applicable when `premium` is selected as
|
|
910
|
+
# answering_machine_detection.
|
|
905
911
|
sig do
|
|
906
912
|
params(
|
|
907
913
|
after_greeting_silence_millis: Integer,
|
|
@@ -11,10 +11,23 @@ module Telnyx
|
|
|
11
11
|
sig do
|
|
12
12
|
params(
|
|
13
13
|
conversation_id: String,
|
|
14
|
+
page_number: Integer,
|
|
15
|
+
page_size: Integer,
|
|
14
16
|
request_options: Telnyx::RequestOptions::OrHash
|
|
15
|
-
).returns(
|
|
17
|
+
).returns(
|
|
18
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
19
|
+
Telnyx::Models::AI::Conversations::MessageListResponse
|
|
20
|
+
]
|
|
21
|
+
)
|
|
16
22
|
end
|
|
17
|
-
def list(
|
|
23
|
+
def list(
|
|
24
|
+
conversation_id,
|
|
25
|
+
# The page number to retrieve.
|
|
26
|
+
page_number: nil,
|
|
27
|
+
# The number of messages to return per page.
|
|
28
|
+
page_size: nil,
|
|
29
|
+
request_options: {}
|
|
30
|
+
)
|
|
18
31
|
end
|
|
19
32
|
|
|
20
33
|
# @api private
|
|
@@ -2031,7 +2031,9 @@ module Telnyx
|
|
|
2031
2031
|
# receive 'call.machine.greeting.ended' if a beep is detected.
|
|
2032
2032
|
answering_machine_detection: nil,
|
|
2033
2033
|
# Optional configuration parameters to modify 'answering_machine_detection'
|
|
2034
|
-
# performance.
|
|
2034
|
+
# performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
|
|
2035
|
+
# parameters are applicable when `premium` is selected as
|
|
2036
|
+
# answering_machine_detection.
|
|
2035
2037
|
answering_machine_detection_config: nil,
|
|
2036
2038
|
# The URL of a file to be played back when the transfer destination answers before
|
|
2037
2039
|
# bridging the call. The URL can point to either a WAV or MP3 file. media_name and
|
|
@@ -137,7 +137,9 @@ module Telnyx
|
|
|
137
137
|
# receive `call.machine.greeting.ended` if a beep is detected.
|
|
138
138
|
answering_machine_detection: nil,
|
|
139
139
|
# Optional configuration parameters to modify 'answering_machine_detection'
|
|
140
|
-
# performance.
|
|
140
|
+
# performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
|
|
141
|
+
# parameters are applicable when `premium` is selected as
|
|
142
|
+
# answering_machine_detection.
|
|
141
143
|
answering_machine_detection_config: nil,
|
|
142
144
|
# AI Assistant configuration. All fields except `id` are optional — the
|
|
143
145
|
# assistant's stored configuration will be used as fallback for any omitted
|