runtype 0.2.0 → 0.2.1
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/generated/lib/runtype/agent_aliases/client.rb +320 -0
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_request.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_response.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_request.rb +15 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_response.rb +29 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_request.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_response.rb +13 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_response_data_item.rb +29 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_request.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_response.rb +13 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_response_data_item.rb +29 -0
- data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_request.rb +21 -0
- data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_response.rb +21 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_request.rb +21 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_response.rb +21 -0
- data/generated/lib/runtype/agents/client.rb +14 -2
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_execution_id_response.rb +6 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_execution_id_response_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_execution_id_response_agent_version.rb +17 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_response_data_item.rb +6 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_response_data_item_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_executions_response_data_item_agent_version.rb +17 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_response.rb +2 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_response_sandbox_capability_issues_item.rb +19 -0
- data/generated/lib/runtype/agents/types/get_v1agents_id_response_sandbox_capability_issues_item_code.rb +13 -0
- data/generated/lib/runtype/agents/types/get_v1agents_request.rb +2 -0
- data/generated/lib/runtype/agents/types/get_v1agents_request_managed_in_code.rb +14 -0
- data/generated/lib/runtype/agents/types/get_v1agents_response_data_item.rb +4 -0
- data/generated/lib/runtype/agents/types/get_v1agents_response_data_item_sandbox_capability_issues_item.rb +19 -0
- data/generated/lib/runtype/agents/types/get_v1agents_response_data_item_sandbox_capability_issues_item_code.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request.rb +4 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_context_management.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_context_management_compaction.rb +23 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_context_management_compaction_strategy.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_context_management_tool_results.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_context_management_tool_results_prune_mode.rb +14 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice.rb +8 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_endpointing.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_endpointing_strategy.rb +16 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_speech.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_speech_mode.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_speech_synthesizer.rb +17 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_speech_synthesizer_settings.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice_speech_transcriber.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_context_management.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_context_management_compaction.rb +23 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_context_management_compaction_strategy.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_context_management_tool_results.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_context_management_tool_results_prune_mode.rb +14 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice.rb +8 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_endpointing.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_endpointing_strategy.rb +16 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech_mode.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech_synthesizer.rb +17 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech_synthesizer_settings.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech_transcriber.rb +13 -0
- data/generated/lib/runtype/agents/types/post_v1agents_response.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_response_sandbox_capability_issues_item.rb +19 -0
- data/generated/lib/runtype/agents/types/post_v1agents_response_sandbox_capability_issues_item_code.rb +13 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config.rb +2 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_context_management.rb +13 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_context_management_compaction.rb +23 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_context_management_compaction_strategy.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_context_management_tool_results.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_context_management_tool_results_prune_mode.rb +14 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice.rb +8 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_endpointing.rb +13 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_endpointing_strategy.rb +16 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech_mode.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech_synthesizer.rb +17 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech_synthesizer_settings.rb +13 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech_transcriber.rb +13 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_response.rb +2 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_response_sandbox_capability_issues_item.rb +19 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_response_sandbox_capability_issues_item_code.rb +13 -0
- data/generated/lib/runtype/analytics/types/get_v1analytics_record_results_response_data_data_results_item.rb +4 -0
- data/generated/lib/runtype/client.rb +5 -0
- data/generated/lib/runtype/dispatch/client.rb +11 -4
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent.rb +6 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_durability.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_durability_forced.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice.rb +8 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_endpointing.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_endpointing_strategy.rb +16 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_speech.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_speech_mode.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_speech_synthesizer.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_speech_synthesizer_settings.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_speech_transcriber.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent.rb +6 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_durability.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_durability_forced.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice.rb +8 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_endpointing.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_endpointing_strategy.rb +16 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_speech.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_speech_mode.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_speech_synthesizer.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_speech_synthesizer_settings.rb +13 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_voice_speech_transcriber.rb +13 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response.rb +2 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response_case_errors_item.rb +15 -0
- data/generated/lib/runtype/executions/client.rb +53 -0
- data/generated/lib/runtype/executions/types/get_v1executions_execution_id_events_request.rb +15 -0
- data/generated/lib/runtype/executions/types/get_v1executions_execution_id_status_response.rb +6 -0
- data/generated/lib/runtype/executions/types/get_v1executions_execution_id_status_response_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/executions/types/get_v1executions_execution_id_status_response_agent_version.rb +16 -0
- data/generated/lib/runtype/flows/client.rb +2 -1
- data/generated/lib/runtype/flows/types/post_v1flows_ensure_request.rb +2 -0
- data/generated/lib/runtype/records/types/get_v1records_id_results_response_data_item.rb +4 -0
- data/generated/lib/runtype/tools/client.rb +11 -11
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request.rb +29 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_language.rb +15 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_retention.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_sleep_policy.rb +17 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_sleep_policy_idle.rb +11 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_sleep_policy_idle_after.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_request_sleep_policy_never.rb +9 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response.rb +2 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy.rb +23 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_metering.rb +14 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_origin.rb +14 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_retention.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_sleep_policy.rb +17 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_sleep_policy_idle.rb +11 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_sleep_policy_idle_after.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_cf_sandbox_deploy_response_effective_policy_sleep_policy_never.rb +9 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request.rb +35 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_language.rb +15 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_retention.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_sleep_policy.rb +17 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_sleep_policy_idle.rb +11 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_sleep_policy_idle_after.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_request_sleep_policy_never.rb +9 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response.rb +2 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy.rb +23 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_metering.rb +14 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_origin.rb +14 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_retention.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_sleep_policy.rb +17 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_sleep_policy_idle.rb +11 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_sleep_policy_idle_after.rb +16 -0
- data/generated/lib/runtype/tools/types/post_v1tools_sandbox_deploy_response_effective_policy_sleep_policy_never.rb +9 -0
- data/generated/lib/runtype/types/agent_ensure_bad_request.rb +11 -0
- data/generated/lib/runtype/types/agent_ensure_bad_request_code.rb +11 -0
- data/generated/lib/runtype/types/agent_ensure_deploy_target.rb +15 -0
- data/generated/lib/runtype/types/agent_ensure_deployment.rb +20 -0
- data/generated/lib/runtype/types/agent_ensure_response_changed_keys.rb +2 -0
- data/generated/lib/runtype/types/agent_ensure_response_changed_keys_deployment.rb +20 -0
- data/generated/lib/runtype/types/agent_ensure_response_version_id.rb +4 -0
- data/generated/lib/runtype/types/agent_ensure_server_error.rb +13 -0
- data/generated/lib/runtype/types/agent_ensure_server_error_code.rb +11 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config.rb +2 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_context_management.rb +11 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_context_management_compaction.rb +21 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_context_management_compaction_strategy.rb +13 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_context_management_tool_results.rb +13 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_context_management_tool_results_prune_mode.rb +12 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice.rb +8 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_endpointing.rb +11 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_endpointing_strategy.rb +14 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_speech.rb +13 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_speech_mode.rb +13 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_speech_synthesizer.rb +15 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_speech_synthesizer_settings.rb +11 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_voice_speech_transcriber.rb +11 -0
- data/generated/lib/runtype/types/dispatch_continuation_json_response.rb +2 -0
- data/generated/lib/runtype/types/dispatch_detached_tool_output_json_response.rb +13 -0
- data/generated/lib/runtype/types/dispatch_detached_tool_output_json_response_pause_kind.rb +12 -0
- data/generated/lib/runtype/types/dispatch_detached_tool_output_json_response_status.rb +11 -0
- data/generated/lib/runtype/types/dispatch_resume_json_response.rb +13 -0
- data/generated/lib/runtype/types/ensure_version_metadata.rb +13 -0
- data/generated/lib/runtype/types/eval_run_scores_response_cases_item.rb +2 -0
- data/generated/lib/runtype/types/execution_stream_event.rb +2 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice.rb +29 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice_kind.rb +11 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice_outcome.rb +14 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice_phase.rb +12 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice_reason.rb +15 -0
- data/generated/lib/runtype/types/execution_stream_event_context_notice_strategy.rb +12 -0
- data/generated/lib/runtype/types/not_found_error_body_code.rb +11 -0
- data/generated/lib/runtype/types/precondition_failed_error_body.rb +17 -0
- data/generated/lib/runtype/types/precondition_failed_error_body_code.rb +11 -0
- data/generated/lib/runtype/types/run_eval_response_cases_item.rb +2 -0
- data/generated/lib/runtype.rb +154 -5
- data/lib/runtype/agent_definition.rb +1 -1
- data/lib/runtype/client.rb +22 -2
- data/lib/runtype/detached_follow.rb +136 -0
- data/lib/runtype/local_tool_runner.rb +117 -16
- data/lib/runtype/sdk_version.rb +1 -1
- data/lib/runtype.rb +1 -0
- metadata +151 -1
data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_endpointing_strategy.rb
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgentsRequestConfigVoiceEndpointingStrategy
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PROVIDER_VAD = "provider_vad"
|
|
10
|
+
SERVER_VAD = "server_vad"
|
|
11
|
+
CLIENT_COMMIT = "client_commit"
|
|
12
|
+
MANUAL = "manual"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgentsRequestConfigVoiceSpeech < Internal::Types::Model
|
|
7
|
+
field :mode, -> { Runtype::Agents::Types::PostV1AgentsRequestConfigVoiceSpeechMode }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :synthesizer, -> { Runtype::Agents::Types::PostV1AgentsRequestConfigVoiceSpeechSynthesizer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :transcriber, -> { Runtype::Agents::Types::PostV1AgentsRequestConfigVoiceSpeechTranscriber }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgentsRequestConfigVoiceSpeechMode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PIPELINE = "pipeline"
|
|
10
|
+
SPEECH_TO_SPEECH = "speech_to_speech"
|
|
11
|
+
PROVIDER_MANAGED = "provider_managed"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech_synthesizer.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgentsRequestConfigVoiceSpeechSynthesizer < Internal::Types::Model
|
|
7
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :settings, -> { Runtype::Agents::Types::PostV1AgentsRequestConfigVoiceSpeechSynthesizerSettings }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :voice_id, -> { String }, optional: true, nullable: false, api_name: "voiceId"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgentsRequestConfigVoiceSpeechSynthesizerSettings < Internal::Types::Model
|
|
7
|
+
field :similarity, -> { Integer }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :stability, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/generated/lib/runtype/agents/types/post_v1agents_request_config_voice_speech_transcriber.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgentsRequestConfigVoiceSpeechTranscriber < Internal::Types::Model
|
|
7
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -42,6 +42,8 @@ module Runtype
|
|
|
42
42
|
|
|
43
43
|
field :published_version_id, -> { String }, optional: false, nullable: true, api_name: "publishedVersionId"
|
|
44
44
|
|
|
45
|
+
field :sandbox_capability_issues, -> { Internal::Types::Array[Runtype::Agents::Types::PostV1AgentsResponseSandboxCapabilityIssuesItem] }, optional: true, nullable: false, api_name: "sandboxCapabilityIssues"
|
|
46
|
+
|
|
45
47
|
field :status, -> { String }, optional: false, nullable: false
|
|
46
48
|
|
|
47
49
|
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
data/generated/lib/runtype/agents/types/post_v1agents_response_sandbox_capability_issues_item.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgentsResponseSandboxCapabilityIssuesItem < Internal::Types::Model
|
|
7
|
+
field :code, -> { Runtype::Agents::Types::PostV1AgentsResponseSandboxCapabilityIssuesItemCode }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :path, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :requested, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :supported, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgentsResponseSandboxCapabilityIssuesItemCode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
UNSUPPORTED_SANDBOX_CAPABILITY = "unsupported_sandbox_capability"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -8,6 +8,8 @@ module Runtype
|
|
|
8
8
|
|
|
9
9
|
field :artifacts, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigArtifacts }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :context_management, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigContextManagement }, optional: true, nullable: false, api_name: "contextManagement"
|
|
12
|
+
|
|
11
13
|
field :durability, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigDurability }, optional: true, nullable: false
|
|
12
14
|
|
|
13
15
|
field :error_handling, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigErrorHandling }, optional: true, nullable: false, api_name: "errorHandling"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDRequestConfigContextManagement < Internal::Types::Model
|
|
7
|
+
field :compaction, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigContextManagementCompaction }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :tool_results, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigContextManagementToolResults }, optional: true, nullable: false, api_name: "toolResults"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDRequestConfigContextManagementCompaction < Internal::Types::Model
|
|
7
|
+
field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :instructions, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :retain_recent_tokens, -> { Integer }, optional: true, nullable: false, api_name: "retainRecentTokens"
|
|
14
|
+
|
|
15
|
+
field :strategy, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigContextManagementCompactionStrategy }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :threshold_ratio, -> { Integer }, optional: true, nullable: false, api_name: "thresholdRatio"
|
|
18
|
+
|
|
19
|
+
field :threshold_tokens, -> { Integer }, optional: true, nullable: false, api_name: "thresholdTokens"
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PutV1AgentsIDRequestConfigContextManagementCompactionStrategy
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
AUTO = "auto"
|
|
10
|
+
PROVIDER_NATIVE = "provider_native"
|
|
11
|
+
SUMMARY = "summary"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDRequestConfigContextManagementToolResults < Internal::Types::Model
|
|
7
|
+
field :inline_threshold_chars, -> { Integer }, optional: true, nullable: false, api_name: "inlineThresholdChars"
|
|
8
|
+
|
|
9
|
+
field :prune_hot_window_tokens, -> { Integer }, optional: true, nullable: false, api_name: "pruneHotWindowTokens"
|
|
10
|
+
|
|
11
|
+
field :prune_mode, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigContextManagementToolResultsPruneMode }, optional: true, nullable: false, api_name: "pruneMode"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PutV1AgentsIDRequestConfigContextManagementToolResultsPruneMode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MASK = "mask"
|
|
10
|
+
OFF = "off"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -8,9 +8,17 @@ module Runtype
|
|
|
8
8
|
|
|
9
9
|
field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :endpointing, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigVoiceEndpointing }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :greeting, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
11
15
|
field :interruption_mode, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigVoiceInterruptionMode }, optional: true, nullable: false, api_name: "interruptionMode"
|
|
12
16
|
|
|
17
|
+
field :language, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
13
19
|
field :provider, -> { String }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :speech, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigVoiceSpeech }, optional: true, nullable: false
|
|
14
22
|
end
|
|
15
23
|
end
|
|
16
24
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDRequestConfigVoiceEndpointing < Internal::Types::Model
|
|
7
|
+
field :silence_ms, -> { Integer }, optional: true, nullable: false, api_name: "silenceMs"
|
|
8
|
+
|
|
9
|
+
field :strategy, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigVoiceEndpointingStrategy }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_endpointing_strategy.rb
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PutV1AgentsIDRequestConfigVoiceEndpointingStrategy
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PROVIDER_VAD = "provider_vad"
|
|
10
|
+
SERVER_VAD = "server_vad"
|
|
11
|
+
CLIENT_COMMIT = "client_commit"
|
|
12
|
+
MANUAL = "manual"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDRequestConfigVoiceSpeech < Internal::Types::Model
|
|
7
|
+
field :mode, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigVoiceSpeechMode }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :synthesizer, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigVoiceSpeechSynthesizer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :transcriber, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigVoiceSpeechTranscriber }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PutV1AgentsIDRequestConfigVoiceSpeechMode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PIPELINE = "pipeline"
|
|
10
|
+
SPEECH_TO_SPEECH = "speech_to_speech"
|
|
11
|
+
PROVIDER_MANAGED = "provider_managed"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech_synthesizer.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDRequestConfigVoiceSpeechSynthesizer < Internal::Types::Model
|
|
7
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :settings, -> { Runtype::Agents::Types::PutV1AgentsIDRequestConfigVoiceSpeechSynthesizerSettings }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :voice_id, -> { String }, optional: true, nullable: false, api_name: "voiceId"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDRequestConfigVoiceSpeechSynthesizerSettings < Internal::Types::Model
|
|
7
|
+
field :similarity, -> { Integer }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :stability, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_voice_speech_transcriber.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDRequestConfigVoiceSpeechTranscriber < Internal::Types::Model
|
|
7
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -40,6 +40,8 @@ module Runtype
|
|
|
40
40
|
|
|
41
41
|
field :published_version_id, -> { String }, optional: false, nullable: true, api_name: "publishedVersionId"
|
|
42
42
|
|
|
43
|
+
field :sandbox_capability_issues, -> { Internal::Types::Array[Runtype::Agents::Types::PutV1AgentsIDResponseSandboxCapabilityIssuesItem] }, optional: true, nullable: false, api_name: "sandboxCapabilityIssues"
|
|
44
|
+
|
|
43
45
|
field :status, -> { String }, optional: false, nullable: false
|
|
44
46
|
|
|
45
47
|
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
data/generated/lib/runtype/agents/types/put_v1agents_id_response_sandbox_capability_issues_item.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDResponseSandboxCapabilityIssuesItem < Internal::Types::Model
|
|
7
|
+
field :code, -> { Runtype::Agents::Types::PutV1AgentsIDResponseSandboxCapabilityIssuesItemCode }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :path, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :requested, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :supported, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PutV1AgentsIDResponseSandboxCapabilityIssuesItemCode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
UNSUPPORTED_SANDBOX_CAPABILITY = "unsupported_sandbox_capability"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -18,6 +18,8 @@ module Runtype
|
|
|
18
18
|
|
|
19
19
|
field :id, -> { String }, optional: false, nullable: false
|
|
20
20
|
|
|
21
|
+
field :model_cost, -> { String }, optional: false, nullable: true, api_name: "modelCost"
|
|
22
|
+
|
|
21
23
|
field :model_used, -> { String }, optional: false, nullable: true, api_name: "modelUsed"
|
|
22
24
|
|
|
23
25
|
field :prompt_id, -> { String }, optional: false, nullable: true, api_name: "promptId"
|
|
@@ -40,6 +42,8 @@ module Runtype
|
|
|
40
42
|
|
|
41
43
|
field :status, -> { String }, optional: false, nullable: false
|
|
42
44
|
|
|
45
|
+
field :tool_cost, -> { String }, optional: false, nullable: true, api_name: "toolCost"
|
|
46
|
+
|
|
43
47
|
field :total_tokens, -> { Integer }, optional: false, nullable: true, api_name: "totalTokens"
|
|
44
48
|
end
|
|
45
49
|
end
|
|
@@ -31,6 +31,11 @@ module Runtype
|
|
|
31
31
|
@agents ||= Runtype::Agents::Client.new(client: @raw_client)
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
# @return [Runtype::AgentAliases::Client]
|
|
35
|
+
def agent_aliases
|
|
36
|
+
@agent_aliases ||= Runtype::AgentAliases::Client.new(client: @raw_client)
|
|
37
|
+
end
|
|
38
|
+
|
|
34
39
|
# @return [Runtype::Analytics::Client]
|
|
35
40
|
def analytics
|
|
36
41
|
@analytics ||= Runtype::Analytics::Client.new(client: @raw_client)
|
|
@@ -12,7 +12,10 @@ module Runtype
|
|
|
12
12
|
|
|
13
13
|
# Main dispatch endpoint for flow and agent execution with record resolution. Supports streaming via SSE or
|
|
14
14
|
# synchronous JSON responses. Send the RFC 7240 `Prefer: respond-async` header to receive a durable execution
|
|
15
|
-
# handle immediately, then poll its status URL for completion.
|
|
15
|
+
# handle immediately, then poll its status URL for completion. A saved agent may run on the durable session lane;
|
|
16
|
+
# the admission headers `x-runtype-concurrency` (reject, supersede, queue), `x-runtype-coalesce` (true) and
|
|
17
|
+
# `idempotency-key` then apply exactly as on `POST /v1/agents/{id}/execute`, and are ignored for a turn that
|
|
18
|
+
# resolves to the in-process lane.
|
|
16
19
|
#
|
|
17
20
|
# @param request_options [Hash]
|
|
18
21
|
# @param params [Runtype::Dispatch::Types::PostV1DispatchRequest]
|
|
@@ -164,7 +167,11 @@ module Runtype
|
|
|
164
167
|
end
|
|
165
168
|
end
|
|
166
169
|
|
|
167
|
-
# Resumes a paused flow or agent execution by providing tool outputs. Does not count against execution limits.
|
|
170
|
+
# Resumes a paused flow or agent execution by providing tool outputs. Does not count against execution limits. A
|
|
171
|
+
# saved-agent dispatch that ran on the durable lane pauses under its `aex_` execution id; resuming it hands the
|
|
172
|
+
# outputs to the durable session, answers `{ executionId, status: "running" }` (or a streamed `await` with
|
|
173
|
+
# `awaitReason: "detached"`), and ignores `messages`. Follow the run through `GET
|
|
174
|
+
# /v1/executions/{executionId}/events`.
|
|
168
175
|
#
|
|
169
176
|
# @param request_options [Hash]
|
|
170
177
|
# @param params [Runtype::Dispatch::Types::PostV1DispatchResumeRequest]
|
|
@@ -180,7 +187,7 @@ module Runtype
|
|
|
180
187
|
# stream_response: false
|
|
181
188
|
# )
|
|
182
189
|
#
|
|
183
|
-
# @return [Runtype::Types::
|
|
190
|
+
# @return [Runtype::Types::DispatchResumeJSONResponse]
|
|
184
191
|
def resume_a_paused_execution(request_options: {}, **params)
|
|
185
192
|
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
186
193
|
request = Runtype::Internal::JSON::Request.new(
|
|
@@ -197,7 +204,7 @@ module Runtype
|
|
|
197
204
|
end
|
|
198
205
|
code = response.code.to_i
|
|
199
206
|
if code.between?(200, 299)
|
|
200
|
-
Runtype::Types::
|
|
207
|
+
Runtype::Types::DispatchResumeJSONResponse.load(response.body)
|
|
201
208
|
else
|
|
202
209
|
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
203
210
|
raise error_class.new(response.body, code: code)
|
|
@@ -10,10 +10,14 @@ module Runtype
|
|
|
10
10
|
|
|
11
11
|
field :agent_type, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentAgentType }, optional: true, nullable: false, api_name: "agentType"
|
|
12
12
|
|
|
13
|
+
field :alias_, -> { String }, optional: true, nullable: false, api_name: "alias"
|
|
14
|
+
|
|
13
15
|
field :artifacts, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentArtifacts }, optional: true, nullable: false
|
|
14
16
|
|
|
15
17
|
field :claude_managed_config, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentClaudeManagedConfig }, optional: true, nullable: false, api_name: "claudeManagedConfig"
|
|
16
18
|
|
|
19
|
+
field :durability, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentDurability }, optional: true, nullable: false
|
|
20
|
+
|
|
17
21
|
field :error_handling, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentErrorHandling }, optional: true, nullable: false, api_name: "errorHandling"
|
|
18
22
|
|
|
19
23
|
field :frequency_penalty, -> { Integer }, optional: true, nullable: false, api_name: "frequencyPenalty"
|
|
@@ -54,6 +58,8 @@ module Runtype
|
|
|
54
58
|
|
|
55
59
|
field :top_p, -> { Integer }, optional: true, nullable: false, api_name: "topP"
|
|
56
60
|
|
|
61
|
+
field :version_id, -> { String }, optional: true, nullable: false, api_name: "versionId"
|
|
62
|
+
|
|
57
63
|
field :voice, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentVoice }, optional: true, nullable: false
|
|
58
64
|
end
|
|
59
65
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestOneAgentDurability < Internal::Types::Model
|
|
7
|
+
field :forced, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentDurabilityForced }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :max_budget_ms, -> { Integer }, optional: true, nullable: false, api_name: "maxBudgetMs"
|
|
10
|
+
|
|
11
|
+
field :watch_lease_ms, -> { Integer }, optional: true, nullable: false, api_name: "watchLeaseMs"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_durability_forced.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1DispatchRequestOneAgentDurabilityForced
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
DURABLE = "durable"
|
|
10
|
+
IN_PROCESS = "in_process"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -8,9 +8,17 @@ module Runtype
|
|
|
8
8
|
|
|
9
9
|
field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :endpointing, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentVoiceEndpointing }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :greeting, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
11
15
|
field :interruption_mode, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentVoiceInterruptionMode }, optional: true, nullable: false, api_name: "interruptionMode"
|
|
12
16
|
|
|
17
|
+
field :language, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
13
19
|
field :provider, -> { String }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :speech, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentVoiceSpeech }, optional: true, nullable: false
|
|
14
22
|
end
|
|
15
23
|
end
|
|
16
24
|
end
|
data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_endpointing.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestOneAgentVoiceEndpointing < Internal::Types::Model
|
|
7
|
+
field :silence_ms, -> { Integer }, optional: true, nullable: false, api_name: "silenceMs"
|
|
8
|
+
|
|
9
|
+
field :strategy, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentVoiceEndpointingStrategy }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1DispatchRequestOneAgentVoiceEndpointingStrategy
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PROVIDER_VAD = "provider_vad"
|
|
10
|
+
SERVER_VAD = "server_vad"
|
|
11
|
+
CLIENT_COMMIT = "client_commit"
|
|
12
|
+
MANUAL = "manual"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestOneAgentVoiceSpeech < Internal::Types::Model
|
|
7
|
+
field :mode, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentVoiceSpeechMode }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :synthesizer, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentVoiceSpeechSynthesizer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :transcriber, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentVoiceSpeechTranscriber }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_voice_speech_mode.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1DispatchRequestOneAgentVoiceSpeechMode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PIPELINE = "pipeline"
|
|
10
|
+
SPEECH_TO_SPEECH = "speech_to_speech"
|
|
11
|
+
PROVIDER_MANAGED = "provider_managed"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestOneAgentVoiceSpeechSynthesizer < Internal::Types::Model
|
|
7
|
+
field :model, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :provider, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :settings, -> { Runtype::Dispatch::Types::PostV1DispatchRequestOneAgentVoiceSpeechSynthesizerSettings }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :voice_id, -> { String }, optional: true, nullable: false, api_name: "voiceId"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|