runtype 0.1.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 +41 -0
- data/README.md +92 -6
- 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/model_configs/types/post_v1model_configs_request_settings_custom_model.rb +2 -0
- data/generated/lib/runtype/model_configs/types/post_v1model_configs_request_settings_custom_model_reasoning.rb +13 -0
- data/generated/lib/runtype/model_configs/types/put_v1model_configs_id_request_settings_custom_model.rb +2 -0
- data/generated/lib/runtype/model_configs/types/put_v1model_configs_id_request_settings_custom_model_reasoning.rb +13 -0
- data/generated/lib/runtype/provider_keys/types/post_v1provider_keys_id_sync_models_request_models_item.rb +2 -0
- data/generated/lib/runtype/provider_keys/types/post_v1provider_keys_id_sync_models_request_models_item_reasoning.rb +13 -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 +157 -5
- data/lib/runtype/agent_definition.rb +331 -0
- data/lib/runtype/agent_ensure.rb +110 -0
- data/lib/runtype/canonical_json.rb +89 -0
- data/lib/runtype/client.rb +86 -30
- data/lib/runtype/detached_follow.rb +136 -0
- data/lib/runtype/errors.rb +91 -1
- data/lib/runtype/local_tool_runner.rb +222 -0
- data/lib/runtype/local_tools.rb +258 -0
- data/lib/runtype/sdk_version.rb +1 -1
- data/lib/runtype.rb +7 -1
- metadata +160 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDAliasesResponseDataItem < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :archived_at, -> { String }, optional: false, nullable: true, api_name: "archivedAt"
|
|
10
|
+
|
|
11
|
+
field :content_hash, -> { String }, optional: false, nullable: true, api_name: "contentHash"
|
|
12
|
+
|
|
13
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
14
|
+
|
|
15
|
+
field :expires_at, -> { String }, optional: false, nullable: true, api_name: "expiresAt"
|
|
16
|
+
|
|
17
|
+
field :label, -> { String }, optional: false, nullable: true
|
|
18
|
+
|
|
19
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
20
|
+
|
|
21
|
+
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
22
|
+
|
|
23
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
24
|
+
|
|
25
|
+
field :version_number, -> { Integer }, optional: false, nullable: true, api_name: "versionNumber"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDDeploymentsRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :alias_, -> { String }, optional: true, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :limit, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :cursor, -> { String }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDDeploymentsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Runtype::AgentAliases::Types::GetV1AgentsIDDeploymentsResponseDataItem] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :pagination, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_response_data_item.rb
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsIDDeploymentsResponseDataItem < Internal::Types::Model
|
|
7
|
+
field :action, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :actor_user_id, -> { String }, optional: false, nullable: true, api_name: "actorUserId"
|
|
10
|
+
|
|
11
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
12
|
+
|
|
13
|
+
field :alias_revision, -> { Integer }, optional: false, nullable: false, api_name: "aliasRevision"
|
|
14
|
+
|
|
15
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
16
|
+
|
|
17
|
+
field :dependencies, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: true
|
|
18
|
+
|
|
19
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
20
|
+
|
|
21
|
+
field :previous_version_id, -> { String }, optional: false, nullable: true, api_name: "previousVersionId"
|
|
22
|
+
|
|
23
|
+
field :source, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
24
|
+
|
|
25
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_request.rb
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgentsIDAliasesAliasRollbackRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :if_match, -> { String }, optional: true, nullable: false, api_name: "if-match"
|
|
12
|
+
|
|
13
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotency-key"
|
|
14
|
+
|
|
15
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :steps, -> { Integer }, optional: true, nullable: false
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_response.rb
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgentsIDAliasesAliasRollbackResponse < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :changed, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :receipt_id, -> { String }, optional: false, nullable: false, api_name: "receiptId"
|
|
12
|
+
|
|
13
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
16
|
+
|
|
17
|
+
field :version_number, -> { Integer }, optional: false, nullable: true, api_name: "versionNumber"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDAliasesAliasRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :if_match, -> { String }, optional: true, nullable: false, api_name: "if-match"
|
|
12
|
+
|
|
13
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotency-key"
|
|
14
|
+
|
|
15
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module AgentAliases
|
|
5
|
+
module Types
|
|
6
|
+
class PutV1AgentsIDAliasesAliasResponse < Internal::Types::Model
|
|
7
|
+
field :alias_, -> { String }, optional: false, nullable: false, api_name: "alias"
|
|
8
|
+
|
|
9
|
+
field :changed, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :receipt_id, -> { String }, optional: false, nullable: false, api_name: "receiptId"
|
|
12
|
+
|
|
13
|
+
field :revision, -> { Integer }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :version_id, -> { String }, optional: false, nullable: false, api_name: "versionId"
|
|
16
|
+
|
|
17
|
+
field :version_number, -> { Integer }, optional: false, nullable: true, api_name: "versionNumber"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -24,6 +24,7 @@ module Runtype
|
|
|
24
24
|
# @option params [String, nil] :include_count
|
|
25
25
|
# @option params [String, nil] :search
|
|
26
26
|
# @option params [Runtype::Agents::Types::GetV1AgentsRequestAgentType, nil] :agent_type
|
|
27
|
+
# @option params [Runtype::Agents::Types::GetV1AgentsRequestManagedInCode, nil] :managed_in_code
|
|
27
28
|
# @option params [Runtype::Agents::Types::GetV1AgentsRequestView, nil] :view
|
|
28
29
|
#
|
|
29
30
|
# @example
|
|
@@ -38,6 +39,7 @@ module Runtype
|
|
|
38
39
|
query_params["includeCount"] = params[:include_count] if params.key?(:include_count)
|
|
39
40
|
query_params["search"] = params[:search] if params.key?(:search)
|
|
40
41
|
query_params["agentType"] = params[:agent_type] if params.key?(:agent_type)
|
|
42
|
+
query_params["managedInCode"] = params[:managed_in_code] if params.key?(:managed_in_code)
|
|
41
43
|
query_params["view"] = params[:view] if params.key?(:view)
|
|
42
44
|
|
|
43
45
|
request = Runtype::Internal::JSON::Request.new(
|
|
@@ -122,7 +124,15 @@ module Runtype
|
|
|
122
124
|
# an error); full requests create the agent or append a new version when the canonical content hash differs.
|
|
123
125
|
# Non-executing: never touches the execution pipeline. The response always carries the server-computed canonical
|
|
124
126
|
# hash. Set dryRun to plan without writing (CI drift gate), onConflict: "overwrite" to converge over dashboard/API
|
|
125
|
-
# edits, and
|
|
127
|
+
# edits, and deploy: { alias } to atomically save and activate the definition at a release alias (release:
|
|
128
|
+
# "publish" / "none" remain compatibility spellings of deploy live / save-only, and mixing the two is a 400). A
|
|
129
|
+
# non-live deploy is alias-scoped: it appends a candidate version and moves that one pointer, and never writes the
|
|
130
|
+
# agent row, its config hash, its capabilities, its draft pointer or its live pointer, so "unchanged" is decided
|
|
131
|
+
# against the hash stored on the alias rather than against the live row. onConflict, expectedRemoteHash and
|
|
132
|
+
# managed-by-code provenance describe live-row writes and therefore do not apply to a non-live deploy; remoteHash
|
|
133
|
+
# in the response is the hash the alias carried before. The one exception is an agent name that does not exist
|
|
134
|
+
# yet: the create is the live row (there is nothing to preview against), and live is still not aimed. Optional
|
|
135
|
+
# version.label / version.notes stamp provenance (a git SHA, a release tag) on the appended version row.
|
|
126
136
|
#
|
|
127
137
|
# @param request_options [Hash]
|
|
128
138
|
# @param params [Runtype::Agents::Types::PostV1AgentsEnsureRequest]
|
|
@@ -568,7 +578,9 @@ module Runtype
|
|
|
568
578
|
|
|
569
579
|
# Execute an agent with a message array. Streams a Server-Sent Events response when streamResponse is true
|
|
570
580
|
# (default); otherwise returns a JSON result. Send the RFC 7240 `Prefer: respond-async` header to receive a
|
|
571
|
-
# durable execution handle immediately, then poll its status URL for completion.
|
|
581
|
+
# durable execution handle immediately, then poll its status URL for completion. The optional `durability` body
|
|
582
|
+
# field pins the lane for this request (`forced`: `durable` or `in_process`) or bounds its attached watch
|
|
583
|
+
# (`watchLeaseMs`), and outranks the saved agent config.
|
|
572
584
|
#
|
|
573
585
|
# @param request_options [Hash]
|
|
574
586
|
# @param params [Hash]
|
|
@@ -10,6 +10,12 @@ module Runtype
|
|
|
10
10
|
|
|
11
11
|
field :agent_spec, -> { Object }, optional: true, nullable: false, api_name: "agentSpec"
|
|
12
12
|
|
|
13
|
+
field :agent_target_resolution, -> { Runtype::Agents::Types::GetV1AgentsIDExecutionsExecutionIDResponseAgentTargetResolution }, optional: false, nullable: false, api_name: "agentTargetResolution"
|
|
14
|
+
|
|
15
|
+
field :agent_version, -> { Runtype::Agents::Types::GetV1AgentsIDExecutionsExecutionIDResponseAgentVersion }, optional: false, nullable: true, api_name: "agentVersion"
|
|
16
|
+
|
|
17
|
+
field :agent_version_id, -> { String }, optional: false, nullable: true, api_name: "agentVersionId"
|
|
18
|
+
|
|
13
19
|
field :budget_exhausted, -> { Internal::Types::Boolean }, optional: false, nullable: true, api_name: "budgetExhausted"
|
|
14
20
|
|
|
15
21
|
field :cancel_requested_at, -> { String }, optional: false, nullable: true, api_name: "cancelRequestedAt"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1AgentsIDExecutionsExecutionIDResponseAgentTargetResolution
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
ALIAS = "alias"
|
|
10
|
+
VERSION = "version"
|
|
11
|
+
LEGACY_LIVE_ROW = "legacy-live-row"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
# Version number and label for `agentVersionId`, joined from `agent_versions`. `null` exactly when
|
|
7
|
+
# `agentVersionId` is `null`.
|
|
8
|
+
class GetV1AgentsIDExecutionsExecutionIDResponseAgentVersion < Internal::Types::Model
|
|
9
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :label, -> { String }, optional: false, nullable: true
|
|
12
|
+
|
|
13
|
+
field :version_number, -> { Integer }, optional: false, nullable: false, api_name: "versionNumber"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -10,6 +10,12 @@ module Runtype
|
|
|
10
10
|
|
|
11
11
|
field :agent_spec, -> { Object }, optional: true, nullable: false, api_name: "agentSpec"
|
|
12
12
|
|
|
13
|
+
field :agent_target_resolution, -> { Runtype::Agents::Types::GetV1AgentsIDExecutionsResponseDataItemAgentTargetResolution }, optional: false, nullable: false, api_name: "agentTargetResolution"
|
|
14
|
+
|
|
15
|
+
field :agent_version, -> { Runtype::Agents::Types::GetV1AgentsIDExecutionsResponseDataItemAgentVersion }, optional: false, nullable: true, api_name: "agentVersion"
|
|
16
|
+
|
|
17
|
+
field :agent_version_id, -> { String }, optional: false, nullable: true, api_name: "agentVersionId"
|
|
18
|
+
|
|
13
19
|
field :budget_exhausted, -> { Internal::Types::Boolean }, optional: false, nullable: true, api_name: "budgetExhausted"
|
|
14
20
|
|
|
15
21
|
field :cancel_requested_at, -> { String }, optional: false, nullable: true, api_name: "cancelRequestedAt"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1AgentsIDExecutionsResponseDataItemAgentTargetResolution
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
ALIAS = "alias"
|
|
10
|
+
VERSION = "version"
|
|
11
|
+
LEGACY_LIVE_ROW = "legacy-live-row"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
# Version number and label for `agentVersionId`, joined from `agent_versions`. `null` exactly when
|
|
7
|
+
# `agentVersionId` is `null`.
|
|
8
|
+
class GetV1AgentsIDExecutionsResponseDataItemAgentVersion < Internal::Types::Model
|
|
9
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :label, -> { String }, optional: false, nullable: true
|
|
12
|
+
|
|
13
|
+
field :version_number, -> { Integer }, optional: false, nullable: false, api_name: "versionNumber"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -38,6 +38,8 @@ module Runtype
|
|
|
38
38
|
|
|
39
39
|
field :published_version_id, -> { String }, optional: false, nullable: true, api_name: "publishedVersionId"
|
|
40
40
|
|
|
41
|
+
field :sandbox_capability_issues, -> { Internal::Types::Array[Runtype::Agents::Types::GetV1AgentsIDResponseSandboxCapabilityIssuesItem] }, optional: true, nullable: false, api_name: "sandboxCapabilityIssues"
|
|
42
|
+
|
|
41
43
|
field :status, -> { String }, optional: false, nullable: false
|
|
42
44
|
|
|
43
45
|
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
data/generated/lib/runtype/agents/types/get_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 GetV1AgentsIDResponseSandboxCapabilityIssuesItem < Internal::Types::Model
|
|
7
|
+
field :code, -> { Runtype::Agents::Types::GetV1AgentsIDResponseSandboxCapabilityIssuesItemCode }, 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 GetV1AgentsIDResponseSandboxCapabilityIssuesItemCode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
UNSUPPORTED_SANDBOX_CAPABILITY = "unsupported_sandbox_capability"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -14,6 +14,8 @@ module Runtype
|
|
|
14
14
|
|
|
15
15
|
field :agent_type, -> { Runtype::Agents::Types::GetV1AgentsRequestAgentType }, optional: true, nullable: false, api_name: "agentType"
|
|
16
16
|
|
|
17
|
+
field :managed_in_code, -> { Runtype::Agents::Types::GetV1AgentsRequestManagedInCode }, optional: true, nullable: false, api_name: "managedInCode"
|
|
18
|
+
|
|
17
19
|
field :view, -> { Runtype::Agents::Types::GetV1AgentsRequestView }, optional: true, nullable: false
|
|
18
20
|
end
|
|
19
21
|
end
|
|
@@ -18,10 +18,14 @@ module Runtype
|
|
|
18
18
|
|
|
19
19
|
field :id, -> { String }, optional: false, nullable: false
|
|
20
20
|
|
|
21
|
+
field :last_modified_source, -> { String }, optional: false, nullable: true, api_name: "lastModifiedSource"
|
|
22
|
+
|
|
21
23
|
field :last_run_at, -> { String }, optional: true, nullable: false, api_name: "lastRunAt"
|
|
22
24
|
|
|
23
25
|
field :name, -> { String }, optional: false, nullable: false
|
|
24
26
|
|
|
27
|
+
field :sandbox_capability_issues, -> { Internal::Types::Array[Runtype::Agents::Types::GetV1AgentsResponseDataItemSandboxCapabilityIssuesItem] }, optional: true, nullable: false, api_name: "sandboxCapabilityIssues"
|
|
28
|
+
|
|
25
29
|
field :status, -> { String }, optional: false, nullable: false
|
|
26
30
|
|
|
27
31
|
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Agents
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1AgentsResponseDataItemSandboxCapabilityIssuesItem < Internal::Types::Model
|
|
7
|
+
field :code, -> { Runtype::Agents::Types::GetV1AgentsResponseDataItemSandboxCapabilityIssuesItemCode }, 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 GetV1AgentsResponseDataItemSandboxCapabilityIssuesItemCode
|
|
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 :definition, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinition }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :deploy, -> { Runtype::Types::AgentEnsureDeployTarget }, optional: true, nullable: false
|
|
12
|
+
|
|
11
13
|
field :dry_run, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "dryRun"
|
|
12
14
|
|
|
13
15
|
field :expected_remote_hash, -> { String }, optional: true, nullable: false, api_name: "expectedRemoteHash"
|
|
@@ -17,6 +19,8 @@ module Runtype
|
|
|
17
19
|
field :on_conflict, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestOnConflict }, optional: true, nullable: false, api_name: "onConflict"
|
|
18
20
|
|
|
19
21
|
field :release, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestRelease }, optional: true, nullable: false
|
|
22
|
+
|
|
23
|
+
field :version, -> { Runtype::Types::EnsureVersionMetadata }, optional: true, nullable: false
|
|
20
24
|
end
|
|
21
25
|
end
|
|
22
26
|
end
|
|
@@ -8,6 +8,8 @@ module Runtype
|
|
|
8
8
|
|
|
9
9
|
field :artifacts, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigArtifacts }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :context_management, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigContextManagement }, optional: true, nullable: false, api_name: "contextManagement"
|
|
12
|
+
|
|
11
13
|
field :durability, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigDurability }, optional: true, nullable: false
|
|
12
14
|
|
|
13
15
|
field :error_handling, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigErrorHandling }, 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 PostV1AgentsEnsureRequestDefinitionConfigContextManagement < Internal::Types::Model
|
|
7
|
+
field :compaction, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigContextManagementCompaction }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :tool_results, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigContextManagementToolResults }, 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 PostV1AgentsEnsureRequestDefinitionConfigContextManagementCompaction < 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::PostV1AgentsEnsureRequestDefinitionConfigContextManagementCompactionStrategy }, 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 PostV1AgentsEnsureRequestDefinitionConfigContextManagementCompactionStrategy
|
|
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 PostV1AgentsEnsureRequestDefinitionConfigContextManagementToolResults < 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::PostV1AgentsEnsureRequestDefinitionConfigContextManagementToolResultsPruneMode }, 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 PostV1AgentsEnsureRequestDefinitionConfigContextManagementToolResultsPruneMode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MASK = "mask"
|
|
10
|
+
OFF = "off"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_voice.rb
CHANGED
|
@@ -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::PostV1AgentsEnsureRequestDefinitionConfigVoiceEndpointing }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :greeting, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
11
15
|
field :interruption_mode, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigVoiceInterruptionMode }, 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::PostV1AgentsEnsureRequestDefinitionConfigVoiceSpeech }, 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 PostV1AgentsEnsureRequestDefinitionConfigVoiceEndpointing < Internal::Types::Model
|
|
7
|
+
field :silence_ms, -> { Integer }, optional: true, nullable: false, api_name: "silenceMs"
|
|
8
|
+
|
|
9
|
+
field :strategy, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigVoiceEndpointingStrategy }, 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 Agents
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgentsEnsureRequestDefinitionConfigVoiceEndpointingStrategy
|
|
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 PostV1AgentsEnsureRequestDefinitionConfigVoiceSpeech < Internal::Types::Model
|
|
7
|
+
field :mode, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigVoiceSpeechMode }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :synthesizer, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigVoiceSpeechSynthesizer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :transcriber, -> { Runtype::Agents::Types::PostV1AgentsEnsureRequestDefinitionConfigVoiceSpeechTranscriber }, 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 PostV1AgentsEnsureRequestDefinitionConfigVoiceSpeechMode
|
|
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
|