runtype 0.2.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +169 -1
- data/README.md +188 -23
- data/generated/lib/runtype/agent_aliases/client.rb +202 -1
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_bindings_request.rb +17 -0
- data/generated/lib/runtype/agent_aliases/types/delete_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agent_aliases_request.rb +13 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agent_aliases_response.rb +11 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agent_aliases_response_data_item.rb +25 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_bindings_request.rb +13 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_alias_response.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_aliases_response_data_item.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/get_v1agents_id_deployments_response_data_item.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/post_v1agents_id_aliases_alias_rollback_response.rb +6 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_bindings_request.rb +21 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_bindings_response.rb +19 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_request.rb +2 -0
- data/generated/lib/runtype/agent_aliases/types/put_v1agents_id_aliases_alias_response.rb +6 -0
- data/generated/lib/runtype/agent_versions/client.rb +13 -1
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request.rb +6 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request_deployment.rb +11 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_request_deployment_action.rb +14 -0
- data/generated/lib/runtype/agent_versions/types/post_v1agent_versions_agent_id_publish_response.rb +1 -1
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_memory.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_ensure_request_definition_config_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/agents/types/post_v1agents_id_execute_request_x_runtype_concurrency.rb +1 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_memory.rb +2 -0
- data/generated/lib/runtype/agents/types/post_v1agents_request_config_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_memory.rb +2 -0
- data/generated/lib/runtype/agents/types/put_v1agents_id_request_config_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/batch/types/get_v1batch_batch_id_records_record_id_steps_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/client.rb +5 -5
- data/generated/lib/runtype/client_runtime/client.rb +118 -1
- data/generated/lib/runtype/client_runtime/types/get_v1client_conversations_conversation_id_executions_execution_id_deliveries_delivery_id_request.rb +21 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_chat_request_submit_mode.rb +1 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_conversations_conversation_id_executions_execution_id_cancel_request.rb +19 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_conversations_conversation_id_executions_execution_id_cancel_response.rb +13 -0
- data/generated/lib/runtype/client_runtime/types/post_v1client_init_response_durable_recovery.rb +2 -0
- data/generated/lib/runtype/client_tokens/types/get_v1client_tokens_id_response_client_token.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/get_v1client_tokens_response_client_tokens_item.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/post_v1client_tokens_id_regenerate_response_client_token.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/post_v1client_tokens_request.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/post_v1client_tokens_response_client_token.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/put_v1client_tokens_id_request.rb +4 -0
- data/generated/lib/runtype/client_tokens/types/put_v1client_tokens_id_response_client_token.rb +4 -0
- data/generated/lib/runtype/conversations/client.rb +28 -10
- data/generated/lib/runtype/conversations/types/get_v1conversations_id_response.rb +3 -1
- data/generated/lib/runtype/conversations/types/post_v1conversations_request.rb +6 -0
- data/generated/lib/runtype/conversations/types/post_v1conversations_response.rb +3 -1
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request.rb +7 -1
- data/generated/lib/runtype/conversations/types/{put_v1conversations_id_request_messages_item_content_one_item_asset_ref_ref_kind.rb → put_v1conversations_id_request_messages_mode.rb} +3 -3
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_response.rb +3 -1
- data/generated/lib/runtype/dispatch/client.rb +5 -3
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_memory.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_agent_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_history.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_one_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_memory.rb +2 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_agent_memory_pointer_scope.rb +15 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_history.rb +14 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item.rb +4 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_role.rb +1 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_tool_calls_item.rb +17 -0
- data/generated/lib/runtype/dispatch/types/post_v1dispatch_request_zero_messages_item_tool_results_item.rb +17 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response.rb +10 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/evals/types/get_v1eval_id_results_response_results_by_record_value_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/evals/types/post_v1eval_run_request.rb +2 -0
- data/generated/lib/runtype/evals/types/post_v1eval_run_request_agent.rb +15 -0
- data/generated/lib/runtype/evals/types/post_v1eval_submit_request.rb +2 -0
- data/generated/lib/runtype/evals/types/post_v1eval_submit_request_agent.rb +15 -0
- data/generated/lib/runtype/evals/types/post_v1eval_suites_id_run_request.rb +2 -0
- data/generated/lib/runtype/executions/client.rb +43 -0
- data/generated/lib/runtype/executions/types/get_v1executions_execution_id_deliveries_delivery_id_request.rb +13 -0
- data/generated/lib/runtype/flows/client.rb +3 -4
- data/generated/lib/runtype/flows/types/get_v1flows_id_step_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/messaging_conversations/client.rb +2 -0
- data/generated/lib/runtype/messaging_conversations/types/get_v1messaging_conversations_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_mid_conversation_system_messages.rb +14 -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_mid_conversation_system_messages.rb +14 -0
- data/generated/lib/runtype/products/client.rb +45 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_request.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data.rb +13 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item.rb +17 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item.rb +77 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_agent_target_resolution.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_agent_version.rb +17 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_execution_mode.rb +14 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_notification_mode.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_pending_approval.rb +27 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_data_item_status.rb +19 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item_error.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item.rb +19 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item.rb +15 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_agent_mode.rb +45 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_available_fields.rb +39 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_data_item_available_fields_metadata_schema.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_error.rb +11 -0
- data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_surfaces_item_source.rb +14 -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_mid_conversation_system_messages.rb +14 -0
- data/generated/lib/runtype/records/types/get_v1records_id_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/records/types/get_v1records_id_step_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/schedules/types/get_v1schedules_batch_batch_id_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/schedules/types/get_v1schedules_runs_run_id_results_response_data_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/types/agent_deployment_promotion.rb +17 -0
- data/generated/lib/runtype/types/agent_ensure_deploy_target.rb +2 -0
- data/generated/lib/runtype/types/agent_ensure_preview_alias_limit.rb +19 -0
- data/generated/lib/runtype/types/agent_ensure_preview_alias_limit_code.rb +11 -0
- data/generated/lib/runtype/types/agent_ensure_preview_alias_limit_scope.rb +12 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_memory.rb +2 -0
- data/generated/lib/runtype/types/agent_pull_response_definition_config_memory_pointer_scope.rb +13 -0
- data/generated/lib/runtype/types/async_dispatch_handle.rb +10 -0
- data/generated/lib/runtype/types/async_dispatch_handle_delivery_status.rb +14 -0
- data/generated/lib/runtype/types/async_dispatch_handle_status.rb +5 -0
- data/generated/lib/runtype/types/client_input_delivery_receipt.rb +19 -0
- data/generated/lib/runtype/types/client_input_delivery_receipt_status.rb +14 -0
- data/generated/lib/runtype/types/conflict_error_body_candidate_count.rb +21 -0
- data/generated/lib/runtype/types/conflict_error_body_candidate_count_code.rb +11 -0
- data/generated/lib/runtype/types/conversation_busy_error.rb +15 -0
- data/generated/lib/runtype/types/conversation_busy_error_code.rb +11 -0
- data/generated/lib/runtype/types/conversation_busy_error_phase.rb +14 -0
- data/generated/lib/runtype/types/conversation_message_author.rb +16 -0
- data/generated/lib/runtype/types/conversation_message_author_type.rb +14 -0
- data/generated/lib/runtype/types/conversation_modified_error.rb +13 -0
- data/generated/lib/runtype/types/conversation_modified_error_code.rb +11 -0
- data/generated/lib/runtype/types/conversation_source.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message.rb +23 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item.rb +21 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_asset_ref.rb +19 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_asset_ref_ref_kind.rb +12 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_file.rb +13 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_image.rb +11 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_reasoning.rb +11 -0
- data/generated/lib/runtype/types/conversation_transcript_message_content_one_item_text.rb +9 -0
- data/generated/lib/runtype/types/conversation_transcript_message_role.rb +14 -0
- data/generated/lib/runtype/types/conversation_transcript_message_tool_calls_item.rb +15 -0
- data/generated/lib/runtype/types/conversation_transcript_message_tool_results_item.rb +15 -0
- data/generated/lib/runtype/types/dispatch_agent_json_response.rb +12 -0
- data/generated/lib/runtype/types/dispatch_agent_json_response_delivery_status.rb +14 -0
- data/generated/lib/runtype/types/dispatch_agent_json_response_execution_mode.rb +1 -0
- data/generated/lib/runtype/types/eval_agent_selector.rb +13 -0
- data/generated/lib/runtype/types/eval_run_scores_response.rb +10 -0
- data/generated/lib/runtype/types/eval_run_scores_response_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype/types/eval_run_scores_response_cases_item_execution_engine.rb +1 -0
- data/generated/lib/runtype/types/eval_suite_run_queued.rb +10 -0
- data/generated/lib/runtype/types/eval_suite_run_queued_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype/types/input_delivery_receipt.rb +19 -0
- data/generated/lib/runtype/types/input_delivery_receipt_status.rb +14 -0
- data/generated/lib/runtype/types/preview_alias_limit_error.rb +21 -0
- data/generated/lib/runtype/types/preview_alias_limit_error_code.rb +11 -0
- data/generated/lib/runtype/types/preview_alias_limit_error_scope.rb +12 -0
- data/generated/lib/runtype/types/run_eval_response.rb +10 -0
- data/generated/lib/runtype/types/run_eval_response_agent_target_resolution.rb +13 -0
- data/generated/lib/runtype.rb +109 -26
- data/lib/runtype/agent_ensure.rb +68 -4
- data/lib/runtype/agent_release_aliases.rb +282 -0
- data/lib/runtype/client.rb +22 -1
- data/lib/runtype/errors.rb +14 -2
- data/lib/runtype/raw_client_timeout.rb +56 -0
- data/lib/runtype/sdk_version.rb +2 -1
- data/lib/runtype.rb +2 -0
- metadata +95 -10
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item.rb +0 -17
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content.rb +0 -15
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item.rb +0 -21
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_asset_ref.rb +0 -21
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_file.rb +0 -15
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_image.rb +0 -13
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_content_one_item_text.rb +0 -11
- data/generated/lib/runtype/conversations/types/put_v1conversations_id_request_messages_item_role.rb +0 -15
|
@@ -7,6 +7,10 @@ module Runtype
|
|
|
7
7
|
field :content, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroMessagesItemContent }, optional: false, nullable: false
|
|
8
8
|
|
|
9
9
|
field :role, -> { Runtype::Dispatch::Types::PostV1DispatchRequestZeroMessagesItemRole }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :tool_calls, -> { Internal::Types::Array[Runtype::Dispatch::Types::PostV1DispatchRequestZeroMessagesItemToolCallsItem] }, optional: true, nullable: false, api_name: "toolCalls"
|
|
12
|
+
|
|
13
|
+
field :tool_results, -> { Internal::Types::Array[Runtype::Dispatch::Types::PostV1DispatchRequestZeroMessagesItemToolResultsItem] }, optional: true, nullable: false, api_name: "toolResults"
|
|
10
14
|
end
|
|
11
15
|
end
|
|
12
16
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestZeroMessagesItemToolCallsItem < Internal::Types::Model
|
|
7
|
+
field :args, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :provider_options, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false, api_name: "providerOptions"
|
|
10
|
+
|
|
11
|
+
field :tool_call_id, -> { String }, optional: false, nullable: false, api_name: "toolCallId"
|
|
12
|
+
|
|
13
|
+
field :tool_name, -> { String }, optional: false, nullable: false, api_name: "toolName"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Dispatch
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1DispatchRequestZeroMessagesItemToolResultsItem < Internal::Types::Model
|
|
7
|
+
field :provider_options, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false, api_name: "providerOptions"
|
|
8
|
+
|
|
9
|
+
field :result, -> { Object }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :tool_call_id, -> { String }, optional: false, nullable: false, api_name: "toolCallId"
|
|
12
|
+
|
|
13
|
+
field :tool_name, -> { String }, optional: false, nullable: false, api_name: "toolName"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -4,10 +4,18 @@ module Runtype
|
|
|
4
4
|
module Evals
|
|
5
5
|
module Types
|
|
6
6
|
class GetV1EvalIDResultsResponse < Internal::Types::Model
|
|
7
|
+
field :agent_target_alias, -> { String }, optional: true, nullable: false, api_name: "agentTargetAlias"
|
|
8
|
+
|
|
9
|
+
field :agent_target_resolution, -> { Runtype::Evals::Types::GetV1EvalIDResultsResponseAgentTargetResolution }, optional: true, nullable: false, api_name: "agentTargetResolution"
|
|
10
|
+
|
|
11
|
+
field :agent_version_id, -> { String }, optional: true, nullable: false, api_name: "agentVersionId"
|
|
12
|
+
|
|
7
13
|
field :batch_execution_id, -> { String }, optional: false, nullable: false, api_name: "batchExecutionId"
|
|
8
14
|
|
|
9
15
|
field :case_errors, -> { Internal::Types::Array[Runtype::Evals::Types::GetV1EvalIDResultsResponseCaseErrorsItem] }, optional: false, nullable: false, api_name: "caseErrors"
|
|
10
16
|
|
|
17
|
+
field :case_manifest_hash, -> { String }, optional: true, nullable: false, api_name: "caseManifestHash"
|
|
18
|
+
|
|
11
19
|
field :completed_at, -> { String }, optional: true, nullable: false, api_name: "completedAt"
|
|
12
20
|
|
|
13
21
|
field :eval_config, -> { Object }, optional: true, nullable: false, api_name: "evalConfig"
|
|
@@ -16,6 +24,8 @@ module Runtype
|
|
|
16
24
|
|
|
17
25
|
field :eval_name, -> { String }, optional: true, nullable: false, api_name: "evalName"
|
|
18
26
|
|
|
27
|
+
field :evaluator_fingerprint, -> { String }, optional: true, nullable: false, api_name: "evaluatorFingerprint"
|
|
28
|
+
|
|
19
29
|
field :failed_records, -> { Integer }, optional: false, nullable: false, api_name: "failedRecords"
|
|
20
30
|
|
|
21
31
|
field :flow_id, -> { String }, optional: false, nullable: true, api_name: "flowId"
|
data/generated/lib/runtype/evals/types/get_v1eval_id_results_response_agent_target_resolution.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Evals
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1EvalIDResultsResponseAgentTargetResolution
|
|
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
|
|
@@ -4,6 +4,8 @@ module Runtype
|
|
|
4
4
|
module Evals
|
|
5
5
|
module Types
|
|
6
6
|
class PostV1EvalRunRequest < Internal::Types::Model
|
|
7
|
+
field :agent, -> { Runtype::Evals::Types::PostV1EvalRunRequestAgent }, optional: true, nullable: false
|
|
8
|
+
|
|
7
9
|
field :definition, -> { Runtype::Evals::Types::PostV1EvalRunRequestDefinition }, optional: true, nullable: false
|
|
8
10
|
|
|
9
11
|
field :model_override, -> { String }, optional: true, nullable: false, api_name: "modelOverride"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Evals
|
|
5
|
+
module Types
|
|
6
|
+
# Version selector for an Agent target. Supply at most one of alias or versionId; the run resolves it once and
|
|
7
|
+
# every case executes that version.
|
|
8
|
+
class PostV1EvalRunRequestAgent < Internal::Types::Model
|
|
9
|
+
field :alias_, -> { String }, optional: true, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :version_id, -> { String }, optional: true, nullable: false, api_name: "versionId"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -4,6 +4,8 @@ module Runtype
|
|
|
4
4
|
module Evals
|
|
5
5
|
module Types
|
|
6
6
|
class PostV1EvalSubmitRequest < Internal::Types::Model
|
|
7
|
+
field :agent, -> { Runtype::Evals::Types::PostV1EvalSubmitRequestAgent }, optional: true, nullable: false
|
|
8
|
+
|
|
7
9
|
field :eval_config, -> { Runtype::Types::EvalConfigRequest }, optional: true, nullable: false, api_name: "evalConfig"
|
|
8
10
|
|
|
9
11
|
field :eval_configs, -> { Internal::Types::Array[Runtype::Types::EvalConfigRequest] }, optional: true, nullable: false, api_name: "evalConfigs"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Evals
|
|
5
|
+
module Types
|
|
6
|
+
# Version selector for an agentId target. Supply at most one of alias or versionId; the run resolves it once and
|
|
7
|
+
# every case executes that version.
|
|
8
|
+
class PostV1EvalSubmitRequestAgent < Internal::Types::Model
|
|
9
|
+
field :alias_, -> { String }, optional: true, nullable: false, api_name: "alias"
|
|
10
|
+
|
|
11
|
+
field :version_id, -> { String }, optional: true, nullable: false, api_name: "versionId"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -6,6 +6,8 @@ module Runtype
|
|
|
6
6
|
class PostV1EvalSuitesIDRunRequest < Internal::Types::Model
|
|
7
7
|
field :id, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :agent, -> { Runtype::Types::EvalAgentSelector }, optional: true, nullable: false
|
|
10
|
+
|
|
9
11
|
field :mode, -> { Runtype::Evals::Types::PostV1EvalSuitesIDRunRequestMode }, optional: true, nullable: false
|
|
10
12
|
|
|
11
13
|
field :model_override, -> { String }, optional: true, nullable: false, api_name: "modelOverride"
|
|
@@ -10,6 +10,49 @@ module Runtype
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# Read the delivery independently of its host execution. Applied means durably incorporated into context, not
|
|
14
|
+
# model compliance. Settled shares the host outcome; not_applied means the host ended before consuming this input.
|
|
15
|
+
# Receipts are retained within the session retry window.
|
|
16
|
+
#
|
|
17
|
+
# @param request_options [Hash]
|
|
18
|
+
# @param params [Hash]
|
|
19
|
+
# @option request_options [String] :base_url
|
|
20
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
21
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
22
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
23
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
24
|
+
# @option params [String] :execution_id
|
|
25
|
+
# @option params [String] :delivery_id
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# client.executions.inspect_a_durable_input_delivery(
|
|
29
|
+
# execution_id: "executionId",
|
|
30
|
+
# delivery_id: "deliveryId"
|
|
31
|
+
# )
|
|
32
|
+
#
|
|
33
|
+
# @return [Runtype::Types::InputDeliveryReceipt]
|
|
34
|
+
def inspect_a_durable_input_delivery(request_options: {}, **params)
|
|
35
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
36
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
37
|
+
base_url: request_options[:base_url],
|
|
38
|
+
method: "GET",
|
|
39
|
+
path: "v1/executions/#{URI.encode_uri_component(params[:execution_id].to_s)}/deliveries/#{URI.encode_uri_component(params[:delivery_id].to_s)}",
|
|
40
|
+
request_options: request_options
|
|
41
|
+
)
|
|
42
|
+
begin
|
|
43
|
+
response = @client.send(request)
|
|
44
|
+
rescue Net::HTTPRequestTimeout
|
|
45
|
+
raise Runtype::Errors::TimeoutError
|
|
46
|
+
end
|
|
47
|
+
code = response.code.to_i
|
|
48
|
+
if code.between?(200, 299)
|
|
49
|
+
Runtype::Types::InputDeliveryReceipt.load(response.body)
|
|
50
|
+
else
|
|
51
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
52
|
+
raise error_class.new(response.body, code: code)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
13
56
|
# Execution-scoped alias of `GET /v1/agents/{id}/executions/{executionId}/events`: reconnect to a durable turn and
|
|
14
57
|
# replay-and-tail its Server-Sent Events without already knowing which agent ran it. The agent is resolved from
|
|
15
58
|
# the execution's own persisted record, so a run started through `/v1/dispatch` reconnects by execution id alone;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Executions
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ExecutionsExecutionIDDeliveriesDeliveryIDRequest < Internal::Types::Model
|
|
7
|
+
field :execution_id, -> { String }, optional: false, nullable: false, api_name: "executionId"
|
|
8
|
+
|
|
9
|
+
field :delivery_id, -> { String }, optional: false, nullable: false, api_name: "deliveryId"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -339,11 +339,10 @@ module Runtype
|
|
|
339
339
|
raise error_class.new(response.body, code: code)
|
|
340
340
|
end
|
|
341
341
|
|
|
342
|
-
# **Limited preview — not yet generally available.** This endpoint is dark-launched and returns `404 Not Found` in
|
|
343
|
-
# production until GA; it is only reachable in non-production environments today.
|
|
344
|
-
#
|
|
345
342
|
# Export a fully-resolved, self-contained flow definition that the @runtypelabs/runtime package can consume
|
|
346
|
-
# directly at boot. All step configs are inlined; no live DB queries are needed at execution time.
|
|
343
|
+
# directly at boot. All step configs are inlined; no live DB queries are needed at execution time. Requires the
|
|
344
|
+
# `RUNTIME:EXPORT` scope and an Enterprise plan (the `byoc` entitlement); an unentitled account receives `403`
|
|
345
|
+
# with code `BYOC_PLAN_REQUIRED` in every environment.
|
|
347
346
|
#
|
|
348
347
|
# The response carries `hostDependencies`: the runtime seams the exported artifact needs a host to wire before it
|
|
349
348
|
# can run everything it describes. A durable-class step (`wait-until` or `crawl`) anywhere in the flow's
|
|
@@ -21,6 +21,7 @@ module Runtype
|
|
|
21
21
|
# @option request_options [Integer] :timeout_in_seconds
|
|
22
22
|
# @option params [String, nil] :limit
|
|
23
23
|
# @option params [String, nil] :cursor
|
|
24
|
+
# @option params [String, nil] :include_count
|
|
24
25
|
# @option params [String, nil] :surface_id
|
|
25
26
|
# @option params [String, nil] :status
|
|
26
27
|
# @option params [String, nil] :agent_mode
|
|
@@ -35,6 +36,7 @@ module Runtype
|
|
|
35
36
|
query_params = {}
|
|
36
37
|
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
37
38
|
query_params["cursor"] = params[:cursor] if params.key?(:cursor)
|
|
39
|
+
query_params["includeCount"] = params[:include_count] if params.key?(:include_count)
|
|
38
40
|
query_params["surfaceId"] = params[:surface_id] if params.key?(:surface_id)
|
|
39
41
|
query_params["status"] = params[:status] if params.key?(:status)
|
|
40
42
|
query_params["agentMode"] = params[:agent_mode] if params.key?(:agent_mode)
|
data/generated/lib/runtype/messaging_conversations/types/get_v1messaging_conversations_request.rb
CHANGED
|
@@ -8,6 +8,8 @@ module Runtype
|
|
|
8
8
|
|
|
9
9
|
field :cursor, -> { String }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :include_count, -> { String }, optional: true, nullable: false, api_name: "includeCount"
|
|
12
|
+
|
|
11
13
|
field :surface_id, -> { String }, optional: true, nullable: false, api_name: "surfaceId"
|
|
12
14
|
|
|
13
15
|
field :status, -> { String }, optional: true, nullable: false
|
data/generated/lib/runtype/model_configs/types/post_v1model_configs_request_settings_custom_model.rb
CHANGED
|
@@ -14,6 +14,8 @@ module Runtype
|
|
|
14
14
|
|
|
15
15
|
field :max_output_tokens, -> { Integer }, optional: true, nullable: false, api_name: "maxOutputTokens"
|
|
16
16
|
|
|
17
|
+
field :mid_conversation_system_messages, -> { Runtype::ModelConfigs::Types::PostV1ModelConfigsRequestSettingsCustomModelMidConversationSystemMessages }, optional: true, nullable: false, api_name: "midConversationSystemMessages"
|
|
18
|
+
|
|
17
19
|
field :output_cost_per1k_tokens, -> { Integer }, optional: false, nullable: false, api_name: "outputCostPer1kTokens"
|
|
18
20
|
|
|
19
21
|
field :reasoning, -> { Runtype::ModelConfigs::Types::PostV1ModelConfigsRequestSettingsCustomModelReasoning }, optional: true, nullable: false
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module ModelConfigs
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1ModelConfigsRequestSettingsCustomModelMidConversationSystemMessages
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PRESERVE = "preserve"
|
|
10
|
+
HOIST = "hoist"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -14,6 +14,8 @@ module Runtype
|
|
|
14
14
|
|
|
15
15
|
field :max_output_tokens, -> { Integer }, optional: true, nullable: false, api_name: "maxOutputTokens"
|
|
16
16
|
|
|
17
|
+
field :mid_conversation_system_messages, -> { Runtype::ModelConfigs::Types::PutV1ModelConfigsIDRequestSettingsCustomModelMidConversationSystemMessages }, optional: true, nullable: false, api_name: "midConversationSystemMessages"
|
|
18
|
+
|
|
17
19
|
field :output_cost_per1k_tokens, -> { Integer }, optional: false, nullable: false, api_name: "outputCostPer1kTokens"
|
|
18
20
|
|
|
19
21
|
field :reasoning, -> { Runtype::ModelConfigs::Types::PutV1ModelConfigsIDRequestSettingsCustomModelReasoning }, optional: true, nullable: false
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module ModelConfigs
|
|
5
|
+
module Types
|
|
6
|
+
module PutV1ModelConfigsIDRequestSettingsCustomModelMidConversationSystemMessages
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PRESERVE = "preserve"
|
|
10
|
+
HOIST = "hoist"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -471,6 +471,51 @@ module Runtype
|
|
|
471
471
|
end
|
|
472
472
|
end
|
|
473
473
|
|
|
474
|
+
# First page of every activity source a product has: one entry per conversational surface (messaging conversations
|
|
475
|
+
# or client-conversation records) and one per distinct agent capability (compact executions). Rows, cursors and
|
|
476
|
+
# `hasMore` are identical to the per-source list endpoints, so a client can continue any source with its own
|
|
477
|
+
# endpoint. A source that fails returns empty rows plus an `error`; the response is still 200.
|
|
478
|
+
#
|
|
479
|
+
# @param request_options [Hash]
|
|
480
|
+
# @param params [Hash]
|
|
481
|
+
# @option request_options [String] :base_url
|
|
482
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
483
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
484
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
485
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
486
|
+
# @option params [String] :id
|
|
487
|
+
# @option params [String, nil] :limit
|
|
488
|
+
#
|
|
489
|
+
# @example
|
|
490
|
+
# client.products.get_product_activity(id: "id")
|
|
491
|
+
#
|
|
492
|
+
# @return [Runtype::Products::Types::GetV1ProductsIDActivityResponse]
|
|
493
|
+
def get_product_activity(request_options: {}, **params)
|
|
494
|
+
params = Runtype::Internal::Types::Utils.normalize_keys(params)
|
|
495
|
+
query_params = {}
|
|
496
|
+
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
497
|
+
|
|
498
|
+
request = Runtype::Internal::JSON::Request.new(
|
|
499
|
+
base_url: request_options[:base_url],
|
|
500
|
+
method: "GET",
|
|
501
|
+
path: "v1/products/#{URI.encode_uri_component(params[:id].to_s)}/activity",
|
|
502
|
+
query: query_params,
|
|
503
|
+
request_options: request_options
|
|
504
|
+
)
|
|
505
|
+
begin
|
|
506
|
+
response = @client.send(request)
|
|
507
|
+
rescue Net::HTTPRequestTimeout
|
|
508
|
+
raise Runtype::Errors::TimeoutError
|
|
509
|
+
end
|
|
510
|
+
code = response.code.to_i
|
|
511
|
+
if code.between?(200, 299)
|
|
512
|
+
Runtype::Products::Types::GetV1ProductsIDActivityResponse.load(response.body)
|
|
513
|
+
else
|
|
514
|
+
error_class = Runtype::Errors::ResponseError.subclass_for_code(code)
|
|
515
|
+
raise error_class.new(response.body, code: code)
|
|
516
|
+
end
|
|
517
|
+
end
|
|
518
|
+
|
|
474
519
|
# Add a capability (flow or agent binding) to a product. Requires either flowId or agentId.
|
|
475
520
|
#
|
|
476
521
|
# @param request_options [Hash]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :limit, -> { String }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseData }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseData < Internal::Types::Model
|
|
7
|
+
field :agents, -> { Internal::Types::Array[Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItem] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :surfaces, -> { Internal::Types::Array[Runtype::Products::Types::GetV1ProductsIDActivityResponseDataSurfacesItem] }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/generated/lib/runtype/products/types/get_v1products_id_activity_response_data_agents_item.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataAgentsItem < Internal::Types::Model
|
|
7
|
+
field :agent_id, -> { String }, optional: false, nullable: false, api_name: "agentId"
|
|
8
|
+
|
|
9
|
+
field :data, -> { Internal::Types::Array[Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItem] }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :error, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemError }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :pagination, -> { Runtype::Types::Pagination }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataAgentsItemDataItem < Internal::Types::Model
|
|
7
|
+
field :agent_id, -> { String }, optional: false, nullable: true, api_name: "agentId"
|
|
8
|
+
|
|
9
|
+
field :agent_source, -> { String }, optional: false, nullable: true, api_name: "agentSource"
|
|
10
|
+
|
|
11
|
+
field :agent_spec, -> { Object }, optional: true, nullable: false, api_name: "agentSpec"
|
|
12
|
+
|
|
13
|
+
field :agent_target_resolution, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemAgentTargetResolution }, optional: false, nullable: false, api_name: "agentTargetResolution"
|
|
14
|
+
|
|
15
|
+
field :agent_version, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemAgentVersion }, optional: false, nullable: true, api_name: "agentVersion"
|
|
16
|
+
|
|
17
|
+
field :agent_version_id, -> { String }, optional: false, nullable: true, api_name: "agentVersionId"
|
|
18
|
+
|
|
19
|
+
field :budget_exhausted, -> { Internal::Types::Boolean }, optional: false, nullable: true, api_name: "budgetExhausted"
|
|
20
|
+
|
|
21
|
+
field :cancel_requested_at, -> { String }, optional: false, nullable: true, api_name: "cancelRequestedAt"
|
|
22
|
+
|
|
23
|
+
field :completed_at, -> { String }, optional: false, nullable: true, api_name: "completedAt"
|
|
24
|
+
|
|
25
|
+
field :conversation_id, -> { String }, optional: false, nullable: true, api_name: "conversationId"
|
|
26
|
+
|
|
27
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
28
|
+
|
|
29
|
+
field :execution_id, -> { String }, optional: false, nullable: false, api_name: "executionId"
|
|
30
|
+
|
|
31
|
+
field :execution_mode, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemExecutionMode }, optional: false, nullable: false, api_name: "executionMode"
|
|
32
|
+
|
|
33
|
+
field :expires_at, -> { String }, optional: false, nullable: true, api_name: "expiresAt"
|
|
34
|
+
|
|
35
|
+
field :final_output, -> { Object }, optional: true, nullable: false, api_name: "finalOutput"
|
|
36
|
+
|
|
37
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
38
|
+
|
|
39
|
+
field :input_messages, -> { Object }, optional: true, nullable: false, api_name: "inputMessages"
|
|
40
|
+
|
|
41
|
+
field :iterations, -> { Integer }, optional: false, nullable: true
|
|
42
|
+
|
|
43
|
+
field :last_heartbeat_at, -> { String }, optional: false, nullable: true, api_name: "lastHeartbeatAt"
|
|
44
|
+
|
|
45
|
+
field :notification_mode, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemNotificationMode }, optional: false, nullable: false, api_name: "notificationMode"
|
|
46
|
+
|
|
47
|
+
field :parent_agent_id, -> { String }, optional: false, nullable: true, api_name: "parentAgentId"
|
|
48
|
+
|
|
49
|
+
field :parent_conversation_id, -> { String }, optional: false, nullable: true, api_name: "parentConversationId"
|
|
50
|
+
|
|
51
|
+
field :parent_execution_id, -> { String }, optional: false, nullable: true, api_name: "parentExecutionId"
|
|
52
|
+
|
|
53
|
+
field :parent_tool_call_id, -> { String }, optional: false, nullable: true, api_name: "parentToolCallId"
|
|
54
|
+
|
|
55
|
+
field :pending_approval, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemPendingApproval }, optional: false, nullable: true, api_name: "pendingApproval"
|
|
56
|
+
|
|
57
|
+
field :progress, -> { Object }, optional: true, nullable: false
|
|
58
|
+
|
|
59
|
+
field :retry_of_execution_id, -> { String }, optional: false, nullable: true, api_name: "retryOfExecutionId"
|
|
60
|
+
|
|
61
|
+
field :root_execution_id, -> { String }, optional: false, nullable: true, api_name: "rootExecutionId"
|
|
62
|
+
|
|
63
|
+
field :started_at, -> { String }, optional: false, nullable: true, api_name: "startedAt"
|
|
64
|
+
|
|
65
|
+
field :status, -> { Runtype::Products::Types::GetV1ProductsIDActivityResponseDataAgentsItemDataItemStatus }, optional: false, nullable: false
|
|
66
|
+
|
|
67
|
+
field :stop_reason, -> { String }, optional: false, nullable: true, api_name: "stopReason"
|
|
68
|
+
|
|
69
|
+
field :surface_type, -> { String }, optional: false, nullable: true, api_name: "surfaceType"
|
|
70
|
+
|
|
71
|
+
field :total_cost, -> { String }, optional: false, nullable: true, api_name: "totalCost"
|
|
72
|
+
|
|
73
|
+
field :total_tokens, -> { Object }, optional: true, nullable: false, api_name: "totalTokens"
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1ProductsIDActivityResponseDataAgentsItemDataItemAgentTargetResolution
|
|
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 Products
|
|
5
|
+
module Types
|
|
6
|
+
# Version number and label for `agentVersionId`, joined from `agent_versions`. `null` exactly when
|
|
7
|
+
# `agentVersionId` is `null`.
|
|
8
|
+
class GetV1ProductsIDActivityResponseDataAgentsItemDataItemAgentVersion < 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
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1ProductsIDActivityResponseDataAgentsItemDataItemExecutionMode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
ATTACHED = "attached"
|
|
10
|
+
DETACHED = "detached"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
module GetV1ProductsIDActivityResponseDataAgentsItemDataItemNotificationMode
|
|
7
|
+
extend Runtype::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
NONE = "none"
|
|
10
|
+
NARRATE = "narrate"
|
|
11
|
+
REACT = "react"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Runtype
|
|
4
|
+
module Products
|
|
5
|
+
module Types
|
|
6
|
+
class GetV1ProductsIDActivityResponseDataAgentsItemDataItemPendingApproval < Internal::Types::Model
|
|
7
|
+
field :approval_id, -> { String }, optional: false, nullable: false, api_name: "approvalId"
|
|
8
|
+
|
|
9
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :parameters, -> { Object }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :requested_at, -> { String }, optional: false, nullable: false, api_name: "requestedAt"
|
|
16
|
+
|
|
17
|
+
field :timeout, -> { Integer }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :tool_call_id, -> { String }, optional: false, nullable: false, api_name: "toolCallId"
|
|
20
|
+
|
|
21
|
+
field :tool_name, -> { String }, optional: false, nullable: false, api_name: "toolName"
|
|
22
|
+
|
|
23
|
+
field :tool_type, -> { String }, optional: false, nullable: false, api_name: "toolType"
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|