telnyx 5.63.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +8 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +8 -1
- data/lib/telnyx/models/ai/assistants/tool_add_params.rb +30 -0
- data/lib/telnyx/models/ai/assistants/tool_add_response.rb +12 -0
- data/lib/telnyx/models/ai/assistants/tool_remove_params.rb +30 -0
- data/lib/telnyx/models/ai/assistants/tool_remove_response.rb +12 -0
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +8 -1
- data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +36 -1
- data/lib/telnyx/models/ai/tool_create_params.rb +64 -0
- data/lib/telnyx/models/ai/tool_create_response.rb +48 -0
- data/lib/telnyx/models/ai/tool_delete_params.rb +22 -0
- data/lib/telnyx/models/ai/tool_delete_response.rb +10 -0
- data/lib/telnyx/models/ai/tool_list_params.rb +40 -0
- data/lib/telnyx/models/ai/tool_list_response.rb +48 -0
- data/lib/telnyx/models/ai/tool_retrieve_params.rb +22 -0
- data/lib/telnyx/models/ai/tool_retrieve_response.rb +48 -0
- data/lib/telnyx/models/ai/tool_update_params.rb +70 -0
- data/lib/telnyx/models/ai/tool_update_response.rb +48 -0
- data/lib/telnyx/resources/ai/assistants/tools.rb +50 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/ai/tools.rb +143 -0
- data/lib/telnyx/resources/ai.rb +5 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +15 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +9 -0
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +9 -0
- data/rbi/telnyx/models/ai/assistants/tool_add_params.rbi +50 -0
- data/rbi/telnyx/models/ai/assistants/tool_add_response.rbi +11 -0
- data/rbi/telnyx/models/ai/assistants/tool_remove_params.rbi +50 -0
- data/rbi/telnyx/models/ai/assistants/tool_remove_response.rbi +12 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +9 -0
- data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +71 -0
- data/rbi/telnyx/models/ai/tool_create_params.rbi +103 -0
- data/rbi/telnyx/models/ai/tool_create_response.rbi +79 -0
- data/rbi/telnyx/models/ai/tool_delete_params.rbi +37 -0
- data/rbi/telnyx/models/ai/tool_delete_response.rbi +9 -0
- data/rbi/telnyx/models/ai/tool_list_params.rbi +73 -0
- data/rbi/telnyx/models/ai/tool_list_response.rbi +79 -0
- data/rbi/telnyx/models/ai/tool_retrieve_params.rbi +37 -0
- data/rbi/telnyx/models/ai/tool_retrieve_response.rbi +79 -0
- data/rbi/telnyx/models/ai/tool_update_params.rbi +115 -0
- data/rbi/telnyx/models/ai/tool_update_response.rbi +79 -0
- data/rbi/telnyx/resources/ai/assistants/tools.rbi +22 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +4 -0
- data/rbi/telnyx/resources/ai/tools.rbi +114 -0
- data/rbi/telnyx/resources/ai.rbi +4 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +7 -0
- data/sig/telnyx/models/ai/assistant_update_params.rbs +7 -0
- data/sig/telnyx/models/ai/assistants/tool_add_params.rbs +32 -0
- data/sig/telnyx/models/ai/assistants/tool_add_response.rbs +9 -0
- data/sig/telnyx/models/ai/assistants/tool_remove_params.rbs +32 -0
- data/sig/telnyx/models/ai/assistants/tool_remove_response.rbs +9 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +7 -0
- data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +21 -0
- data/sig/telnyx/models/ai/tool_create_params.rbs +75 -0
- data/sig/telnyx/models/ai/tool_create_response.rbs +53 -0
- data/sig/telnyx/models/ai/tool_delete_params.rbs +25 -0
- data/sig/telnyx/models/ai/tool_delete_response.rbs +7 -0
- data/sig/telnyx/models/ai/tool_list_params.rbs +51 -0
- data/sig/telnyx/models/ai/tool_list_response.rbs +53 -0
- data/sig/telnyx/models/ai/tool_retrieve_params.rbs +25 -0
- data/sig/telnyx/models/ai/tool_retrieve_response.rbs +53 -0
- data/sig/telnyx/models/ai/tool_update_params.rbs +84 -0
- data/sig/telnyx/models/ai/tool_update_response.rbs +53 -0
- data/sig/telnyx/resources/ai/assistants/tools.rbs +12 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/ai/tools.rbs +52 -0
- data/sig/telnyx/resources/ai.rbs +2 -0
- metadata +46 -1
|
@@ -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,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
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type tool_update_params =
|
|
5
|
+
{
|
|
6
|
+
tool_id: String,
|
|
7
|
+
display_name: 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
|
+
type: String,
|
|
14
|
+
webhook: ::Hash[Symbol, top]
|
|
15
|
+
}
|
|
16
|
+
& Telnyx::Internal::Type::request_parameters
|
|
17
|
+
|
|
18
|
+
class ToolUpdateParams < Telnyx::Internal::Type::BaseModel
|
|
19
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
20
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
21
|
+
|
|
22
|
+
attr_accessor tool_id: String
|
|
23
|
+
|
|
24
|
+
attr_reader display_name: String?
|
|
25
|
+
|
|
26
|
+
def display_name=: (String) -> String
|
|
27
|
+
|
|
28
|
+
attr_reader function: ::Hash[Symbol, top]?
|
|
29
|
+
|
|
30
|
+
def function=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
31
|
+
|
|
32
|
+
attr_reader handoff: ::Hash[Symbol, top]?
|
|
33
|
+
|
|
34
|
+
def handoff=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
35
|
+
|
|
36
|
+
attr_reader invite: ::Hash[Symbol, top]?
|
|
37
|
+
|
|
38
|
+
def invite=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
39
|
+
|
|
40
|
+
attr_reader retrieval: ::Hash[Symbol, top]?
|
|
41
|
+
|
|
42
|
+
def retrieval=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
43
|
+
|
|
44
|
+
attr_reader timeout_ms: Integer?
|
|
45
|
+
|
|
46
|
+
def timeout_ms=: (Integer) -> Integer
|
|
47
|
+
|
|
48
|
+
attr_reader type: String?
|
|
49
|
+
|
|
50
|
+
def type=: (String) -> String
|
|
51
|
+
|
|
52
|
+
attr_reader webhook: ::Hash[Symbol, top]?
|
|
53
|
+
|
|
54
|
+
def webhook=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
55
|
+
|
|
56
|
+
def initialize: (
|
|
57
|
+
tool_id: String,
|
|
58
|
+
?display_name: String,
|
|
59
|
+
?function: ::Hash[Symbol, top],
|
|
60
|
+
?handoff: ::Hash[Symbol, top],
|
|
61
|
+
?invite: ::Hash[Symbol, top],
|
|
62
|
+
?retrieval: ::Hash[Symbol, top],
|
|
63
|
+
?timeout_ms: Integer,
|
|
64
|
+
?type: String,
|
|
65
|
+
?webhook: ::Hash[Symbol, top],
|
|
66
|
+
?request_options: Telnyx::request_opts
|
|
67
|
+
) -> void
|
|
68
|
+
|
|
69
|
+
def to_hash: -> {
|
|
70
|
+
tool_id: String,
|
|
71
|
+
display_name: String,
|
|
72
|
+
function: ::Hash[Symbol, top],
|
|
73
|
+
handoff: ::Hash[Symbol, top],
|
|
74
|
+
invite: ::Hash[Symbol, top],
|
|
75
|
+
retrieval: ::Hash[Symbol, top],
|
|
76
|
+
timeout_ms: Integer,
|
|
77
|
+
type: String,
|
|
78
|
+
webhook: ::Hash[Symbol, top],
|
|
79
|
+
request_options: Telnyx::RequestOptions
|
|
80
|
+
}
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type tool_update_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 ToolUpdateResponse < 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
|
|
@@ -3,6 +3,18 @@ module Telnyx
|
|
|
3
3
|
class AI
|
|
4
4
|
class Assistants
|
|
5
5
|
class Tools
|
|
6
|
+
def add: (
|
|
7
|
+
String tool_id,
|
|
8
|
+
assistant_id: String,
|
|
9
|
+
?request_options: Telnyx::request_opts
|
|
10
|
+
) -> top
|
|
11
|
+
|
|
12
|
+
def remove: (
|
|
13
|
+
String tool_id,
|
|
14
|
+
assistant_id: String,
|
|
15
|
+
?request_options: Telnyx::request_opts
|
|
16
|
+
) -> top
|
|
17
|
+
|
|
6
18
|
def test_: (
|
|
7
19
|
String tool_id,
|
|
8
20
|
assistant_id: String,
|
|
@@ -26,6 +26,7 @@ module Telnyx
|
|
|
26
26
|
?name: String,
|
|
27
27
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
28
28
|
?telephony_settings: Telnyx::AI::TelephonySettings,
|
|
29
|
+
?tool_ids: ::Array[String],
|
|
29
30
|
?tools: ::Array[Telnyx::Models::AI::assistant_tool],
|
|
30
31
|
?transcription: Telnyx::AI::TranscriptionSettings,
|
|
31
32
|
?voice_settings: Telnyx::AI::VoiceSettings,
|
|
@@ -28,6 +28,7 @@ module Telnyx
|
|
|
28
28
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
29
29
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
30
30
|
?telephony_settings: Telnyx::AI::TelephonySettings,
|
|
31
|
+
?tool_ids: ::Array[String],
|
|
31
32
|
?tools: ::Array[Telnyx::Models::AI::assistant_tool],
|
|
32
33
|
?transcription: Telnyx::AI::TranscriptionSettings,
|
|
33
34
|
?voice_settings: Telnyx::AI::VoiceSettings,
|
|
@@ -60,6 +61,7 @@ module Telnyx
|
|
|
60
61
|
?privacy_settings: Telnyx::AI::PrivacySettings,
|
|
61
62
|
?promote_to_main: bool,
|
|
62
63
|
?telephony_settings: Telnyx::AI::TelephonySettings,
|
|
64
|
+
?tool_ids: ::Array[String],
|
|
63
65
|
?tools: ::Array[Telnyx::Models::AI::assistant_tool],
|
|
64
66
|
?transcription: Telnyx::AI::TranscriptionSettings,
|
|
65
67
|
?voice_settings: Telnyx::AI::VoiceSettings,
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Resources
|
|
3
|
+
class AI
|
|
4
|
+
class Tools
|
|
5
|
+
def create: (
|
|
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
|
+
?request_options: Telnyx::request_opts
|
|
15
|
+
) -> Telnyx::Models::AI::ToolCreateResponse
|
|
16
|
+
|
|
17
|
+
def retrieve: (
|
|
18
|
+
String tool_id,
|
|
19
|
+
?request_options: Telnyx::request_opts
|
|
20
|
+
) -> Telnyx::Models::AI::ToolRetrieveResponse
|
|
21
|
+
|
|
22
|
+
def update: (
|
|
23
|
+
String tool_id,
|
|
24
|
+
?display_name: String,
|
|
25
|
+
?function: ::Hash[Symbol, top],
|
|
26
|
+
?handoff: ::Hash[Symbol, top],
|
|
27
|
+
?invite: ::Hash[Symbol, top],
|
|
28
|
+
?retrieval: ::Hash[Symbol, top],
|
|
29
|
+
?timeout_ms: Integer,
|
|
30
|
+
?type: String,
|
|
31
|
+
?webhook: ::Hash[Symbol, top],
|
|
32
|
+
?request_options: Telnyx::request_opts
|
|
33
|
+
) -> Telnyx::Models::AI::ToolUpdateResponse
|
|
34
|
+
|
|
35
|
+
def list: (
|
|
36
|
+
?filter_name: String,
|
|
37
|
+
?filter_type: String,
|
|
38
|
+
?page_number: Integer,
|
|
39
|
+
?page_size: Integer,
|
|
40
|
+
?request_options: Telnyx::request_opts
|
|
41
|
+
) -> Telnyx::Internal::DefaultFlatPagination[Telnyx::Models::AI::ToolListResponse]
|
|
42
|
+
|
|
43
|
+
def delete: (
|
|
44
|
+
String tool_id,
|
|
45
|
+
?request_options: Telnyx::request_opts
|
|
46
|
+
) -> top
|
|
47
|
+
|
|
48
|
+
def initialize: (client: Telnyx::Client) -> void
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
data/sig/telnyx/resources/ai.rbs
CHANGED