openai 0.101.0 → 0.102.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 +14 -0
- data/README.md +1 -1
- data/lib/openai/models/audio/speech_create_params.rb +3 -6
- data/lib/openai/models/audio/voice.rb +4 -9
- data/lib/openai/models/audio/voice_create_params.rb +3 -100
- data/lib/openai/models/beta/agents/environment_create_params.rb +300 -0
- data/lib/openai/models/beta/agents/environment_info.rb +4 -1
- data/lib/openai/models/beta/agents/environment_list_params.rb +78 -0
- data/lib/openai/models/beta/environment_param.rb +12 -1
- data/lib/openai/models/chat/chat_completion_audio_param.rb +3 -3
- data/lib/openai/models/realtime/realtime_audio_config_output.rb +3 -6
- data/lib/openai/models/realtime/realtime_response_create_audio_output.rb +3 -6
- data/lib/openai/models/webhooks/agent_environment_failed_webhook_event.rb +73 -0
- data/lib/openai/models/webhooks/agent_environment_ready_webhook_event.rb +73 -0
- data/lib/openai/models/webhooks/unwrap_webhook_event.rb +9 -3
- data/lib/openai/models/webhooks/webhook_create_params.rb +2 -0
- data/lib/openai/models/webhooks/webhook_test_params.rb +2 -0
- data/lib/openai/models/webhooks/webhook_update_params.rb +2 -0
- data/lib/openai/resources/audio/speech.rb +1 -2
- data/lib/openai/resources/audio/voices.rb +10 -10
- data/lib/openai/resources/beta/agents/environments/files.rb +4 -2
- data/lib/openai/resources/beta/agents/environments/templates.rb +10 -5
- data/lib/openai/resources/beta/agents/environments.rb +80 -1
- data/lib/openai/resources/beta/agents/sessions/artifacts.rb +8 -5
- data/lib/openai/resources/beta/agents/sessions/events.rb +10 -4
- data/lib/openai/resources/beta/agents/sessions/items.rb +2 -1
- data/lib/openai/resources/beta/agents/sessions/subagents/items.rb +2 -1
- data/lib/openai/resources/beta/agents/sessions/subagents/turns/items.rb +2 -1
- data/lib/openai/resources/beta/agents/sessions/subagents/turns.rb +4 -2
- data/lib/openai/resources/beta/agents/sessions/subagents.rb +4 -2
- data/lib/openai/resources/beta/agents/sessions/traces.rb +2 -1
- data/lib/openai/resources/beta/agents/sessions/turns/items.rb +2 -1
- data/lib/openai/resources/beta/agents/sessions/turns.rb +4 -2
- data/lib/openai/resources/beta/agents/sessions.rb +16 -7
- data/lib/openai/resources/beta/agents/vaults/credentials.rb +10 -5
- data/lib/openai/resources/beta/agents/vaults.rb +8 -4
- data/lib/openai/resources/beta/agents.rb +10 -5
- data/lib/openai/resources/beta/assistants.rb +10 -5
- data/lib/openai/resources/beta/chatkit/sessions.rb +4 -2
- data/lib/openai/resources/beta/chatkit/threads.rb +8 -4
- data/lib/openai/resources/beta/threads/messages.rb +10 -5
- data/lib/openai/resources/beta/threads/runs/steps.rb +4 -2
- data/lib/openai/resources/beta/threads/runs.rb +24 -10
- data/lib/openai/resources/beta/threads.rb +16 -7
- data/lib/openai/resources/vector_stores/file_batches.rb +8 -10
- data/lib/openai/resources/vector_stores/files.rb +12 -12
- data/lib/openai/resources/vector_stores.rb +12 -6
- data/lib/openai/resources/webhooks.rb +1 -1
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +4 -0
- data/rbi/openai/models/audio/speech_create_params.rbi +3 -6
- data/rbi/openai/models/audio/voice.rbi +4 -9
- data/rbi/openai/models/audio/voice_create_params.rbi +4 -149
- data/rbi/openai/models/beta/agents/environment_create_params.rbi +499 -0
- data/rbi/openai/models/beta/agents/environment_info.rbi +3 -0
- data/rbi/openai/models/beta/agents/environment_list_params.rbi +136 -0
- data/rbi/openai/models/beta/environment_param.rbi +15 -0
- data/rbi/openai/models/chat/chat_completion_audio_param.rbi +3 -3
- data/rbi/openai/models/realtime/realtime_audio_config_output.rbi +3 -6
- data/rbi/openai/models/realtime/realtime_response_create_audio_output.rbi +3 -6
- data/rbi/openai/models/webhooks/agent_environment_failed_webhook_event.rbi +134 -0
- data/rbi/openai/models/webhooks/agent_environment_ready_webhook_event.rbi +134 -0
- data/rbi/openai/models/webhooks/unwrap_webhook_event.rbi +4 -2
- data/rbi/openai/models/webhooks/webhook_create_params.rbi +8 -0
- data/rbi/openai/models/webhooks/webhook_test_params.rbi +8 -0
- data/rbi/openai/models/webhooks/webhook_update_params.rbi +8 -0
- data/rbi/openai/resources/audio/speech.rbi +1 -2
- data/rbi/openai/resources/audio/voices.rbi +10 -13
- data/rbi/openai/resources/beta/agents/environments.rbi +53 -0
- data/rbi/openai/resources/webhooks.rbi +2 -0
- data/sig/openai/models/audio/speech_create_params.rbs +2 -4
- data/sig/openai/models/audio/voice.rbs +3 -6
- data/sig/openai/models/audio/voice_create_params.rbs +1 -90
- data/sig/openai/models/beta/agents/environment_create_params.rbs +268 -0
- data/sig/openai/models/beta/agents/environment_info.rbs +5 -1
- data/sig/openai/models/beta/agents/environment_list_params.rbs +97 -0
- data/sig/openai/models/beta/environment_param.rbs +14 -0
- data/sig/openai/models/chat/chat_completion_audio_param.rbs +2 -2
- data/sig/openai/models/realtime/realtime_audio_config_output.rbs +3 -6
- data/sig/openai/models/realtime/realtime_response_create_audio_output.rbs +3 -6
- data/sig/openai/models/webhooks/agent_environment_failed_webhook_event.rbs +70 -0
- data/sig/openai/models/webhooks/agent_environment_ready_webhook_event.rbs +70 -0
- data/sig/openai/models/webhooks/unwrap_webhook_event.rbs +3 -1
- data/sig/openai/models/webhooks/webhook_create_params.rbs +4 -0
- data/sig/openai/models/webhooks/webhook_test_params.rbs +4 -0
- data/sig/openai/models/webhooks/webhook_update_params.rbs +4 -0
- data/sig/openai/resources/beta/agents/environments.rbs +15 -0
- data/sig/openai/resources/webhooks.rbs +3 -1
- metadata +13 -1
|
@@ -18,7 +18,7 @@ module OpenAI
|
|
|
18
18
|
# `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, `shimmer`,
|
|
19
19
|
# `marin`, and `cedar`. You may also provide a custom voice object with an `id`,
|
|
20
20
|
# for example `{ "id": "voice_1234" }`. Custom voices must be created from audio
|
|
21
|
-
# samples.
|
|
21
|
+
# samples.
|
|
22
22
|
attr_accessor voice: OpenAI::Models::Chat::ChatCompletionAudioParam::voice
|
|
23
23
|
|
|
24
24
|
# @param format_
|
|
@@ -29,7 +29,7 @@ module OpenAI
|
|
|
29
29
|
# `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, `shimmer`,
|
|
30
30
|
# `marin`, and `cedar`. You may also provide a custom voice object with an `id`,
|
|
31
31
|
# for example `{ "id": "voice_1234" }`. Custom voices must be created from audio
|
|
32
|
-
# samples.
|
|
32
|
+
# samples.
|
|
33
33
|
def initialize: (
|
|
34
34
|
format_: OpenAI::Models::Chat::ChatCompletionAudioParam::format_,
|
|
35
35
|
voice: OpenAI::Models::Chat::ChatCompletionAudioParam::voice
|
|
@@ -40,8 +40,7 @@ module OpenAI
|
|
|
40
40
|
# `cedar`. You may also provide a custom voice object with an `id`, for example
|
|
41
41
|
# `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
|
|
42
42
|
# model has responded with audio at least once. Custom voices must be created from
|
|
43
|
-
# audio samples.
|
|
44
|
-
# recommend `marin` and `cedar` for best quality.
|
|
43
|
+
# audio samples. We recommend `marin` and `cedar` for best quality.
|
|
45
44
|
attr_reader voice: OpenAI::Models::Realtime::RealtimeAudioConfigOutput::voice?
|
|
46
45
|
|
|
47
46
|
# The voice the model uses to respond. Supported built-in voices are `alloy`,
|
|
@@ -49,8 +48,7 @@ module OpenAI
|
|
|
49
48
|
# `cedar`. You may also provide a custom voice object with an `id`, for example
|
|
50
49
|
# `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
|
|
51
50
|
# model has responded with audio at least once. Custom voices must be created from
|
|
52
|
-
# audio samples.
|
|
53
|
-
# recommend `marin` and `cedar` for best quality.
|
|
51
|
+
# audio samples. We recommend `marin` and `cedar` for best quality.
|
|
54
52
|
def voice=: (
|
|
55
53
|
OpenAI::Models::Realtime::RealtimeAudioConfigOutput::voice
|
|
56
54
|
) -> OpenAI::Models::Realtime::RealtimeAudioConfigOutput::voice
|
|
@@ -71,8 +69,7 @@ module OpenAI
|
|
|
71
69
|
# `cedar`. You may also provide a custom voice object with an `id`, for example
|
|
72
70
|
# `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
|
|
73
71
|
# model has responded with audio at least once. Custom voices must be created from
|
|
74
|
-
# audio samples.
|
|
75
|
-
# recommend `marin` and `cedar` for best quality.
|
|
72
|
+
# audio samples. We recommend `marin` and `cedar` for best quality.
|
|
76
73
|
def initialize: (
|
|
77
74
|
?format_: OpenAI::Models::Realtime::realtime_audio_formats,
|
|
78
75
|
?speed: Float,
|
|
@@ -39,8 +39,7 @@ module OpenAI
|
|
|
39
39
|
# `cedar`. You may also provide a custom voice object with an `id`, for example
|
|
40
40
|
# `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
|
|
41
41
|
# model has responded with audio at least once. Custom voices must be created from
|
|
42
|
-
# audio samples.
|
|
43
|
-
# recommend `marin` and `cedar` for best quality.
|
|
42
|
+
# audio samples. We recommend `marin` and `cedar` for best quality.
|
|
44
43
|
attr_reader voice: OpenAI::Models::Realtime::RealtimeResponseCreateAudioOutput::Output::voice?
|
|
45
44
|
|
|
46
45
|
# The voice the model uses to respond. Supported built-in voices are `alloy`,
|
|
@@ -48,8 +47,7 @@ module OpenAI
|
|
|
48
47
|
# `cedar`. You may also provide a custom voice object with an `id`, for example
|
|
49
48
|
# `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
|
|
50
49
|
# model has responded with audio at least once. Custom voices must be created from
|
|
51
|
-
# audio samples.
|
|
52
|
-
# recommend `marin` and `cedar` for best quality.
|
|
50
|
+
# audio samples. We recommend `marin` and `cedar` for best quality.
|
|
53
51
|
def voice=: (
|
|
54
52
|
OpenAI::Models::Realtime::RealtimeResponseCreateAudioOutput::Output::voice
|
|
55
53
|
) -> OpenAI::Models::Realtime::RealtimeResponseCreateAudioOutput::Output::voice
|
|
@@ -62,8 +60,7 @@ module OpenAI
|
|
|
62
60
|
# `cedar`. You may also provide a custom voice object with an `id`, for example
|
|
63
61
|
# `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
|
|
64
62
|
# model has responded with audio at least once. Custom voices must be created from
|
|
65
|
-
# audio samples.
|
|
66
|
-
# recommend `marin` and `cedar` for best quality.
|
|
63
|
+
# audio samples. We recommend `marin` and `cedar` for best quality.
|
|
67
64
|
def initialize: (
|
|
68
65
|
?format_: OpenAI::Models::Realtime::realtime_audio_formats,
|
|
69
66
|
?voice: OpenAI::Models::Realtime::RealtimeResponseCreateAudioOutput::Output::voice
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Webhooks
|
|
4
|
+
type agent_environment_failed_webhook_event =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
created_at: Integer,
|
|
8
|
+
data: OpenAI::Webhooks::AgentEnvironmentFailedWebhookEvent::Data,
|
|
9
|
+
?object: :event,
|
|
10
|
+
?type: :"agent.environment.failed"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class AgentEnvironmentFailedWebhookEvent < OpenAI::Internal::Type::BaseModel
|
|
14
|
+
# The unique ID of the event.
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
# The Unix timestamp, in seconds, when the event was created.
|
|
18
|
+
attr_accessor created_at: Integer
|
|
19
|
+
|
|
20
|
+
# Identifies the environment whose lifecycle changed.
|
|
21
|
+
attr_accessor data: OpenAI::Webhooks::AgentEnvironmentFailedWebhookEvent::Data
|
|
22
|
+
|
|
23
|
+
# The object type. Always `event`.
|
|
24
|
+
attr_accessor object: :event
|
|
25
|
+
|
|
26
|
+
# The event type. Always `agent.environment.failed`.
|
|
27
|
+
attr_accessor type: :"agent.environment.failed"
|
|
28
|
+
|
|
29
|
+
# @param id
|
|
30
|
+
# The unique ID of the event.
|
|
31
|
+
# @param created_at
|
|
32
|
+
# The Unix timestamp, in seconds, when the event was created.
|
|
33
|
+
# @param data
|
|
34
|
+
# Identifies the environment whose lifecycle changed.
|
|
35
|
+
# @param object
|
|
36
|
+
# The object type. Always `event`.
|
|
37
|
+
# @param type
|
|
38
|
+
# The event type. Always `agent.environment.failed`.
|
|
39
|
+
def initialize: (
|
|
40
|
+
id: String,
|
|
41
|
+
created_at: Integer,
|
|
42
|
+
data: OpenAI::Webhooks::AgentEnvironmentFailedWebhookEvent::Data,
|
|
43
|
+
?object: :event,
|
|
44
|
+
?type: :"agent.environment.failed"
|
|
45
|
+
) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> {
|
|
48
|
+
id: String,
|
|
49
|
+
created_at: Integer,
|
|
50
|
+
data: OpenAI::Webhooks::AgentEnvironmentFailedWebhookEvent::Data,
|
|
51
|
+
?object: :event,
|
|
52
|
+
?type: :"agent.environment.failed"
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
type data = { id: String }
|
|
56
|
+
|
|
57
|
+
class Data < OpenAI::Internal::Type::BaseModel
|
|
58
|
+
# The ID of the environment.
|
|
59
|
+
attr_accessor id: String
|
|
60
|
+
|
|
61
|
+
# @param id
|
|
62
|
+
# The ID of the environment.
|
|
63
|
+
def initialize: (id: String) -> void
|
|
64
|
+
|
|
65
|
+
def to_hash: -> { id: String }
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Webhooks
|
|
4
|
+
type agent_environment_ready_webhook_event =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
created_at: Integer,
|
|
8
|
+
data: OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent::Data,
|
|
9
|
+
?object: :event,
|
|
10
|
+
?type: :"agent.environment.ready"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class AgentEnvironmentReadyWebhookEvent < OpenAI::Internal::Type::BaseModel
|
|
14
|
+
# The unique ID of the event.
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
# The Unix timestamp, in seconds, when the event was created.
|
|
18
|
+
attr_accessor created_at: Integer
|
|
19
|
+
|
|
20
|
+
# Identifies the environment whose lifecycle changed.
|
|
21
|
+
attr_accessor data: OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent::Data
|
|
22
|
+
|
|
23
|
+
# The object type. Always `event`.
|
|
24
|
+
attr_accessor object: :event
|
|
25
|
+
|
|
26
|
+
# The event type. Always `agent.environment.ready`.
|
|
27
|
+
attr_accessor type: :"agent.environment.ready"
|
|
28
|
+
|
|
29
|
+
# @param id
|
|
30
|
+
# The unique ID of the event.
|
|
31
|
+
# @param created_at
|
|
32
|
+
# The Unix timestamp, in seconds, when the event was created.
|
|
33
|
+
# @param data
|
|
34
|
+
# Identifies the environment whose lifecycle changed.
|
|
35
|
+
# @param object
|
|
36
|
+
# The object type. Always `event`.
|
|
37
|
+
# @param type
|
|
38
|
+
# The event type. Always `agent.environment.ready`.
|
|
39
|
+
def initialize: (
|
|
40
|
+
id: String,
|
|
41
|
+
created_at: Integer,
|
|
42
|
+
data: OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent::Data,
|
|
43
|
+
?object: :event,
|
|
44
|
+
?type: :"agent.environment.ready"
|
|
45
|
+
) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> {
|
|
48
|
+
id: String,
|
|
49
|
+
created_at: Integer,
|
|
50
|
+
data: OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent::Data,
|
|
51
|
+
?object: :event,
|
|
52
|
+
?type: :"agent.environment.ready"
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
type data = { id: String }
|
|
56
|
+
|
|
57
|
+
class Data < OpenAI::Internal::Type::BaseModel
|
|
58
|
+
# The ID of the environment.
|
|
59
|
+
attr_accessor id: String
|
|
60
|
+
|
|
61
|
+
# @param id
|
|
62
|
+
# The ID of the environment.
|
|
63
|
+
def initialize: (id: String) -> void
|
|
64
|
+
|
|
65
|
+
def to_hash: -> { id: String }
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -2,7 +2,9 @@ module OpenAI
|
|
|
2
2
|
module Models
|
|
3
3
|
module Webhooks
|
|
4
4
|
type unwrap_webhook_event =
|
|
5
|
-
OpenAI::Webhooks::
|
|
5
|
+
OpenAI::Webhooks::AgentEnvironmentFailedWebhookEvent
|
|
6
|
+
| OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent
|
|
7
|
+
| OpenAI::Webhooks::AgentSessionActionRequiredWebhookEvent
|
|
6
8
|
| OpenAI::Webhooks::AgentSessionCreatedWebhookEvent
|
|
7
9
|
| OpenAI::Webhooks::AgentSessionFailedWebhookEvent
|
|
8
10
|
| OpenAI::Webhooks::AgentSessionIdleWebhookEvent
|
|
@@ -60,6 +60,8 @@ module OpenAI
|
|
|
60
60
|
| :"realtime.call.incoming"
|
|
61
61
|
| :"video.completed"
|
|
62
62
|
| :"video.failed"
|
|
63
|
+
| :"agent.environment.ready"
|
|
64
|
+
| :"agent.environment.failed"
|
|
63
65
|
| :"agent.session.created"
|
|
64
66
|
| :"agent.session.action_required"
|
|
65
67
|
| :"agent.session.in_progress"
|
|
@@ -87,6 +89,8 @@ module OpenAI
|
|
|
87
89
|
REALTIME_CALL_INCOMING: :"realtime.call.incoming"
|
|
88
90
|
VIDEO_COMPLETED: :"video.completed"
|
|
89
91
|
VIDEO_FAILED: :"video.failed"
|
|
92
|
+
AGENT_ENVIRONMENT_READY: :"agent.environment.ready"
|
|
93
|
+
AGENT_ENVIRONMENT_FAILED: :"agent.environment.failed"
|
|
90
94
|
AGENT_SESSION_CREATED: :"agent.session.created"
|
|
91
95
|
AGENT_SESSION_ACTION_REQUIRED: :"agent.session.action_required"
|
|
92
96
|
AGENT_SESSION_IN_PROGRESS: :"agent.session.in_progress"
|
|
@@ -49,6 +49,8 @@ module OpenAI
|
|
|
49
49
|
| :"realtime.call.incoming"
|
|
50
50
|
| :"video.completed"
|
|
51
51
|
| :"video.failed"
|
|
52
|
+
| :"agent.environment.ready"
|
|
53
|
+
| :"agent.environment.failed"
|
|
52
54
|
| :"agent.session.created"
|
|
53
55
|
| :"agent.session.action_required"
|
|
54
56
|
| :"agent.session.in_progress"
|
|
@@ -76,6 +78,8 @@ module OpenAI
|
|
|
76
78
|
REALTIME_CALL_INCOMING: :"realtime.call.incoming"
|
|
77
79
|
VIDEO_COMPLETED: :"video.completed"
|
|
78
80
|
VIDEO_FAILED: :"video.failed"
|
|
81
|
+
AGENT_ENVIRONMENT_READY: :"agent.environment.ready"
|
|
82
|
+
AGENT_ENVIRONMENT_FAILED: :"agent.environment.failed"
|
|
79
83
|
AGENT_SESSION_CREATED: :"agent.session.created"
|
|
80
84
|
AGENT_SESSION_ACTION_REQUIRED: :"agent.session.action_required"
|
|
81
85
|
AGENT_SESSION_IN_PROGRESS: :"agent.session.in_progress"
|
|
@@ -76,6 +76,8 @@ module OpenAI
|
|
|
76
76
|
| :"realtime.call.incoming"
|
|
77
77
|
| :"video.completed"
|
|
78
78
|
| :"video.failed"
|
|
79
|
+
| :"agent.environment.ready"
|
|
80
|
+
| :"agent.environment.failed"
|
|
79
81
|
| :"agent.session.created"
|
|
80
82
|
| :"agent.session.action_required"
|
|
81
83
|
| :"agent.session.in_progress"
|
|
@@ -103,6 +105,8 @@ module OpenAI
|
|
|
103
105
|
REALTIME_CALL_INCOMING: :"realtime.call.incoming"
|
|
104
106
|
VIDEO_COMPLETED: :"video.completed"
|
|
105
107
|
VIDEO_FAILED: :"video.failed"
|
|
108
|
+
AGENT_ENVIRONMENT_READY: :"agent.environment.ready"
|
|
109
|
+
AGENT_ENVIRONMENT_FAILED: :"agent.environment.failed"
|
|
106
110
|
AGENT_SESSION_CREATED: :"agent.session.created"
|
|
107
111
|
AGENT_SESSION_ACTION_REQUIRED: :"agent.session.action_required"
|
|
108
112
|
AGENT_SESSION_IN_PROGRESS: :"agent.session.in_progress"
|
|
@@ -7,11 +7,26 @@ module OpenAI
|
|
|
7
7
|
|
|
8
8
|
attr_reader templates: OpenAI::Resources::Beta::Agents::Environments::Templates
|
|
9
9
|
|
|
10
|
+
def create: (
|
|
11
|
+
environment: OpenAI::Beta::Agents::EnvironmentCreateParams::Environment,
|
|
12
|
+
?vault_ids: ::Array[String]?,
|
|
13
|
+
?idempotency_key: String,
|
|
14
|
+
?request_options: OpenAI::request_opts
|
|
15
|
+
) -> OpenAI::Beta::Agents::EnvironmentInfo
|
|
16
|
+
|
|
10
17
|
def retrieve: (
|
|
11
18
|
String environment_id,
|
|
12
19
|
?request_options: OpenAI::request_opts
|
|
13
20
|
) -> OpenAI::Beta::Agents::EnvironmentInfo
|
|
14
21
|
|
|
22
|
+
def list: (
|
|
23
|
+
?after: String,
|
|
24
|
+
?limit: Integer,
|
|
25
|
+
?order: OpenAI::Models::Beta::Agents::EnvironmentListParams::order,
|
|
26
|
+
?type: OpenAI::Models::Beta::Agents::EnvironmentListParams::type_,
|
|
27
|
+
?request_options: OpenAI::request_opts
|
|
28
|
+
) -> OpenAI::Internal::CursorPage[OpenAI::Beta::Agents::EnvironmentInfo]
|
|
29
|
+
|
|
15
30
|
def initialize: (client: OpenAI::Client) -> void
|
|
16
31
|
end
|
|
17
32
|
end
|
|
@@ -50,7 +50,9 @@ module OpenAI
|
|
|
50
50
|
String payload,
|
|
51
51
|
?Hash[String | Symbol, String] headers,
|
|
52
52
|
?String? webhook_secret
|
|
53
|
-
) -> (OpenAI::Webhooks::
|
|
53
|
+
) -> (OpenAI::Webhooks::AgentEnvironmentFailedWebhookEvent
|
|
54
|
+
| OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent
|
|
55
|
+
| OpenAI::Webhooks::AgentSessionActionRequiredWebhookEvent
|
|
54
56
|
| OpenAI::Webhooks::AgentSessionCreatedWebhookEvent
|
|
55
57
|
| OpenAI::Webhooks::AgentSessionFailedWebhookEvent
|
|
56
58
|
| OpenAI::Webhooks::AgentSessionIdleWebhookEvent
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.102.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAI
|
|
@@ -507,7 +507,9 @@ files:
|
|
|
507
507
|
- lib/openai/models/beta/agent_update_params.rb
|
|
508
508
|
- lib/openai/models/beta/agent_wait_for_subagents_call_item.rb
|
|
509
509
|
- lib/openai/models/beta/agent_web_search_call_item.rb
|
|
510
|
+
- lib/openai/models/beta/agents/environment_create_params.rb
|
|
510
511
|
- lib/openai/models/beta/agents/environment_info.rb
|
|
512
|
+
- lib/openai/models/beta/agents/environment_list_params.rb
|
|
511
513
|
- lib/openai/models/beta/agents/environment_retrieve_params.rb
|
|
512
514
|
- lib/openai/models/beta/agents/environments/environment_file.rb
|
|
513
515
|
- lib/openai/models/beta/agents/environments/environment_template.rb
|
|
@@ -1548,6 +1550,8 @@ files:
|
|
|
1548
1550
|
- lib/openai/models/video_retrieve_params.rb
|
|
1549
1551
|
- lib/openai/models/video_seconds.rb
|
|
1550
1552
|
- lib/openai/models/video_size.rb
|
|
1553
|
+
- lib/openai/models/webhooks/agent_environment_failed_webhook_event.rb
|
|
1554
|
+
- lib/openai/models/webhooks/agent_environment_ready_webhook_event.rb
|
|
1551
1555
|
- lib/openai/models/webhooks/agent_session_action_required_webhook_event.rb
|
|
1552
1556
|
- lib/openai/models/webhooks/agent_session_created_webhook_event.rb
|
|
1553
1557
|
- lib/openai/models/webhooks/agent_session_failed_webhook_event.rb
|
|
@@ -2126,7 +2130,9 @@ files:
|
|
|
2126
2130
|
- rbi/openai/models/beta/agent_update_params.rbi
|
|
2127
2131
|
- rbi/openai/models/beta/agent_wait_for_subagents_call_item.rbi
|
|
2128
2132
|
- rbi/openai/models/beta/agent_web_search_call_item.rbi
|
|
2133
|
+
- rbi/openai/models/beta/agents/environment_create_params.rbi
|
|
2129
2134
|
- rbi/openai/models/beta/agents/environment_info.rbi
|
|
2135
|
+
- rbi/openai/models/beta/agents/environment_list_params.rbi
|
|
2130
2136
|
- rbi/openai/models/beta/agents/environment_retrieve_params.rbi
|
|
2131
2137
|
- rbi/openai/models/beta/agents/environments/environment_file.rbi
|
|
2132
2138
|
- rbi/openai/models/beta/agents/environments/environment_template.rbi
|
|
@@ -3166,6 +3172,8 @@ files:
|
|
|
3166
3172
|
- rbi/openai/models/video_retrieve_params.rbi
|
|
3167
3173
|
- rbi/openai/models/video_seconds.rbi
|
|
3168
3174
|
- rbi/openai/models/video_size.rbi
|
|
3175
|
+
- rbi/openai/models/webhooks/agent_environment_failed_webhook_event.rbi
|
|
3176
|
+
- rbi/openai/models/webhooks/agent_environment_ready_webhook_event.rbi
|
|
3169
3177
|
- rbi/openai/models/webhooks/agent_session_action_required_webhook_event.rbi
|
|
3170
3178
|
- rbi/openai/models/webhooks/agent_session_created_webhook_event.rbi
|
|
3171
3179
|
- rbi/openai/models/webhooks/agent_session_failed_webhook_event.rbi
|
|
@@ -3735,7 +3743,9 @@ files:
|
|
|
3735
3743
|
- sig/openai/models/beta/agent_update_params.rbs
|
|
3736
3744
|
- sig/openai/models/beta/agent_wait_for_subagents_call_item.rbs
|
|
3737
3745
|
- sig/openai/models/beta/agent_web_search_call_item.rbs
|
|
3746
|
+
- sig/openai/models/beta/agents/environment_create_params.rbs
|
|
3738
3747
|
- sig/openai/models/beta/agents/environment_info.rbs
|
|
3748
|
+
- sig/openai/models/beta/agents/environment_list_params.rbs
|
|
3739
3749
|
- sig/openai/models/beta/agents/environment_retrieve_params.rbs
|
|
3740
3750
|
- sig/openai/models/beta/agents/environments/environment_file.rbs
|
|
3741
3751
|
- sig/openai/models/beta/agents/environments/environment_template.rbs
|
|
@@ -4775,6 +4785,8 @@ files:
|
|
|
4775
4785
|
- sig/openai/models/video_retrieve_params.rbs
|
|
4776
4786
|
- sig/openai/models/video_seconds.rbs
|
|
4777
4787
|
- sig/openai/models/video_size.rbs
|
|
4788
|
+
- sig/openai/models/webhooks/agent_environment_failed_webhook_event.rbs
|
|
4789
|
+
- sig/openai/models/webhooks/agent_environment_ready_webhook_event.rbs
|
|
4778
4790
|
- sig/openai/models/webhooks/agent_session_action_required_webhook_event.rbs
|
|
4779
4791
|
- sig/openai/models/webhooks/agent_session_created_webhook_event.rbs
|
|
4780
4792
|
- sig/openai/models/webhooks/agent_session_failed_webhook_event.rbs
|