acp-sdk 0.1.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 +7 -0
- data/CHANGELOG.md +11 -0
- data/LICENSE.txt +9 -0
- data/README.md +81 -0
- data/lib/acp/agent_connection/client.rb +39 -0
- data/lib/acp/agent_connection/optional_method.rb +28 -0
- data/lib/acp/agent_connection.rb +122 -0
- data/lib/acp/client_connection.rb +129 -0
- data/lib/acp/sdk.rb +13 -0
- data/lib/acp/transport/reply.rb +20 -0
- data/lib/acp/transport/response_error.rb +28 -0
- data/lib/acp/transport/result.rb +35 -0
- data/lib/acp/transport/stdio.rb +207 -0
- data/lib/acp/transport.rb +4 -0
- data/lib/acp/types/agent_auth_capabilities.rb +31 -0
- data/lib/acp/types/agent_capabilities.rb +72 -0
- data/lib/acp/types/annotations.rb +46 -0
- data/lib/acp/types/audio_content.rb +46 -0
- data/lib/acp/types/auth_capabilities.rb +31 -0
- data/lib/acp/types/auth_method/terminal.rb +66 -0
- data/lib/acp/types/auth_method.rb +20 -0
- data/lib/acp/types/auth_method_agent.rb +41 -0
- data/lib/acp/types/auth_method_terminal.rb +58 -0
- data/lib/acp/types/authenticate_request.rb +31 -0
- data/lib/acp/types/authenticate_response.rb +26 -0
- data/lib/acp/types/available_command.rb +46 -0
- data/lib/acp/types/available_command_input.rb +19 -0
- data/lib/acp/types/available_commands_update.rb +34 -0
- data/lib/acp/types/blob_resource_contents.rb +41 -0
- data/lib/acp/types/boolean_config_option_capabilities.rb +26 -0
- data/lib/acp/types/boolean_property_schema.rb +41 -0
- data/lib/acp/types/cancel_notification.rb +31 -0
- data/lib/acp/types/cancel_request_notification.rb +31 -0
- data/lib/acp/types/client_capabilities.rb +65 -0
- data/lib/acp/types/client_session_capabilities.rb +36 -0
- data/lib/acp/types/close_session_request.rb +31 -0
- data/lib/acp/types/close_session_response.rb +26 -0
- data/lib/acp/types/complete_elicitation_notification.rb +31 -0
- data/lib/acp/types/config_option_update.rb +34 -0
- data/lib/acp/types/content.rb +31 -0
- data/lib/acp/types/content_block/audio.rb +52 -0
- data/lib/acp/types/content_block/image.rb +59 -0
- data/lib/acp/types/content_block/resource.rb +40 -0
- data/lib/acp/types/content_block/resource_link.rb +80 -0
- data/lib/acp/types/content_block/text.rb +40 -0
- data/lib/acp/types/content_block.rb +26 -0
- data/lib/acp/types/content_chunk.rb +40 -0
- data/lib/acp/types/cost.rb +36 -0
- data/lib/acp/types/create_elicitation_request/mode/form.rb +34 -0
- data/lib/acp/types/create_elicitation_request/mode/url.rb +40 -0
- data/lib/acp/types/create_elicitation_request/mode.rb +20 -0
- data/lib/acp/types/create_elicitation_request.rb +40 -0
- data/lib/acp/types/create_elicitation_response/action/accept.rb +26 -0
- data/lib/acp/types/create_elicitation_response/action/cancel.rb +21 -0
- data/lib/acp/types/create_elicitation_response/action/decline.rb +21 -0
- data/lib/acp/types/create_elicitation_response/action.rb +22 -0
- data/lib/acp/types/create_elicitation_response.rb +31 -0
- data/lib/acp/types/create_terminal_request.rb +72 -0
- data/lib/acp/types/create_terminal_response.rb +31 -0
- data/lib/acp/types/current_mode_update.rb +31 -0
- data/lib/acp/types/delete_session_request.rb +31 -0
- data/lib/acp/types/delete_session_response.rb +26 -0
- data/lib/acp/types/diff.rb +41 -0
- data/lib/acp/types/elicitation_accept_action.rb +26 -0
- data/lib/acp/types/elicitation_capabilities.rb +40 -0
- data/lib/acp/types/elicitation_form_capabilities.rb +26 -0
- data/lib/acp/types/elicitation_form_mode/scope.rb +22 -0
- data/lib/acp/types/elicitation_form_mode.rb +34 -0
- data/lib/acp/types/elicitation_property_schema/boolean_property_schema.rb +47 -0
- data/lib/acp/types/elicitation_property_schema/integer_property_schema.rb +66 -0
- data/lib/acp/types/elicitation_property_schema/multi_select_property_schema.rb +73 -0
- data/lib/acp/types/elicitation_property_schema/number_property_schema.rb +66 -0
- data/lib/acp/types/elicitation_property_schema/string_property_schema.rb +105 -0
- data/lib/acp/types/elicitation_property_schema.rb +26 -0
- data/lib/acp/types/elicitation_request_scope.rb +26 -0
- data/lib/acp/types/elicitation_schema.rb +65 -0
- data/lib/acp/types/elicitation_schema_type.rb +7 -0
- data/lib/acp/types/elicitation_session_scope.rb +31 -0
- data/lib/acp/types/elicitation_url_capabilities.rb +26 -0
- data/lib/acp/types/elicitation_url_mode/scope.rb +22 -0
- data/lib/acp/types/elicitation_url_mode.rb +40 -0
- data/lib/acp/types/embedded_resource.rb +40 -0
- data/lib/acp/types/embedded_resource_resource.rb +22 -0
- data/lib/acp/types/enum_option.rb +41 -0
- data/lib/acp/types/env_variable.rb +36 -0
- data/lib/acp/types/file_system_capabilities.rb +36 -0
- data/lib/acp/types/http_header.rb +36 -0
- data/lib/acp/types/image_content.rb +58 -0
- data/lib/acp/types/implementation.rb +41 -0
- data/lib/acp/types/initialize_request.rb +51 -0
- data/lib/acp/types/initialize_response.rb +58 -0
- data/lib/acp/types/integer_property_schema.rb +65 -0
- data/lib/acp/types/kill_terminal_request.rb +36 -0
- data/lib/acp/types/kill_terminal_response.rb +26 -0
- data/lib/acp/types/list_sessions_request.rb +36 -0
- data/lib/acp/types/list_sessions_response.rb +40 -0
- data/lib/acp/types/load_session_request.rb +58 -0
- data/lib/acp/types/load_session_response.rb +40 -0
- data/lib/acp/types/logout_capabilities.rb +26 -0
- data/lib/acp/types/logout_request.rb +26 -0
- data/lib/acp/types/logout_response.rb +26 -0
- data/lib/acp/types/mcp_capabilities.rb +36 -0
- data/lib/acp/types/mcp_server/http.rb +46 -0
- data/lib/acp/types/mcp_server/sse.rb +46 -0
- data/lib/acp/types/mcp_server.rb +22 -0
- data/lib/acp/types/mcp_server_http.rb +46 -0
- data/lib/acp/types/mcp_server_sse.rb +46 -0
- data/lib/acp/types/mcp_server_stdio.rb +52 -0
- data/lib/acp/types/multi_select_items/string_multi_select_items.rb +31 -0
- data/lib/acp/types/multi_select_items.rb +20 -0
- data/lib/acp/types/multi_select_property_schema.rb +72 -0
- data/lib/acp/types/new_session_request.rb +51 -0
- data/lib/acp/types/new_session_response.rb +51 -0
- data/lib/acp/types/number_property_schema.rb +65 -0
- data/lib/acp/types/permission_option.rb +41 -0
- data/lib/acp/types/permission_option_kind.rb +10 -0
- data/lib/acp/types/plan.rb +31 -0
- data/lib/acp/types/plan_entry.rb +46 -0
- data/lib/acp/types/plan_entry_priority.rb +9 -0
- data/lib/acp/types/plan_entry_status.rb +9 -0
- data/lib/acp/types/prompt_capabilities.rb +41 -0
- data/lib/acp/types/prompt_request.rb +40 -0
- data/lib/acp/types/prompt_response.rb +31 -0
- data/lib/acp/types/read_text_file_request.rb +52 -0
- data/lib/acp/types/read_text_file_response.rb +31 -0
- data/lib/acp/types/release_terminal_request.rb +36 -0
- data/lib/acp/types/release_terminal_response.rb +26 -0
- data/lib/acp/types/request_permission_outcome/cancelled.rb +21 -0
- data/lib/acp/types/request_permission_outcome/selected.rb +31 -0
- data/lib/acp/types/request_permission_outcome.rb +20 -0
- data/lib/acp/types/request_permission_request.rb +51 -0
- data/lib/acp/types/request_permission_response.rb +31 -0
- data/lib/acp/types/resource_link.rb +79 -0
- data/lib/acp/types/resume_session_request.rb +58 -0
- data/lib/acp/types/resume_session_response.rb +40 -0
- data/lib/acp/types/role.rb +8 -0
- data/lib/acp/types/selected_permission_outcome.rb +31 -0
- data/lib/acp/types/session_additional_directories_capabilities.rb +26 -0
- data/lib/acp/types/session_capabilities.rb +67 -0
- data/lib/acp/types/session_close_capabilities.rb +26 -0
- data/lib/acp/types/session_config_boolean.rb +26 -0
- data/lib/acp/types/session_config_option/kind/boolean.rb +26 -0
- data/lib/acp/types/session_config_option/kind/select.rb +34 -0
- data/lib/acp/types/session_config_option/kind.rb +20 -0
- data/lib/acp/types/session_config_option.rb +64 -0
- data/lib/acp/types/session_config_option_category.rb +10 -0
- data/lib/acp/types/session_config_options_capabilities.rb +34 -0
- data/lib/acp/types/session_config_select.rb +34 -0
- data/lib/acp/types/session_config_select_group.rb +46 -0
- data/lib/acp/types/session_config_select_option.rb +41 -0
- data/lib/acp/types/session_config_select_options.rb +22 -0
- data/lib/acp/types/session_delete_capabilities.rb +26 -0
- data/lib/acp/types/session_info.rb +65 -0
- data/lib/acp/types/session_info_update.rb +38 -0
- data/lib/acp/types/session_list_capabilities.rb +26 -0
- data/lib/acp/types/session_list_request.rb +8 -0
- data/lib/acp/types/session_list_response.rb +8 -0
- data/lib/acp/types/session_load_request.rb +8 -0
- data/lib/acp/types/session_mode.rb +41 -0
- data/lib/acp/types/session_mode_state.rb +40 -0
- data/lib/acp/types/session_new_request.rb +8 -0
- data/lib/acp/types/session_notification.rb +40 -0
- data/lib/acp/types/session_prompt_request.rb +8 -0
- data/lib/acp/types/session_resume_capabilities.rb +26 -0
- data/lib/acp/types/session_update/agent_message_chunk.rb +45 -0
- data/lib/acp/types/session_update/agent_thought_chunk.rb +45 -0
- data/lib/acp/types/session_update/available_commands_update.rb +38 -0
- data/lib/acp/types/session_update/config_option_update.rb +38 -0
- data/lib/acp/types/session_update/current_mode_update.rb +31 -0
- data/lib/acp/types/session_update/plan.rb +31 -0
- data/lib/acp/types/session_update/session_info_update.rb +39 -0
- data/lib/acp/types/session_update/tool_call.rb +97 -0
- data/lib/acp/types/session_update/tool_call_update.rb +97 -0
- data/lib/acp/types/session_update/usage_update.rb +46 -0
- data/lib/acp/types/session_update/user_message_chunk.rb +45 -0
- data/lib/acp/types/session_update.rb +38 -0
- data/lib/acp/types/set_session_config_option_request/value/boolean.rb +26 -0
- data/lib/acp/types/set_session_config_option_request/value/value_id.rb +26 -0
- data/lib/acp/types/set_session_config_option_request/value.rb +20 -0
- data/lib/acp/types/set_session_config_option_request.rb +46 -0
- data/lib/acp/types/set_session_config_option_response.rb +34 -0
- data/lib/acp/types/set_session_mode_request.rb +36 -0
- data/lib/acp/types/set_session_mode_response.rb +26 -0
- data/lib/acp/types/stop_reason.rb +11 -0
- data/lib/acp/types/string_format.rb +10 -0
- data/lib/acp/types/string_multi_select_items.rb +31 -0
- data/lib/acp/types/string_property_schema.rb +104 -0
- data/lib/acp/types/terminal.rb +31 -0
- data/lib/acp/types/terminal_exit_status.rb +36 -0
- data/lib/acp/types/terminal_output_request.rb +36 -0
- data/lib/acp/types/terminal_output_response.rb +46 -0
- data/lib/acp/types/text_content.rb +40 -0
- data/lib/acp/types/text_resource_contents.rb +41 -0
- data/lib/acp/types/titled_multi_select_items.rb +31 -0
- data/lib/acp/types/tool_call.rb +96 -0
- data/lib/acp/types/tool_call_content/content.rb +31 -0
- data/lib/acp/types/tool_call_content/diff.rb +41 -0
- data/lib/acp/types/tool_call_content/terminal.rb +31 -0
- data/lib/acp/types/tool_call_content.rb +22 -0
- data/lib/acp/types/tool_call_location.rb +36 -0
- data/lib/acp/types/tool_call_status.rb +10 -0
- data/lib/acp/types/tool_call_update.rb +96 -0
- data/lib/acp/types/tool_kind.rb +16 -0
- data/lib/acp/types/unstructured_command_input.rb +31 -0
- data/lib/acp/types/usage_update.rb +46 -0
- data/lib/acp/types/wait_for_terminal_exit_request.rb +36 -0
- data/lib/acp/types/wait_for_terminal_exit_response.rb +36 -0
- data/lib/acp/types/write_text_file_request.rb +46 -0
- data/lib/acp/types/write_text_file_response.rb +26 -0
- data/lib/acp/version.rb +5 -0
- data/sig/generated/acp/agent_connection/client.rbs +29 -0
- data/sig/generated/acp/agent_connection/optional_method.rbs +21 -0
- data/sig/generated/acp/agent_connection.rbs +65 -0
- data/sig/generated/acp/client_connection.rbs +82 -0
- data/sig/generated/acp/sdk.rbs +2 -0
- data/sig/generated/acp/transport/reply.rbs +16 -0
- data/sig/generated/acp/transport/response_error.rbs +21 -0
- data/sig/generated/acp/transport/result.rbs +25 -0
- data/sig/generated/acp/transport/stdio.rbs +116 -0
- data/sig/generated/acp/transport.rbs +4 -0
- data/sig/generated/acp/types/agent_auth_capabilities.rbs +21 -0
- data/sig/generated/acp/types/agent_capabilities.rbs +37 -0
- data/sig/generated/acp/types/annotations.rbs +29 -0
- data/sig/generated/acp/types/audio_content.rbs +29 -0
- data/sig/generated/acp/types/auth_capabilities.rbs +21 -0
- data/sig/generated/acp/types/auth_method/terminal.rbs +37 -0
- data/sig/generated/acp/types/auth_method.rbs +9 -0
- data/sig/generated/acp/types/auth_method_agent.rbs +29 -0
- data/sig/generated/acp/types/auth_method_terminal.rbs +37 -0
- data/sig/generated/acp/types/authenticate_request.rbs +21 -0
- data/sig/generated/acp/types/authenticate_response.rbs +17 -0
- data/sig/generated/acp/types/available_command.rbs +29 -0
- data/sig/generated/acp/types/available_command_input.rbs +9 -0
- data/sig/generated/acp/types/available_commands_update.rbs +21 -0
- data/sig/generated/acp/types/blob_resource_contents.rbs +29 -0
- data/sig/generated/acp/types/boolean_config_option_capabilities.rbs +17 -0
- data/sig/generated/acp/types/boolean_property_schema.rbs +29 -0
- data/sig/generated/acp/types/cancel_notification.rbs +21 -0
- data/sig/generated/acp/types/cancel_request_notification.rbs +21 -0
- data/sig/generated/acp/types/client_capabilities.rbs +37 -0
- data/sig/generated/acp/types/client_session_capabilities.rbs +21 -0
- data/sig/generated/acp/types/close_session_request.rbs +21 -0
- data/sig/generated/acp/types/close_session_response.rbs +17 -0
- data/sig/generated/acp/types/complete_elicitation_notification.rbs +21 -0
- data/sig/generated/acp/types/config_option_update.rbs +21 -0
- data/sig/generated/acp/types/content.rbs +21 -0
- data/sig/generated/acp/types/content_block/audio.rbs +29 -0
- data/sig/generated/acp/types/content_block/image.rbs +33 -0
- data/sig/generated/acp/types/content_block/resource.rbs +25 -0
- data/sig/generated/acp/types/content_block/resource_link.rbs +45 -0
- data/sig/generated/acp/types/content_block/text.rbs +25 -0
- data/sig/generated/acp/types/content_block.rbs +9 -0
- data/sig/generated/acp/types/content_chunk.rbs +25 -0
- data/sig/generated/acp/types/cost.rbs +25 -0
- data/sig/generated/acp/types/create_elicitation_request/mode/form.rbs +21 -0
- data/sig/generated/acp/types/create_elicitation_request/mode/url.rbs +25 -0
- data/sig/generated/acp/types/create_elicitation_request/mode.rbs +9 -0
- data/sig/generated/acp/types/create_elicitation_request.rbs +25 -0
- data/sig/generated/acp/types/create_elicitation_response/action/accept.rbs +17 -0
- data/sig/generated/acp/types/create_elicitation_response/action/cancel.rbs +13 -0
- data/sig/generated/acp/types/create_elicitation_response/action/decline.rbs +13 -0
- data/sig/generated/acp/types/create_elicitation_response/action.rbs +9 -0
- data/sig/generated/acp/types/create_elicitation_response.rbs +21 -0
- data/sig/generated/acp/types/create_terminal_request.rbs +41 -0
- data/sig/generated/acp/types/create_terminal_response.rbs +21 -0
- data/sig/generated/acp/types/current_mode_update.rbs +21 -0
- data/sig/generated/acp/types/delete_session_request.rbs +21 -0
- data/sig/generated/acp/types/delete_session_response.rbs +17 -0
- data/sig/generated/acp/types/diff.rbs +29 -0
- data/sig/generated/acp/types/elicitation_accept_action.rbs +17 -0
- data/sig/generated/acp/types/elicitation_capabilities.rbs +25 -0
- data/sig/generated/acp/types/elicitation_form_capabilities.rbs +17 -0
- data/sig/generated/acp/types/elicitation_form_mode/scope.rbs +9 -0
- data/sig/generated/acp/types/elicitation_form_mode.rbs +21 -0
- data/sig/generated/acp/types/elicitation_property_schema/boolean_property_schema.rbs +29 -0
- data/sig/generated/acp/types/elicitation_property_schema/integer_property_schema.rbs +37 -0
- data/sig/generated/acp/types/elicitation_property_schema/multi_select_property_schema.rbs +41 -0
- data/sig/generated/acp/types/elicitation_property_schema/number_property_schema.rbs +37 -0
- data/sig/generated/acp/types/elicitation_property_schema/string_property_schema.rbs +53 -0
- data/sig/generated/acp/types/elicitation_property_schema.rbs +9 -0
- data/sig/generated/acp/types/elicitation_request_scope.rbs +17 -0
- data/sig/generated/acp/types/elicitation_schema.rbs +37 -0
- data/sig/generated/acp/types/elicitation_schema_type.rbs +5 -0
- data/sig/generated/acp/types/elicitation_session_scope.rbs +21 -0
- data/sig/generated/acp/types/elicitation_url_capabilities.rbs +17 -0
- data/sig/generated/acp/types/elicitation_url_mode/scope.rbs +9 -0
- data/sig/generated/acp/types/elicitation_url_mode.rbs +25 -0
- data/sig/generated/acp/types/embedded_resource.rbs +25 -0
- data/sig/generated/acp/types/embedded_resource_resource.rbs +9 -0
- data/sig/generated/acp/types/enum_option.rbs +29 -0
- data/sig/generated/acp/types/env_variable.rbs +25 -0
- data/sig/generated/acp/types/file_system_capabilities.rbs +25 -0
- data/sig/generated/acp/types/http_header.rbs +25 -0
- data/sig/generated/acp/types/image_content.rbs +33 -0
- data/sig/generated/acp/types/implementation.rbs +29 -0
- data/sig/generated/acp/types/initialize_request.rbs +29 -0
- data/sig/generated/acp/types/initialize_response.rbs +33 -0
- data/sig/generated/acp/types/integer_property_schema.rbs +37 -0
- data/sig/generated/acp/types/kill_terminal_request.rbs +25 -0
- data/sig/generated/acp/types/kill_terminal_response.rbs +17 -0
- data/sig/generated/acp/types/list_sessions_request.rbs +25 -0
- data/sig/generated/acp/types/list_sessions_response.rbs +25 -0
- data/sig/generated/acp/types/load_session_request.rbs +33 -0
- data/sig/generated/acp/types/load_session_response.rbs +25 -0
- data/sig/generated/acp/types/logout_capabilities.rbs +17 -0
- data/sig/generated/acp/types/logout_request.rbs +17 -0
- data/sig/generated/acp/types/logout_response.rbs +17 -0
- data/sig/generated/acp/types/mcp_capabilities.rbs +25 -0
- data/sig/generated/acp/types/mcp_server/http.rbs +29 -0
- data/sig/generated/acp/types/mcp_server/sse.rbs +29 -0
- data/sig/generated/acp/types/mcp_server.rbs +9 -0
- data/sig/generated/acp/types/mcp_server_http.rbs +29 -0
- data/sig/generated/acp/types/mcp_server_sse.rbs +29 -0
- data/sig/generated/acp/types/mcp_server_stdio.rbs +33 -0
- data/sig/generated/acp/types/multi_select_items/string_multi_select_items.rbs +21 -0
- data/sig/generated/acp/types/multi_select_items.rbs +9 -0
- data/sig/generated/acp/types/multi_select_property_schema.rbs +41 -0
- data/sig/generated/acp/types/new_session_request.rbs +29 -0
- data/sig/generated/acp/types/new_session_response.rbs +29 -0
- data/sig/generated/acp/types/number_property_schema.rbs +37 -0
- data/sig/generated/acp/types/permission_option.rbs +29 -0
- data/sig/generated/acp/types/permission_option_kind.rbs +11 -0
- data/sig/generated/acp/types/plan.rbs +21 -0
- data/sig/generated/acp/types/plan_entry.rbs +29 -0
- data/sig/generated/acp/types/plan_entry_priority.rbs +9 -0
- data/sig/generated/acp/types/plan_entry_status.rbs +9 -0
- data/sig/generated/acp/types/prompt_capabilities.rbs +29 -0
- data/sig/generated/acp/types/prompt_request.rbs +25 -0
- data/sig/generated/acp/types/prompt_response.rbs +21 -0
- data/sig/generated/acp/types/read_text_file_request.rbs +33 -0
- data/sig/generated/acp/types/read_text_file_response.rbs +21 -0
- data/sig/generated/acp/types/release_terminal_request.rbs +25 -0
- data/sig/generated/acp/types/release_terminal_response.rbs +17 -0
- data/sig/generated/acp/types/request_permission_outcome/cancelled.rbs +13 -0
- data/sig/generated/acp/types/request_permission_outcome/selected.rbs +21 -0
- data/sig/generated/acp/types/request_permission_outcome.rbs +9 -0
- data/sig/generated/acp/types/request_permission_request.rbs +29 -0
- data/sig/generated/acp/types/request_permission_response.rbs +21 -0
- data/sig/generated/acp/types/resource_link.rbs +45 -0
- data/sig/generated/acp/types/resume_session_request.rbs +33 -0
- data/sig/generated/acp/types/resume_session_response.rbs +25 -0
- data/sig/generated/acp/types/role.rbs +7 -0
- data/sig/generated/acp/types/selected_permission_outcome.rbs +21 -0
- data/sig/generated/acp/types/session_additional_directories_capabilities.rbs +17 -0
- data/sig/generated/acp/types/session_capabilities.rbs +37 -0
- data/sig/generated/acp/types/session_close_capabilities.rbs +17 -0
- data/sig/generated/acp/types/session_config_boolean.rbs +17 -0
- data/sig/generated/acp/types/session_config_option/kind/boolean.rbs +17 -0
- data/sig/generated/acp/types/session_config_option/kind/select.rbs +21 -0
- data/sig/generated/acp/types/session_config_option/kind.rbs +9 -0
- data/sig/generated/acp/types/session_config_option.rbs +37 -0
- data/sig/generated/acp/types/session_config_option_category.rbs +11 -0
- data/sig/generated/acp/types/session_config_options_capabilities.rbs +21 -0
- data/sig/generated/acp/types/session_config_select.rbs +21 -0
- data/sig/generated/acp/types/session_config_select_group.rbs +29 -0
- data/sig/generated/acp/types/session_config_select_option.rbs +29 -0
- data/sig/generated/acp/types/session_config_select_options.rbs +9 -0
- data/sig/generated/acp/types/session_delete_capabilities.rbs +17 -0
- data/sig/generated/acp/types/session_info.rbs +37 -0
- data/sig/generated/acp/types/session_info_update.rbs +25 -0
- data/sig/generated/acp/types/session_list_capabilities.rbs +17 -0
- data/sig/generated/acp/types/session_list_request.rbs +3 -0
- data/sig/generated/acp/types/session_list_response.rbs +3 -0
- data/sig/generated/acp/types/session_load_request.rbs +3 -0
- data/sig/generated/acp/types/session_mode.rbs +29 -0
- data/sig/generated/acp/types/session_mode_state.rbs +25 -0
- data/sig/generated/acp/types/session_new_request.rbs +3 -0
- data/sig/generated/acp/types/session_notification.rbs +25 -0
- data/sig/generated/acp/types/session_prompt_request.rbs +3 -0
- data/sig/generated/acp/types/session_resume_capabilities.rbs +17 -0
- data/sig/generated/acp/types/session_update/agent_message_chunk.rbs +25 -0
- data/sig/generated/acp/types/session_update/agent_thought_chunk.rbs +25 -0
- data/sig/generated/acp/types/session_update/available_commands_update.rbs +21 -0
- data/sig/generated/acp/types/session_update/config_option_update.rbs +21 -0
- data/sig/generated/acp/types/session_update/current_mode_update.rbs +21 -0
- data/sig/generated/acp/types/session_update/plan.rbs +21 -0
- data/sig/generated/acp/types/session_update/session_info_update.rbs +25 -0
- data/sig/generated/acp/types/session_update/tool_call.rbs +49 -0
- data/sig/generated/acp/types/session_update/tool_call_update.rbs +49 -0
- data/sig/generated/acp/types/session_update/usage_update.rbs +29 -0
- data/sig/generated/acp/types/session_update/user_message_chunk.rbs +25 -0
- data/sig/generated/acp/types/session_update.rbs +9 -0
- data/sig/generated/acp/types/set_session_config_option_request/value/boolean.rbs +17 -0
- data/sig/generated/acp/types/set_session_config_option_request/value/value_id.rbs +17 -0
- data/sig/generated/acp/types/set_session_config_option_request/value.rbs +9 -0
- data/sig/generated/acp/types/set_session_config_option_request.rbs +29 -0
- data/sig/generated/acp/types/set_session_config_option_response.rbs +21 -0
- data/sig/generated/acp/types/set_session_mode_request.rbs +25 -0
- data/sig/generated/acp/types/set_session_mode_response.rbs +17 -0
- data/sig/generated/acp/types/stop_reason.rbs +13 -0
- data/sig/generated/acp/types/string_format.rbs +11 -0
- data/sig/generated/acp/types/string_multi_select_items.rbs +21 -0
- data/sig/generated/acp/types/string_property_schema.rbs +53 -0
- data/sig/generated/acp/types/terminal.rbs +21 -0
- data/sig/generated/acp/types/terminal_exit_status.rbs +25 -0
- data/sig/generated/acp/types/terminal_output_request.rbs +25 -0
- data/sig/generated/acp/types/terminal_output_response.rbs +29 -0
- data/sig/generated/acp/types/text_content.rbs +25 -0
- data/sig/generated/acp/types/text_resource_contents.rbs +29 -0
- data/sig/generated/acp/types/titled_multi_select_items.rbs +21 -0
- data/sig/generated/acp/types/tool_call.rbs +49 -0
- data/sig/generated/acp/types/tool_call_content/content.rbs +21 -0
- data/sig/generated/acp/types/tool_call_content/diff.rbs +29 -0
- data/sig/generated/acp/types/tool_call_content/terminal.rbs +21 -0
- data/sig/generated/acp/types/tool_call_content.rbs +9 -0
- data/sig/generated/acp/types/tool_call_location.rbs +25 -0
- data/sig/generated/acp/types/tool_call_status.rbs +11 -0
- data/sig/generated/acp/types/tool_call_update.rbs +49 -0
- data/sig/generated/acp/types/tool_kind.rbs +23 -0
- data/sig/generated/acp/types/unstructured_command_input.rbs +21 -0
- data/sig/generated/acp/types/usage_update.rbs +29 -0
- data/sig/generated/acp/types/wait_for_terminal_exit_request.rbs +25 -0
- data/sig/generated/acp/types/wait_for_terminal_exit_response.rbs +25 -0
- data/sig/generated/acp/types/write_text_file_request.rbs +29 -0
- data/sig/generated/acp/types/write_text_file_response.rbs +17 -0
- data/sig/generated/acp/version.rbs +5 -0
- data/sig/manual/acp/agent_connection.rbs +52 -0
- data/sig/manual/acp/client_connection.rbs +13 -0
- data/sig/manual/acp/transport/stdio.rbs +18 -0
- data/sig/manual/acp/types.rbs +2 -0
- metadata +477 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_accept_action.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationAcceptAction
|
|
4
|
+
# @dynamic content
|
|
5
|
+
attr_reader content: Hash[String, String | Integer | Numeric | bool | Array[String]]?
|
|
6
|
+
|
|
7
|
+
# @rbs content: (Hash[String, String | Integer | Numeric | bool | Array[String]])?
|
|
8
|
+
# @rbs return: void
|
|
9
|
+
def initialize: (?content: Hash[String, String | Integer | Numeric | bool | Array[String]]?) -> void
|
|
10
|
+
|
|
11
|
+
# @rbs hash: Hash[String, untyped]
|
|
12
|
+
# @rbs return: ACP::Types::ElicitationAcceptAction
|
|
13
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationAcceptAction
|
|
14
|
+
|
|
15
|
+
# @rbs return: Hash[String, untyped]
|
|
16
|
+
def to_h: () -> Hash[String, untyped]
|
|
17
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_capabilities.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationCapabilities
|
|
4
|
+
# @dynamic form
|
|
5
|
+
attr_reader form: ACP::Types::ElicitationFormCapabilities?
|
|
6
|
+
|
|
7
|
+
# @dynamic url
|
|
8
|
+
attr_reader url: ACP::Types::ElicitationUrlCapabilities?
|
|
9
|
+
|
|
10
|
+
# @dynamic meta
|
|
11
|
+
attr_reader meta: Hash[String, untyped]?
|
|
12
|
+
|
|
13
|
+
# @rbs form: ACP::Types::ElicitationFormCapabilities?
|
|
14
|
+
# @rbs url: ACP::Types::ElicitationUrlCapabilities?
|
|
15
|
+
# @rbs meta: Hash[String, untyped]?
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def initialize: (?form: ACP::Types::ElicitationFormCapabilities?, ?url: ACP::Types::ElicitationUrlCapabilities?, ?meta: Hash[String, untyped]?) -> void
|
|
18
|
+
|
|
19
|
+
# @rbs hash: Hash[String, untyped]
|
|
20
|
+
# @rbs return: ACP::Types::ElicitationCapabilities
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationCapabilities
|
|
22
|
+
|
|
23
|
+
# @rbs return: Hash[String, untyped]
|
|
24
|
+
def to_h: () -> Hash[String, untyped]
|
|
25
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_form_capabilities.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationFormCapabilities
|
|
4
|
+
# @dynamic meta
|
|
5
|
+
attr_reader meta: Hash[String, untyped]?
|
|
6
|
+
|
|
7
|
+
# @rbs meta: Hash[String, untyped]?
|
|
8
|
+
# @rbs return: void
|
|
9
|
+
def initialize: (?meta: Hash[String, untyped]?) -> void
|
|
10
|
+
|
|
11
|
+
# @rbs hash: Hash[String, untyped]
|
|
12
|
+
# @rbs return: ACP::Types::ElicitationFormCapabilities
|
|
13
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationFormCapabilities
|
|
14
|
+
|
|
15
|
+
# @rbs return: Hash[String, untyped]
|
|
16
|
+
def to_h: () -> Hash[String, untyped]
|
|
17
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_form_mode/scope.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module ACP::Types::ElicitationFormMode::Scope
|
|
4
|
+
type t = ACP::Types::ElicitationSessionScope | ACP::Types::ElicitationRequestScope | Hash[String, untyped]
|
|
5
|
+
|
|
6
|
+
# @rbs hash: Hash[String, untyped]
|
|
7
|
+
# @rbs return: t
|
|
8
|
+
def self.from_h: (Hash[String, untyped] hash) -> t
|
|
9
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_form_mode.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationFormMode
|
|
4
|
+
# @dynamic requested_schema
|
|
5
|
+
attr_reader requested_schema: ACP::Types::ElicitationSchema
|
|
6
|
+
|
|
7
|
+
# @dynamic scope
|
|
8
|
+
attr_reader scope: ACP::Types::ElicitationFormMode::Scope::t
|
|
9
|
+
|
|
10
|
+
# @rbs requested_schema: ACP::Types::ElicitationSchema
|
|
11
|
+
# @rbs scope: ACP::Types::ElicitationFormMode::Scope::t
|
|
12
|
+
# @rbs return: void
|
|
13
|
+
def initialize: (requested_schema: ACP::Types::ElicitationSchema, scope: ACP::Types::ElicitationFormMode::Scope::t) -> void
|
|
14
|
+
|
|
15
|
+
# @rbs hash: Hash[String, untyped]
|
|
16
|
+
# @rbs return: ACP::Types::ElicitationFormMode
|
|
17
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationFormMode
|
|
18
|
+
|
|
19
|
+
# @rbs return: Hash[String, untyped]
|
|
20
|
+
def to_h: () -> Hash[String, untyped]
|
|
21
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_property_schema/boolean_property_schema.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationPropertySchema::BooleanPropertySchema
|
|
4
|
+
# @dynamic title
|
|
5
|
+
attr_reader title: String?
|
|
6
|
+
|
|
7
|
+
# @dynamic description
|
|
8
|
+
attr_reader description: String?
|
|
9
|
+
|
|
10
|
+
# @dynamic default
|
|
11
|
+
attr_reader default: bool?
|
|
12
|
+
|
|
13
|
+
# @dynamic meta
|
|
14
|
+
attr_reader meta: Hash[String, untyped]?
|
|
15
|
+
|
|
16
|
+
# @rbs title: String?
|
|
17
|
+
# @rbs description: String?
|
|
18
|
+
# @rbs default: bool?
|
|
19
|
+
# @rbs meta: Hash[String, untyped]?
|
|
20
|
+
# @rbs return: void
|
|
21
|
+
def initialize: (?title: String?, ?description: String?, ?default: bool?, ?meta: Hash[String, untyped]?) -> void
|
|
22
|
+
|
|
23
|
+
# @rbs hash: Hash[String, untyped]
|
|
24
|
+
# @rbs return: ACP::Types::ElicitationPropertySchema::BooleanPropertySchema
|
|
25
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationPropertySchema::BooleanPropertySchema
|
|
26
|
+
|
|
27
|
+
# @rbs return: Hash[String, untyped]
|
|
28
|
+
def to_h: () -> Hash[String, untyped]
|
|
29
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_property_schema/integer_property_schema.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationPropertySchema::IntegerPropertySchema
|
|
4
|
+
# @dynamic title
|
|
5
|
+
attr_reader title: String?
|
|
6
|
+
|
|
7
|
+
# @dynamic description
|
|
8
|
+
attr_reader description: String?
|
|
9
|
+
|
|
10
|
+
# @dynamic minimum
|
|
11
|
+
attr_reader minimum: Integer?
|
|
12
|
+
|
|
13
|
+
# @dynamic maximum
|
|
14
|
+
attr_reader maximum: Integer?
|
|
15
|
+
|
|
16
|
+
# @dynamic default
|
|
17
|
+
attr_reader default: Integer?
|
|
18
|
+
|
|
19
|
+
# @dynamic meta
|
|
20
|
+
attr_reader meta: Hash[String, untyped]?
|
|
21
|
+
|
|
22
|
+
# @rbs title: String?
|
|
23
|
+
# @rbs description: String?
|
|
24
|
+
# @rbs minimum: Integer?
|
|
25
|
+
# @rbs maximum: Integer?
|
|
26
|
+
# @rbs default: Integer?
|
|
27
|
+
# @rbs meta: Hash[String, untyped]?
|
|
28
|
+
# @rbs return: void
|
|
29
|
+
def initialize: (?title: String?, ?description: String?, ?minimum: Integer?, ?maximum: Integer?, ?default: Integer?, ?meta: Hash[String, untyped]?) -> void
|
|
30
|
+
|
|
31
|
+
# @rbs hash: Hash[String, untyped]
|
|
32
|
+
# @rbs return: ACP::Types::ElicitationPropertySchema::IntegerPropertySchema
|
|
33
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationPropertySchema::IntegerPropertySchema
|
|
34
|
+
|
|
35
|
+
# @rbs return: Hash[String, untyped]
|
|
36
|
+
def to_h: () -> Hash[String, untyped]
|
|
37
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_property_schema/multi_select_property_schema.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationPropertySchema::MultiSelectPropertySchema
|
|
4
|
+
# @dynamic title
|
|
5
|
+
attr_reader title: String?
|
|
6
|
+
|
|
7
|
+
# @dynamic description
|
|
8
|
+
attr_reader description: String?
|
|
9
|
+
|
|
10
|
+
# @dynamic min_items
|
|
11
|
+
attr_reader min_items: Integer?
|
|
12
|
+
|
|
13
|
+
# @dynamic max_items
|
|
14
|
+
attr_reader max_items: Integer?
|
|
15
|
+
|
|
16
|
+
# @dynamic items
|
|
17
|
+
attr_reader items: ACP::Types::MultiSelectItems::t
|
|
18
|
+
|
|
19
|
+
# @dynamic default
|
|
20
|
+
attr_reader default: Array[String]?
|
|
21
|
+
|
|
22
|
+
# @dynamic meta
|
|
23
|
+
attr_reader meta: Hash[String, untyped]?
|
|
24
|
+
|
|
25
|
+
# @rbs title: String?
|
|
26
|
+
# @rbs description: String?
|
|
27
|
+
# @rbs min_items: Integer?
|
|
28
|
+
# @rbs max_items: Integer?
|
|
29
|
+
# @rbs items: ACP::Types::MultiSelectItems::t
|
|
30
|
+
# @rbs default: Array[String]?
|
|
31
|
+
# @rbs meta: Hash[String, untyped]?
|
|
32
|
+
# @rbs return: void
|
|
33
|
+
def initialize: (items: ACP::Types::MultiSelectItems::t, ?title: String?, ?description: String?, ?min_items: Integer?, ?max_items: Integer?, ?default: Array[String]?, ?meta: Hash[String, untyped]?) -> void
|
|
34
|
+
|
|
35
|
+
# @rbs hash: Hash[String, untyped]
|
|
36
|
+
# @rbs return: ACP::Types::ElicitationPropertySchema::MultiSelectPropertySchema
|
|
37
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationPropertySchema::MultiSelectPropertySchema
|
|
38
|
+
|
|
39
|
+
# @rbs return: Hash[String, untyped]
|
|
40
|
+
def to_h: () -> Hash[String, untyped]
|
|
41
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_property_schema/number_property_schema.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationPropertySchema::NumberPropertySchema
|
|
4
|
+
# @dynamic title
|
|
5
|
+
attr_reader title: String?
|
|
6
|
+
|
|
7
|
+
# @dynamic description
|
|
8
|
+
attr_reader description: String?
|
|
9
|
+
|
|
10
|
+
# @dynamic minimum
|
|
11
|
+
attr_reader minimum: Numeric?
|
|
12
|
+
|
|
13
|
+
# @dynamic maximum
|
|
14
|
+
attr_reader maximum: Numeric?
|
|
15
|
+
|
|
16
|
+
# @dynamic default
|
|
17
|
+
attr_reader default: Numeric?
|
|
18
|
+
|
|
19
|
+
# @dynamic meta
|
|
20
|
+
attr_reader meta: Hash[String, untyped]?
|
|
21
|
+
|
|
22
|
+
# @rbs title: String?
|
|
23
|
+
# @rbs description: String?
|
|
24
|
+
# @rbs minimum: Numeric?
|
|
25
|
+
# @rbs maximum: Numeric?
|
|
26
|
+
# @rbs default: Numeric?
|
|
27
|
+
# @rbs meta: Hash[String, untyped]?
|
|
28
|
+
# @rbs return: void
|
|
29
|
+
def initialize: (?title: String?, ?description: String?, ?minimum: Numeric?, ?maximum: Numeric?, ?default: Numeric?, ?meta: Hash[String, untyped]?) -> void
|
|
30
|
+
|
|
31
|
+
# @rbs hash: Hash[String, untyped]
|
|
32
|
+
# @rbs return: ACP::Types::ElicitationPropertySchema::NumberPropertySchema
|
|
33
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationPropertySchema::NumberPropertySchema
|
|
34
|
+
|
|
35
|
+
# @rbs return: Hash[String, untyped]
|
|
36
|
+
def to_h: () -> Hash[String, untyped]
|
|
37
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_property_schema/string_property_schema.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationPropertySchema::StringPropertySchema
|
|
4
|
+
# @dynamic title
|
|
5
|
+
attr_reader title: String?
|
|
6
|
+
|
|
7
|
+
# @dynamic description
|
|
8
|
+
attr_reader description: String?
|
|
9
|
+
|
|
10
|
+
# @dynamic min_length
|
|
11
|
+
attr_reader min_length: Integer?
|
|
12
|
+
|
|
13
|
+
# @dynamic max_length
|
|
14
|
+
attr_reader max_length: Integer?
|
|
15
|
+
|
|
16
|
+
# @dynamic pattern
|
|
17
|
+
attr_reader pattern: String?
|
|
18
|
+
|
|
19
|
+
# @dynamic format
|
|
20
|
+
attr_reader format: String?
|
|
21
|
+
|
|
22
|
+
# @dynamic default
|
|
23
|
+
attr_reader default: String?
|
|
24
|
+
|
|
25
|
+
# @dynamic enum
|
|
26
|
+
attr_reader enum: Array[String]?
|
|
27
|
+
|
|
28
|
+
# @dynamic one_of
|
|
29
|
+
attr_reader one_of: Array[ACP::Types::EnumOption]?
|
|
30
|
+
|
|
31
|
+
# @dynamic meta
|
|
32
|
+
attr_reader meta: Hash[String, untyped]?
|
|
33
|
+
|
|
34
|
+
# @rbs title: String?
|
|
35
|
+
# @rbs description: String?
|
|
36
|
+
# @rbs min_length: Integer?
|
|
37
|
+
# @rbs max_length: Integer?
|
|
38
|
+
# @rbs pattern: String?
|
|
39
|
+
# @rbs format: String?
|
|
40
|
+
# @rbs default: String?
|
|
41
|
+
# @rbs enum: Array[String]?
|
|
42
|
+
# @rbs one_of: Array[ACP::Types::EnumOption]?
|
|
43
|
+
# @rbs meta: Hash[String, untyped]?
|
|
44
|
+
# @rbs return: void
|
|
45
|
+
def initialize: (?title: String?, ?description: String?, ?min_length: Integer?, ?max_length: Integer?, ?pattern: String?, ?format: String?, ?default: String?, ?enum: Array[String]?, ?one_of: Array[ACP::Types::EnumOption]?, ?meta: Hash[String, untyped]?) -> void
|
|
46
|
+
|
|
47
|
+
# @rbs hash: Hash[String, untyped]
|
|
48
|
+
# @rbs return: ACP::Types::ElicitationPropertySchema::StringPropertySchema
|
|
49
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationPropertySchema::StringPropertySchema
|
|
50
|
+
|
|
51
|
+
# @rbs return: Hash[String, untyped]
|
|
52
|
+
def to_h: () -> Hash[String, untyped]
|
|
53
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_property_schema.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module ACP::Types::ElicitationPropertySchema
|
|
4
|
+
type t = ACP::Types::ElicitationPropertySchema::StringPropertySchema | ACP::Types::ElicitationPropertySchema::NumberPropertySchema | ACP::Types::ElicitationPropertySchema::IntegerPropertySchema | ACP::Types::ElicitationPropertySchema::BooleanPropertySchema | ACP::Types::ElicitationPropertySchema::MultiSelectPropertySchema | Hash[String, untyped]
|
|
5
|
+
|
|
6
|
+
# @rbs hash: Hash[String, untyped]
|
|
7
|
+
# @rbs return: t
|
|
8
|
+
def self.from_h: (Hash[String, untyped] hash) -> t
|
|
9
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_request_scope.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationRequestScope
|
|
4
|
+
# @dynamic request_id
|
|
5
|
+
attr_reader request_id: nil | Integer | String
|
|
6
|
+
|
|
7
|
+
# @rbs request_id: nil | Integer | String
|
|
8
|
+
# @rbs return: void
|
|
9
|
+
def initialize: (request_id: nil | Integer | String) -> void
|
|
10
|
+
|
|
11
|
+
# @rbs hash: Hash[String, untyped]
|
|
12
|
+
# @rbs return: ACP::Types::ElicitationRequestScope
|
|
13
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationRequestScope
|
|
14
|
+
|
|
15
|
+
# @rbs return: Hash[String, untyped]
|
|
16
|
+
def to_h: () -> Hash[String, untyped]
|
|
17
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_schema.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationSchema
|
|
4
|
+
# @dynamic type
|
|
5
|
+
attr_reader type: String?
|
|
6
|
+
|
|
7
|
+
# @dynamic title
|
|
8
|
+
attr_reader title: String?
|
|
9
|
+
|
|
10
|
+
# @dynamic properties
|
|
11
|
+
attr_reader properties: Hash[String, ACP::Types::ElicitationPropertySchema::t]?
|
|
12
|
+
|
|
13
|
+
# @dynamic required
|
|
14
|
+
attr_reader required: Array[String]?
|
|
15
|
+
|
|
16
|
+
# @dynamic description
|
|
17
|
+
attr_reader description: String?
|
|
18
|
+
|
|
19
|
+
# @dynamic meta
|
|
20
|
+
attr_reader meta: Hash[String, untyped]?
|
|
21
|
+
|
|
22
|
+
# @rbs type: String?
|
|
23
|
+
# @rbs title: String?
|
|
24
|
+
# @rbs properties: Hash[String, ACP::Types::ElicitationPropertySchema::t]?
|
|
25
|
+
# @rbs required: Array[String]?
|
|
26
|
+
# @rbs description: String?
|
|
27
|
+
# @rbs meta: Hash[String, untyped]?
|
|
28
|
+
# @rbs return: void
|
|
29
|
+
def initialize: (?type: String?, ?title: String?, ?properties: Hash[String, ACP::Types::ElicitationPropertySchema::t]?, ?required: Array[String]?, ?description: String?, ?meta: Hash[String, untyped]?) -> void
|
|
30
|
+
|
|
31
|
+
# @rbs hash: Hash[String, untyped]
|
|
32
|
+
# @rbs return: ACP::Types::ElicitationSchema
|
|
33
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationSchema
|
|
34
|
+
|
|
35
|
+
# @rbs return: Hash[String, untyped]
|
|
36
|
+
def to_h: () -> Hash[String, untyped]
|
|
37
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_session_scope.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationSessionScope
|
|
4
|
+
# @dynamic session_id
|
|
5
|
+
attr_reader session_id: String
|
|
6
|
+
|
|
7
|
+
# @dynamic tool_call_id
|
|
8
|
+
attr_reader tool_call_id: String?
|
|
9
|
+
|
|
10
|
+
# @rbs session_id: String
|
|
11
|
+
# @rbs tool_call_id: String?
|
|
12
|
+
# @rbs return: void
|
|
13
|
+
def initialize: (session_id: String, ?tool_call_id: String?) -> void
|
|
14
|
+
|
|
15
|
+
# @rbs hash: Hash[String, untyped]
|
|
16
|
+
# @rbs return: ACP::Types::ElicitationSessionScope
|
|
17
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationSessionScope
|
|
18
|
+
|
|
19
|
+
# @rbs return: Hash[String, untyped]
|
|
20
|
+
def to_h: () -> Hash[String, untyped]
|
|
21
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_url_capabilities.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationUrlCapabilities
|
|
4
|
+
# @dynamic meta
|
|
5
|
+
attr_reader meta: Hash[String, untyped]?
|
|
6
|
+
|
|
7
|
+
# @rbs meta: Hash[String, untyped]?
|
|
8
|
+
# @rbs return: void
|
|
9
|
+
def initialize: (?meta: Hash[String, untyped]?) -> void
|
|
10
|
+
|
|
11
|
+
# @rbs hash: Hash[String, untyped]
|
|
12
|
+
# @rbs return: ACP::Types::ElicitationUrlCapabilities
|
|
13
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationUrlCapabilities
|
|
14
|
+
|
|
15
|
+
# @rbs return: Hash[String, untyped]
|
|
16
|
+
def to_h: () -> Hash[String, untyped]
|
|
17
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_url_mode/scope.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module ACP::Types::ElicitationUrlMode::Scope
|
|
4
|
+
type t = ACP::Types::ElicitationSessionScope | ACP::Types::ElicitationRequestScope | Hash[String, untyped]
|
|
5
|
+
|
|
6
|
+
# @rbs hash: Hash[String, untyped]
|
|
7
|
+
# @rbs return: t
|
|
8
|
+
def self.from_h: (Hash[String, untyped] hash) -> t
|
|
9
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated from lib/acp/types/elicitation_url_mode.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ElicitationUrlMode
|
|
4
|
+
# @dynamic elicitation_id
|
|
5
|
+
attr_reader elicitation_id: String
|
|
6
|
+
|
|
7
|
+
# @dynamic url
|
|
8
|
+
attr_reader url: String
|
|
9
|
+
|
|
10
|
+
# @dynamic scope
|
|
11
|
+
attr_reader scope: ACP::Types::ElicitationUrlMode::Scope::t
|
|
12
|
+
|
|
13
|
+
# @rbs elicitation_id: String
|
|
14
|
+
# @rbs url: String
|
|
15
|
+
# @rbs scope: ACP::Types::ElicitationUrlMode::Scope::t
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def initialize: (elicitation_id: String, url: String, scope: ACP::Types::ElicitationUrlMode::Scope::t) -> void
|
|
18
|
+
|
|
19
|
+
# @rbs hash: Hash[String, untyped]
|
|
20
|
+
# @rbs return: ACP::Types::ElicitationUrlMode
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationUrlMode
|
|
22
|
+
|
|
23
|
+
# @rbs return: Hash[String, untyped]
|
|
24
|
+
def to_h: () -> Hash[String, untyped]
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated from lib/acp/types/embedded_resource.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::EmbeddedResource
|
|
4
|
+
# @dynamic annotations
|
|
5
|
+
attr_reader annotations: ACP::Types::Annotations?
|
|
6
|
+
|
|
7
|
+
# @dynamic resource
|
|
8
|
+
attr_reader resource: ACP::Types::EmbeddedResourceResource::t
|
|
9
|
+
|
|
10
|
+
# @dynamic meta
|
|
11
|
+
attr_reader meta: Hash[String, untyped]?
|
|
12
|
+
|
|
13
|
+
# @rbs annotations: ACP::Types::Annotations?
|
|
14
|
+
# @rbs resource: ACP::Types::EmbeddedResourceResource::t
|
|
15
|
+
# @rbs meta: Hash[String, untyped]?
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def initialize: (resource: ACP::Types::EmbeddedResourceResource::t, ?annotations: ACP::Types::Annotations?, ?meta: Hash[String, untyped]?) -> void
|
|
18
|
+
|
|
19
|
+
# @rbs hash: Hash[String, untyped]
|
|
20
|
+
# @rbs return: ACP::Types::EmbeddedResource
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::EmbeddedResource
|
|
22
|
+
|
|
23
|
+
# @rbs return: Hash[String, untyped]
|
|
24
|
+
def to_h: () -> Hash[String, untyped]
|
|
25
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Generated from lib/acp/types/embedded_resource_resource.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module ACP::Types::EmbeddedResourceResource
|
|
4
|
+
type t = ACP::Types::TextResourceContents | ACP::Types::BlobResourceContents | Hash[String, untyped]
|
|
5
|
+
|
|
6
|
+
# @rbs hash: Hash[String, untyped]
|
|
7
|
+
# @rbs return: t
|
|
8
|
+
def self.from_h: (Hash[String, untyped] hash) -> t
|
|
9
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated from lib/acp/types/enum_option.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::EnumOption
|
|
4
|
+
# @dynamic const
|
|
5
|
+
attr_reader const: String
|
|
6
|
+
|
|
7
|
+
# @dynamic title
|
|
8
|
+
attr_reader title: String
|
|
9
|
+
|
|
10
|
+
# @dynamic description
|
|
11
|
+
attr_reader description: String?
|
|
12
|
+
|
|
13
|
+
# @dynamic meta
|
|
14
|
+
attr_reader meta: Hash[String, untyped]?
|
|
15
|
+
|
|
16
|
+
# @rbs const: String
|
|
17
|
+
# @rbs title: String
|
|
18
|
+
# @rbs description: String?
|
|
19
|
+
# @rbs meta: Hash[String, untyped]?
|
|
20
|
+
# @rbs return: void
|
|
21
|
+
def initialize: (const: String, title: String, ?description: String?, ?meta: Hash[String, untyped]?) -> void
|
|
22
|
+
|
|
23
|
+
# @rbs hash: Hash[String, untyped]
|
|
24
|
+
# @rbs return: ACP::Types::EnumOption
|
|
25
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::EnumOption
|
|
26
|
+
|
|
27
|
+
# @rbs return: Hash[String, untyped]
|
|
28
|
+
def to_h: () -> Hash[String, untyped]
|
|
29
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated from lib/acp/types/env_variable.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::EnvVariable
|
|
4
|
+
# @dynamic name
|
|
5
|
+
attr_reader name: String
|
|
6
|
+
|
|
7
|
+
# @dynamic value
|
|
8
|
+
attr_reader value: String
|
|
9
|
+
|
|
10
|
+
# @dynamic meta
|
|
11
|
+
attr_reader meta: Hash[String, untyped]?
|
|
12
|
+
|
|
13
|
+
# @rbs name: String
|
|
14
|
+
# @rbs value: String
|
|
15
|
+
# @rbs meta: Hash[String, untyped]?
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def initialize: (name: String, value: String, ?meta: Hash[String, untyped]?) -> void
|
|
18
|
+
|
|
19
|
+
# @rbs hash: Hash[String, untyped]
|
|
20
|
+
# @rbs return: ACP::Types::EnvVariable
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::EnvVariable
|
|
22
|
+
|
|
23
|
+
# @rbs return: Hash[String, untyped]
|
|
24
|
+
def to_h: () -> Hash[String, untyped]
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated from lib/acp/types/file_system_capabilities.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::FileSystemCapabilities
|
|
4
|
+
# @dynamic read_text_file
|
|
5
|
+
attr_reader read_text_file: bool?
|
|
6
|
+
|
|
7
|
+
# @dynamic write_text_file
|
|
8
|
+
attr_reader write_text_file: bool?
|
|
9
|
+
|
|
10
|
+
# @dynamic meta
|
|
11
|
+
attr_reader meta: Hash[String, untyped]?
|
|
12
|
+
|
|
13
|
+
# @rbs read_text_file: bool?
|
|
14
|
+
# @rbs write_text_file: bool?
|
|
15
|
+
# @rbs meta: Hash[String, untyped]?
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def initialize: (?read_text_file: bool?, ?write_text_file: bool?, ?meta: Hash[String, untyped]?) -> void
|
|
18
|
+
|
|
19
|
+
# @rbs hash: Hash[String, untyped]
|
|
20
|
+
# @rbs return: ACP::Types::FileSystemCapabilities
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::FileSystemCapabilities
|
|
22
|
+
|
|
23
|
+
# @rbs return: Hash[String, untyped]
|
|
24
|
+
def to_h: () -> Hash[String, untyped]
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated from lib/acp/types/http_header.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::HttpHeader
|
|
4
|
+
# @dynamic name
|
|
5
|
+
attr_reader name: String
|
|
6
|
+
|
|
7
|
+
# @dynamic value
|
|
8
|
+
attr_reader value: String
|
|
9
|
+
|
|
10
|
+
# @dynamic meta
|
|
11
|
+
attr_reader meta: Hash[String, untyped]?
|
|
12
|
+
|
|
13
|
+
# @rbs name: String
|
|
14
|
+
# @rbs value: String
|
|
15
|
+
# @rbs meta: Hash[String, untyped]?
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def initialize: (name: String, value: String, ?meta: Hash[String, untyped]?) -> void
|
|
18
|
+
|
|
19
|
+
# @rbs hash: Hash[String, untyped]
|
|
20
|
+
# @rbs return: ACP::Types::HttpHeader
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::HttpHeader
|
|
22
|
+
|
|
23
|
+
# @rbs return: Hash[String, untyped]
|
|
24
|
+
def to_h: () -> Hash[String, untyped]
|
|
25
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Generated from lib/acp/types/image_content.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ImageContent
|
|
4
|
+
# @dynamic annotations
|
|
5
|
+
attr_reader annotations: ACP::Types::Annotations?
|
|
6
|
+
|
|
7
|
+
# @dynamic data
|
|
8
|
+
attr_reader data: String
|
|
9
|
+
|
|
10
|
+
# @dynamic mime_type
|
|
11
|
+
attr_reader mime_type: String
|
|
12
|
+
|
|
13
|
+
# @dynamic uri
|
|
14
|
+
attr_reader uri: String?
|
|
15
|
+
|
|
16
|
+
# @dynamic meta
|
|
17
|
+
attr_reader meta: Hash[String, untyped]?
|
|
18
|
+
|
|
19
|
+
# @rbs annotations: ACP::Types::Annotations?
|
|
20
|
+
# @rbs data: String
|
|
21
|
+
# @rbs mime_type: String
|
|
22
|
+
# @rbs uri: String?
|
|
23
|
+
# @rbs meta: Hash[String, untyped]?
|
|
24
|
+
# @rbs return: void
|
|
25
|
+
def initialize: (data: String, mime_type: String, ?annotations: ACP::Types::Annotations?, ?uri: String?, ?meta: Hash[String, untyped]?) -> void
|
|
26
|
+
|
|
27
|
+
# @rbs hash: Hash[String, untyped]
|
|
28
|
+
# @rbs return: ACP::Types::ImageContent
|
|
29
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ImageContent
|
|
30
|
+
|
|
31
|
+
# @rbs return: Hash[String, untyped]
|
|
32
|
+
def to_h: () -> Hash[String, untyped]
|
|
33
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated from lib/acp/types/implementation.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::Implementation
|
|
4
|
+
# @dynamic name
|
|
5
|
+
attr_reader name: String
|
|
6
|
+
|
|
7
|
+
# @dynamic title
|
|
8
|
+
attr_reader title: String?
|
|
9
|
+
|
|
10
|
+
# @dynamic version
|
|
11
|
+
attr_reader version: String
|
|
12
|
+
|
|
13
|
+
# @dynamic meta
|
|
14
|
+
attr_reader meta: Hash[String, untyped]?
|
|
15
|
+
|
|
16
|
+
# @rbs name: String
|
|
17
|
+
# @rbs title: String?
|
|
18
|
+
# @rbs version: String
|
|
19
|
+
# @rbs meta: Hash[String, untyped]?
|
|
20
|
+
# @rbs return: void
|
|
21
|
+
def initialize: (name: String, version: String, ?title: String?, ?meta: Hash[String, untyped]?) -> void
|
|
22
|
+
|
|
23
|
+
# @rbs hash: Hash[String, untyped]
|
|
24
|
+
# @rbs return: ACP::Types::Implementation
|
|
25
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Implementation
|
|
26
|
+
|
|
27
|
+
# @rbs return: Hash[String, untyped]
|
|
28
|
+
def to_h: () -> Hash[String, untyped]
|
|
29
|
+
end
|