arkruntime 0.6.0__tar.gz → 0.9.0__tar.gz
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.
- {arkruntime-0.6.0/src/arkruntime.egg-info → arkruntime-0.9.0}/PKG-INFO +71 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/README.md +68 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/THIRD_PARTY_NOTICES.md +4 -3
- {arkruntime-0.6.0 → arkruntime-0.9.0}/pyproject.toml +5 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_base_client.py +42 -7
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_client.py +2 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_managed_agents_serialize.py +1 -1
- arkruntime-0.9.0/src/arkruntime/mcp.py +197 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/environments/work.py +4 -4
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/files/files.py +11 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/skills/skills.py +59 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/selfhosted/__init__.py +12 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/selfhosted/client.py +31 -11
- arkruntime-0.9.0/src/arkruntime/selfhosted/mcp.py +351 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/selfhosted/session_tool_runner.py +71 -4
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/selfhosted/tool_result_store.py +10 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/selfhosted/types.py +23 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/selfhosted/worker.py +26 -15
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/agent.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/agent_skill_ref.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/model_config.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/skill_ref_type.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/__init__.py +21 -4
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_image.py +5 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_image_param.py +3 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_request.py +7 -7
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_request_assistant_message.py +6 -4
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_request_assistant_message_param.py +8 -6
- arkruntime-0.6.0/src/arkruntime/types/chat/chat_completion_request_tool_message.py → arkruntime-0.9.0/src/arkruntime/types/chat/chat_completion_request_developer_message.py +7 -7
- arkruntime-0.9.0/src/arkruntime/types/chat/chat_completion_request_developer_message_param.py +27 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_request_message.py +4 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_request_message_param.py +4 -0
- arkruntime-0.9.0/src/arkruntime/types/chat/chat_completion_request_message_tool_call.py +32 -0
- arkruntime-0.9.0/src/arkruntime/types/chat/chat_completion_request_message_tool_call_function.py +23 -0
- arkruntime-0.6.0/src/arkruntime/types/chat/chat_completion_message_tool_call_function_param.py → arkruntime-0.9.0/src/arkruntime/types/chat/chat_completion_request_message_tool_call_function_param.py +6 -6
- arkruntime-0.9.0/src/arkruntime/types/chat/chat_completion_request_message_tool_call_param.py +30 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_request_param.py +7 -7
- arkruntime-0.9.0/src/arkruntime/types/chat/chat_completion_request_tool_message.py +31 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_request_tool_message_param.py +11 -5
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_request_user_message.py +3 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_request_user_message_param.py +5 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_response_format.py +1 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_response_format_json_schema.py +4 -5
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_response_format_json_schema_param.py +4 -7
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_response_format_param.py +1 -4
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_stop.py +4 -2
- arkruntime-0.9.0/src/arkruntime/types/chat/chat_completion_stop_param.py +13 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_token_logprob.py +4 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_token_logprob_top_logprob.py +5 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/completion_tokens_details.py +6 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/prompt_tokens_details.py +4 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/request_service_tier.py +1 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/response_service_tier.py +1 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/environment.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/__init__.py +3 -0
- arkruntime-0.9.0/src/arkruntime/types/file/description.py +15 -0
- arkruntime-0.6.0/src/arkruntime/types/chat/chat_completion_stop_param.py → arkruntime-0.9.0/src/arkruntime/types/file/description_param.py +5 -3
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/file_create_request.py +13 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/file_create_request_param.py +13 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/file_object.py +10 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/purpose.py +1 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/memory.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/memory_store.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/__init__.py +64 -14
- arkruntime-0.9.0/src/arkruntime/types/messages/content_block_start_content_block.py +40 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/content_block_start_content_block_server_tool_use.py +18 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/content_block_start_content_block_text.py +16 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/content_block_start_content_block_thinking.py +16 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/content_block_start_content_block_tool_use.py +18 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/content_block_start_content_block_web_search_tool_result.py +25 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_content_part_document_source.py +38 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_content_part_document_source_base64.py +22 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_content_part_document_source_content.py +18 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_content_part_document_source_text.py +22 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_content_part_document_source_url.py +19 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_content_part_server_tool_use.py +9 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_content_part_thinking.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_content_part_tool_result.py +4 -4
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_content_part_tool_use.py +3 -3
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_content_part_web_search_tool_result.py +8 -1
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_context_management_clear_tool_uses_trigger.py +25 -0
- arkruntime-0.6.0/src/arkruntime/types/messages/messages_context_management_clear_tool_uses.py → arkruntime-0.9.0/src/arkruntime/types/messages/messages_context_management_edit.py +18 -3
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_context_management_keep_all.py +2 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_context_management_keep_thinking_turns.py +2 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_context_management_keep_tool_uses.py +2 -2
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_document_content.py +20 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_document_content_parts.py +19 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_document_content_text.py +14 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_frequency_penalty.py +14 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_iteration_usage.py +2 -2
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_logit_bias_value.py +14 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_max_tokens.py +12 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_max_uses.py +12 -0
- arkruntime-0.6.0/src/arkruntime/types/messages/messages_context_management_edit.py → arkruntime-0.9.0/src/arkruntime/types/messages/messages_output_format.py +8 -10
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_output_format_json_object.py +19 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_output_format_json_schema.py +22 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_output_format_text.py +19 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_presence_penalty.py +14 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_repetition_penalty.py +14 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_request.py +24 -13
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_request_message.py +9 -3
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_request_service_tier.py +2 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_stream_message_start_message.py +3 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_role.py +16 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_stop_sequences.py +6 -3
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_temperature.py +14 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_tool.py +10 -5
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_tool_choice_tool.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_tool_user_location.py +4 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_top_logprobs.py +14 -0
- arkruntime-0.9.0/src/arkruntime/types/messages/messages_top_p.py +12 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_usage.py +6 -2
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_web_search_result.py +3 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_web_search_tool_result_error.py +4 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/__init__.py +24 -0
- arkruntime-0.9.0/src/arkruntime/types/session/checkpoint_component.py +50 -0
- arkruntime-0.9.0/src/arkruntime/types/session/checkpoint_component_status.py +20 -0
- arkruntime-0.9.0/src/arkruntime/types/session/checkpoint_restore_config.py +33 -0
- arkruntime-0.9.0/src/arkruntime/types/session/checkpoint_session_snapshot.py +49 -0
- arkruntime-0.9.0/src/arkruntime/types/session/checkpoint_status.py +21 -0
- arkruntime-0.9.0/src/arkruntime/types/session/create_session_checkpoint_request.py +21 -0
- arkruntime-0.9.0/src/arkruntime/types/session/create_session_checkpoint_response.py +22 -0
- arkruntime-0.9.0/src/arkruntime/types/session/create_session_request.py +79 -0
- arkruntime-0.9.0/src/arkruntime/types/session/delete_session_checkpoint_response.py +26 -0
- arkruntime-0.9.0/src/arkruntime/types/session/get_session_checkpoint_response.py +22 -0
- arkruntime-0.9.0/src/arkruntime/types/session/list_session_checkpoints_response.py +28 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_session_event.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_user_define_outcome_event_params.py +1 -3
- arkruntime-0.9.0/src/arkruntime/types/session/model_overrides.py +79 -0
- arkruntime-0.9.0/src/arkruntime/types/session/override_token_limits.py +37 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/session.py +1 -1
- arkruntime-0.9.0/src/arkruntime/types/session/session_checkpoint.py +74 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/session_resource.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/skill/__init__.py +4 -0
- arkruntime-0.9.0/src/arkruntime/types/skill/create_skill_request.py +38 -0
- arkruntime-0.9.0/src/arkruntime/types/skill/create_skill_version_request.py +32 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/skill/skill.py +1 -1
- arkruntime-0.9.0/src/arkruntime/types/skill/skill_version.py +49 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/credential.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/vault.py +1 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0/src/arkruntime.egg-info}/PKG-INFO +71 -1
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime.egg-info/SOURCES.txt +48 -7
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime.egg-info/requires.txt +5 -0
- arkruntime-0.6.0/src/arkruntime/types/chat/chat_completion_message_tool_call_param.py +0 -26
- arkruntime-0.6.0/src/arkruntime/types/messages/content.py +0 -15
- arkruntime-0.6.0/src/arkruntime/types/messages/content_block_start_content_block.py +0 -36
- arkruntime-0.6.0/src/arkruntime/types/messages/messages_content_part_document_source.py +0 -33
- arkruntime-0.6.0/src/arkruntime/types/messages/messages_context_management_clear_thinking.py +0 -18
- arkruntime-0.6.0/src/arkruntime/types/messages/messages_context_management_clear_tool_uses_trigger.py +0 -16
- arkruntime-0.6.0/src/arkruntime/types/messages/messages_document_source_type.py +0 -16
- arkruntime-0.6.0/src/arkruntime/types/messages/messages_output_format.py +0 -27
- arkruntime-0.6.0/src/arkruntime/types/messages/messages_output_format_type.py +0 -15
- arkruntime-0.6.0/src/arkruntime/types/messages/messages_role.py +0 -15
- arkruntime-0.6.0/src/arkruntime/types/session/create_session_request.py +0 -55
- arkruntime-0.6.0/src/arkruntime/types/session/model_overrides.py +0 -42
- arkruntime-0.6.0/src/arkruntime/types/skill/create_skill_request.py +0 -22
- {arkruntime-0.6.0 → arkruntime-0.9.0}/LICENSE +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/MANIFEST.in +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/setup.cfg +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_compat.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_constants.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_exceptions.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_files.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_legacy_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_models.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_qs.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_request_options.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_resource.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_streaming.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_types.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_utils/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_utils/_key_agreement.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_utils/_logs.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_utils/_model_breaker.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_utils/_streams.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_utils/_transform.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_utils/_typing.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_utils/_utils.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/_version.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/_parsing/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/_parsing/_completions.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/_parsing/_responses.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/_pydantic.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/_tools.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/streaming/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/streaming/_deltas.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/streaming/chat/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/streaming/chat/_completions.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/streaming/chat/_events.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/common/streaming/chat/_types.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/pagination.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/agents/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/agents/agents.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/batch/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/batch/_utils.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/batch/batch.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/batch/chat/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/batch/chat/chat.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/batch/chat/completions.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/batch/embeddings.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/batch/multimodal_embeddings.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/beta/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/beta/beta.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/beta/chat/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/beta/chat/chat.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/beta/chat/completions.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/chat/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/chat/chat.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/chat/completions.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/content_generation/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/content_generation/content_generation.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/content_generation/tasks.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/embeddings/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/embeddings/embeddings.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/encryption.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/environments/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/environments/environments.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/files/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/images/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/images/images.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/memory_stores/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/memory_stores/memories.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/memory_stores/memory_stores.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/multimodal_embeddings/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/multimodal_embeddings/multimodal_embeddings.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/responses/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/responses/input_items.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/responses/responses.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/sessions/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/sessions/session_events.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/sessions/session_resources.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/sessions/session_threads.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/sessions/sessions.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/skills/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/tokenization/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/tokenization/tokenization.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/vaults/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/vaults/credentials.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/resources/vaults/vaults.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/selfhosted/envinit.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/selfhosted/tools.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/agent_ref.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/agent_ref_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/create_agent_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/custom_tool_input_schema.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/delete_agent_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/list_agents_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/mcp_server.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/mcp_server_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/model_speed.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/multiagent_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/multiagent_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/permission_policy.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/permission_policy_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/tag.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/token_limits.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/tool_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/tool_default_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/tool_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/agent/update_agent_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_choice_logprobs.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_audio.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_audio_input_audio.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_audio_input_audio_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_audio_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_file.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_file_file.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_file_file_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_file_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_image_image_url.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_image_image_url_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_text.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_text_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_video.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_video_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_video_video_url.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_content_part_video_video_url_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_message_content.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_message_content_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_message_tool_call.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_message_tool_call_chunk.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_message_tool_call_chunk_function.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_message_tool_call_function.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_named_tool_choice.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_named_tool_choice_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_request_system_message.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_request_system_message_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_response_choice.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_response_message.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_role.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_service_status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_stream_choice_logprobs.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_stream_options.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_stream_options_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_stream_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_stream_response_choice.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_stream_response_delta.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_tool.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_tool_choice.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_tool_choice_function.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_tool_choice_function_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_tool_choice_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/chat_completion_tool_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/completion_usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/error.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/error_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/finish_reason.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/function_object.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/function_object_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/image_detail.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/image_pixel_limit.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/image_pixel_limit_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/model_fallback_status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/moderation_hit_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/parsed_chat_completion_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/parsed_function_tool_call_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/reasoning_effort.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/response_format_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/thinking.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/thinking_mode.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/thinking_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/tool_choice_mode.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/tool_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/tool_type_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/video_image_pixel_limit.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/chat/video_image_pixel_limit_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/completion_usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/audio_role.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/audio_url.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/audio_url_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/content_generation_task.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/content_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/content_item_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/content_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/create_content_generation_task_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/create_content_generation_task_request_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/create_content_generation_task_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/draft_task.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/draft_task_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/image_role.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/image_url.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/image_url_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/list_content_generation_tasks_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/reasoning_effort.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/task_content.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/task_error.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/task_status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/task_usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/tool.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/tool_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/tool_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/tool_type_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/tool_usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/video_role.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/video_url.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/content_generation/video_url_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/embedding/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/embedding/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/embedding/embedding.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/embedding/embedding_input.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/embedding/embedding_input_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/embedding/embedding_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/embedding/embedding_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/embedding/embedding_request_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/embedding/embedding_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/embedding/embedding_usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/embedding/encoding_format.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/create_environment_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/delete_environment_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/env_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/env_config_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/environment_scope.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/environment_with_overrides.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/heartbeat_work_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/list_environments_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/networking_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/networking_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/packages_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/poll_work_empty_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/stop_work_body.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/tos_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/update_environment_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/volc_tag.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/work_data.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/work_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/environment/work_state.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/file_deleted.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/file_error.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/file_list_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/order.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/preprocess_configs.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/preprocess_configs_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/tos_storage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/tos_storage_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/video.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/file/video_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/background.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/bounding_box.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/create_image_generation_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/create_image_generation_request_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/image_data_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/image_error.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/image_generation_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/image_generation_stream_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/image_generation_stream_event_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/optimize_prompt_mode.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/optimize_prompt_options.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/optimize_prompt_options_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/output_format.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/response_format.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/sequential_image_generation_mode.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/sequential_image_generation_options.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/sequential_image_generation_options_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/tool.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/tool_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/tool_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/tool_type_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/tool_usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/images/usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/actor.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/actor_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/create_memory_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/create_memory_store_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/delete_memory_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/delete_memory_store_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/list_memories_order_by.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/list_memories_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/list_memory_stores_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/memory_list_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/memory_list_item_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/update_memory_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/memory/update_memory_store_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/content_block_start.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/count_tokens_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/error.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_content_part.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_content_part_document.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_content_part_image.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_content_part_image_source.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_content_part_text.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_content_part_tool_reference.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_context_management.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_context_management_keep.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_context_management_keep_parameter.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_error_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_image_source_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_message_content.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_metadata.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_output_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_block.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_block_delta.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_block_delta_signature.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_block_delta_text.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_block_delta_thinking.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_block_delta_tool_use.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_block_stop.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_part.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_part_server_tool_use.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_part_text.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_part_thinking.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_part_tool_use.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_content_part_web_search_tool_result.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_stop_reason.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_stream_message_delta.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_stream_message_delta_delta.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_stream_message_start.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_response_stream_message_stop.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_server_tool_caller.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_server_tool_usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_service_status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_stream_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_stream_options.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_system.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_system_text_part.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_thinking.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_tool_choice.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_tool_choice_any.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_tool_choice_auto.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_tool_choice_none.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_tool_result_content.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_tool_result_content_part.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/messages_web_search_tool_result_content.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/messages/model_fallback_status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/embedding.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/embedding_data_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/embedding_input.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/embedding_input_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/embedding_input_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/embedding_object.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/embedding_usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/encoding_format.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/image_url.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/image_url_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/multi_embedding_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/multi_embedding_config_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/multi_embedding_mode.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/multi_modal_embedding_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/multi_modal_embedding_request_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/multi_modal_embedding_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/prompt_tokens_details.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/sparse_embedding_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/sparse_embedding_config_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/sparse_embedding_mode.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/sparse_embedding_value.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/video_url.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/multimodal_embedding/video_url_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/annotation.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/annotation_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/applied_edit.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/audio_chunk.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/audio_chunking_strategy.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/audio_chunking_strategy_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/cache_mode.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/clear_thinking.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/clear_thinking_keep.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/clear_thinking_keep_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/clear_thinking_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/clear_thinking_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/clear_tool_uses.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/clear_tool_uses_inputs.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/clear_tool_uses_inputs_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/clear_tool_uses_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/clear_tool_uses_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_filter.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item_audio.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item_audio_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item_file.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item_file_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item_image.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item_image_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item_text.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item_text_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item_video.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/content_item_video_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/context_management.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/context_management_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/context_management_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/cover_image.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/cover_image_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/delete_response_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doc_citation.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doc_citation_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_call_block.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_call_block_output_text.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_call_block_reasoning_search.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_call_block_reasoning_text.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_call_block_search.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_feature.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_feature_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_feature_item_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_feature_mode.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_feature_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_search_result.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_search_text_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_tool.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/doubao_app_tool_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/edit.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/edit_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/function_tool.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/function_tool_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/image_detail.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/image_pixel_limit.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/image_pixel_limit_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/image_process_options.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/image_process_options_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/image_process_tool.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/image_process_tool_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/incomplete_details.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/input_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/input_item_list_params_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/input_item_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/input_tokens_details.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_agent_tool_call.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_doubao_app_call.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_easy_message.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_easy_message_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_image_process.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_knowledge_search.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_mcp_approval_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_mcp_approval_request_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_mcp_approval_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_mcp_approval_response_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_mcp_call.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_mcp_call_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_mcp_list_tools.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_mcp_list_tools_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_tool_call.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_tool_call_output.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_tool_call_output_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_tool_call_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_function_web_search.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_input_message.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_output_message.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_reasoning.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_reasoning_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_reference.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/item_transcription.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/knowledge_search_tool.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/knowledge_search_tool_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/list_input_items_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_allowed_tools.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_allowed_tools_filter.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_allowed_tools_filter_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_allowed_tools_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_approval_mode.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_list_tools_tool.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_list_tools_tool_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_require_approval.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_require_approval_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_tool.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_tool_approval_filter.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_tool_approval_filter_always.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_tool_approval_filter_always_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_tool_approval_filter_never.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_tool_approval_filter_never_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_tool_approval_filter_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/mcp_tool_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/message_content.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/message_content_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/message_role.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/order.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/output_content_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/output_content_item_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/output_content_item_reasoning_text.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/output_content_item_reasoning_text_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/output_content_item_text.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/output_content_item_text_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/output_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/output_tokens_details.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/parsed_response_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/reasoning.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/reasoning_effort.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/reasoning_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/reasoning_summary_part.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/reasoning_summary_part_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_agent_tool_call_completed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_agent_tool_call_in_progress_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_caching.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_caching_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_completed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_content_part_added_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_content_part_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_created_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_block_added_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_block_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_completed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_failed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_in_progress_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_output_text_delta_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_output_text_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_reasoning_search_completed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_reasoning_search_in_progress_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_reasoning_search_searching_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_reasoning_text_delta_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_reasoning_text_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_search_completed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_search_in_progress_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_doubao_app_call_search_searching_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_error.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_error_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_failed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_function_call_arguments_delta_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_function_call_arguments_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_image_process_action.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_image_process_call_completed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_image_process_call_in_progress_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_image_process_call_processing_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_image_process_error.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_in_progress_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_includable.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_incomplete_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_knowledge_search_call_completed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_knowledge_search_call_failed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_knowledge_search_call_in_progress_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_knowledge_search_call_searching_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_mcp_approval_request_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_mcp_call_arguments_delta_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_mcp_call_arguments_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_mcp_call_completed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_mcp_call_failed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_mcp_call_in_progress_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_mcp_list_tools_completed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_mcp_list_tools_failed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_mcp_list_tools_in_progress_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_output_item_added_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_output_item_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_output_text_annotation_added_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_reasoning_raw_text_delta_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_reasoning_raw_text_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_reasoning_summary_part_added_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_reasoning_summary_part_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_reasoning_summary_text_delta_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_reasoning_summary_text_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_reasoning_text_delta_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_reasoning_text_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_stream_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_text_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_text_config_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_text_delta_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_text_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_transcription_part_added_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_transcription_part_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_transcription_text_delta_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_transcription_text_done_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_web_search_call_completed_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_web_search_call_in_progress_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/response_web_search_call_searching_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/responses_input.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/responses_input_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/responses_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/responses_request_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/service_tier.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/session.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/session_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/text_format.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/text_format_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/text_format_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/text_translation_options.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/thinking.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/thinking_mode.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/thinking_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/thinking_turns_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/thinking_turns_param_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_choice.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_choice_function.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_choice_function_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_choice_knowledge_search.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_choice_knowledge_search_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_choice_mcp.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_choice_mcp_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_choice_options.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_choice_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_choice_web_search.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_choice_web_search_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_name_list.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_name_list_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_usage_details.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_uses_keep.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_uses_keep_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_uses_trigger.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/tool_uses_trigger_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/transcription_part.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/truncation_mode.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/typed_tool_choice.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/typed_tool_choice_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/url_citation.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/url_citation_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/user_location.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/user_location_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/web_search_action.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/web_search_source.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/web_search_tool.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/responses/web_search_tool_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/agent_identifier.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/agent_ref.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/agent_with_upgrades.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/base64_document_source.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/base64_image_source.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/cache_creation.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/create_session_resource_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/create_session_upgrade_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/delete_session_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/document_source.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/environment_config_override.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/environment_networking_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/environment_packages_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/environment_tos_config.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/environment_with_overrides.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/environment_with_upgrades.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/file_document_source.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/file_image_source.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/image_source.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/list_session_events_response_wire.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/list_session_resources_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/list_session_threads_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/list_sessions_order.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/list_sessions_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_agent_message_preview.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_agent_thinking_preview.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_delta_content.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_delta_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_delta_text_block.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_document_block.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_event_params.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_file_rubric_params.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_image_block.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_message_content_block.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_rubric.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_search_result_block.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_start_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_start_event_preview.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_stream_preview_event.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_system_content_block.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_system_message_event_params.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_text_block.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_text_rubric_params.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_tool_result_content_block.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_user_custom_tool_result_event_params.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_user_interrupt_event_params.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_user_message_event_params.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_user_tool_confirmation_event_params.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/managed_agents_user_tool_result_event_params.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/model_upgrades.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/plain_text_document_source.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/search_result_citations.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/search_result_content.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/send_session_events_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/send_session_events_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/session_resource_access.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/session_resource_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/session_status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/session_stream_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/session_thread.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/session_thread_status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/session_usage.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/tag.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/tool_confirmation_result.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/update_session_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/url_document_source.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/session/url_image_source.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/skill/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/tokenization/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/tokenization/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/tokenization/tokenization_input.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/tokenization/tokenization_input_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/tokenization/tokenization_item.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/tokenization/tokenization_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/tokenization/tokenization_request_param.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/tokenization/tokenization_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/__init__.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/_init_extras_shim.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/create_credential_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/create_vault_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/credential_auth.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/credential_auth_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/credential_networking.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/credential_networking_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/credential_validation.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/delete_credential_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/delete_vault_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/limited_credential_networking.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/list_credentials_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/list_vaults_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/mcp_probe.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/mcpo_auth_refresh.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/refresh_http_response.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/refresh_object.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/refresh_status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/token_endpoint_auth.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/token_endpoint_auth_type.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/update_credential_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/update_vault_request.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime/types/vault/validation_status.py +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime.egg-info/dependency_links.txt +0 -0
- {arkruntime-0.6.0 → arkruntime-0.9.0}/src/arkruntime.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: arkruntime
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: Ark runtime SDK for Python
|
|
5
5
|
Author: Volcengine
|
|
6
6
|
License: Apache-2.0
|
|
@@ -16,6 +16,8 @@ Requires-Dist: sniffio
|
|
|
16
16
|
Requires-Dist: typing-extensions>=4.7
|
|
17
17
|
Requires-Dist: distro>=1.7.0
|
|
18
18
|
Requires-Dist: volcengine-python-sdk>=5.0.20
|
|
19
|
+
Provides-Extra: mcp
|
|
20
|
+
Requires-Dist: mcp<3,>=1.0; python_version >= "3.10" and extra == "mcp"
|
|
19
21
|
Dynamic: license-file
|
|
20
22
|
|
|
21
23
|
# Ark Runtime Python SDK
|
|
@@ -147,6 +149,7 @@ from arkruntime import AsyncArk
|
|
|
147
149
|
|
|
148
150
|
client = AsyncArk.volc()
|
|
149
151
|
|
|
152
|
+
|
|
150
153
|
async def main():
|
|
151
154
|
response = await client.responses.create(
|
|
152
155
|
model=os.environ.get("ARK_MODEL", "doubao-seed-2-1-pro-260628"),
|
|
@@ -158,6 +161,7 @@ async def main():
|
|
|
158
161
|
if content.type == "output_text":
|
|
159
162
|
print(content.text)
|
|
160
163
|
|
|
164
|
+
|
|
161
165
|
asyncio.run(main())
|
|
162
166
|
```
|
|
163
167
|
|
|
@@ -337,6 +341,72 @@ See the [examples/](./examples) directory for runnable scripts:
|
|
|
337
341
|
|
|
338
342
|
MCP examples are provided for both clouds and explicitly send `ark-beta-mcp: true`. Other built-in-tool examples are CN-only and show their required beta headers.
|
|
339
343
|
|
|
344
|
+
## Self-hosted MCP tools
|
|
345
|
+
|
|
346
|
+
The self-hosted worker core exposes a protocol-independent `MCPClient`
|
|
347
|
+
interface without requiring the official MCP package. Install the optional
|
|
348
|
+
adapter on Python 3.10 or newer when using an official MCP `ClientSession`:
|
|
349
|
+
|
|
350
|
+
```bash
|
|
351
|
+
pip install 'arkruntime[mcp]'
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
The official adapter runs through an AnyIO `BlockingPortal`, so it works with
|
|
355
|
+
both asyncio and Trio backends. Create the portal and MCP `ClientSession` in
|
|
356
|
+
the same AnyIO lifecycle, then use `custom_tool_items()` for the Agent
|
|
357
|
+
declaration and `mcp_tools()` for the worker registry. Keep both alive for the
|
|
358
|
+
entire worker lifetime. See the runnable
|
|
359
|
+
[`self_hosted_mcp_worker`](./examples/self_hosted_mcp_worker) example.
|
|
360
|
+
|
|
361
|
+
The adapter wraps an already connected MCP `ClientSession`, so applications may
|
|
362
|
+
use stdio or another transport supported by their MCP client. One client
|
|
363
|
+
session is reused across all Managed Agents Sessions handled by the worker;
|
|
364
|
+
calls do not automatically include a Managed Agents `session_id` or `work_id`,
|
|
365
|
+
and Session idle/deletion is not an MCP lifecycle notification. Use stateless
|
|
366
|
+
tools or implement explicit tenant/session isolation in the MCP server.
|
|
367
|
+
|
|
368
|
+
Applications that cannot install the optional package may implement
|
|
369
|
+
`arkruntime.selfhosted.MCPClient` directly. The core SDK continues to support
|
|
370
|
+
Python 3.8, while the official MCP adapter requires Python 3.10 or newer.
|
|
371
|
+
|
|
372
|
+
Managed Agents currently accepts the top-level JSON Schema fields `type`,
|
|
373
|
+
`properties`, and `required`. The helper keeps those fields structured, inlines
|
|
374
|
+
local `$defs` and `definitions` references used by properties, and appends other
|
|
375
|
+
top-level constraints as compact JSON to the tool description. The MCP server
|
|
376
|
+
remains the authoritative validator when the worker executes the call. Agent
|
|
377
|
+
tool descriptions, including appended constraints, must fit within 10,000
|
|
378
|
+
characters.
|
|
379
|
+
|
|
380
|
+
Fetch every `tools/list` page, then use the exact same selected definitions for
|
|
381
|
+
the Agent and worker. Managed Agents currently accepts at most eight custom
|
|
382
|
+
tools per Agent. Tool discovery happens at worker startup, so update the Agent
|
|
383
|
+
while it is idle and restart the worker whenever the MCP server changes its
|
|
384
|
+
tool list.
|
|
385
|
+
|
|
386
|
+
Custom tools do not use Managed Agents permission policies. The worker executes
|
|
387
|
+
each matching call, so implement approval, authorization, and operation
|
|
388
|
+
allowlists in the MCP server or a wrapper tool. Only wrap trusted servers,
|
|
389
|
+
avoid names that collide with built-in Agent tools, add prefixes when multiple
|
|
390
|
+
servers expose the same name, and configure an MCP client timeout. Client-side
|
|
391
|
+
MCP servers run with the worker's OS, filesystem, and network permissions, not
|
|
392
|
+
in a Managed Agents sandbox. Run them with least privilege and a minimal
|
|
393
|
+
environment, and do not pass `ARK_API_KEY` to an MCP subprocess. Tool names,
|
|
394
|
+
descriptions, inputs, and results enter the model context and must be treated
|
|
395
|
+
as untrusted content.
|
|
396
|
+
|
|
397
|
+
### Tool result support
|
|
398
|
+
|
|
399
|
+
The worker preserves MCP `isError` and supports text, `image/jpeg`,
|
|
400
|
+
`image/png`, `image/gif`, and `image/webp` image blocks. Embedded resources may
|
|
401
|
+
contain the same image MIME types, `application/pdf`, or text whose MIME type is
|
|
402
|
+
absent, empty, or starts with `text/`. When a result has no content blocks but
|
|
403
|
+
has `structuredContent`, the helper serializes it as compact JSON text.
|
|
404
|
+
|
|
405
|
+
Audio, resource links, unknown content types, and other resource MIME types
|
|
406
|
+
become an error result. If a result mixes supported and unsupported blocks, the
|
|
407
|
+
whole converted result is an error; the supported blocks are not returned
|
|
408
|
+
separately.
|
|
409
|
+
|
|
340
410
|
## Requirements
|
|
341
411
|
|
|
342
412
|
- Python >= 3.8
|
|
@@ -127,6 +127,7 @@ from arkruntime import AsyncArk
|
|
|
127
127
|
|
|
128
128
|
client = AsyncArk.volc()
|
|
129
129
|
|
|
130
|
+
|
|
130
131
|
async def main():
|
|
131
132
|
response = await client.responses.create(
|
|
132
133
|
model=os.environ.get("ARK_MODEL", "doubao-seed-2-1-pro-260628"),
|
|
@@ -138,6 +139,7 @@ async def main():
|
|
|
138
139
|
if content.type == "output_text":
|
|
139
140
|
print(content.text)
|
|
140
141
|
|
|
142
|
+
|
|
141
143
|
asyncio.run(main())
|
|
142
144
|
```
|
|
143
145
|
|
|
@@ -317,6 +319,72 @@ See the [examples/](./examples) directory for runnable scripts:
|
|
|
317
319
|
|
|
318
320
|
MCP examples are provided for both clouds and explicitly send `ark-beta-mcp: true`. Other built-in-tool examples are CN-only and show their required beta headers.
|
|
319
321
|
|
|
322
|
+
## Self-hosted MCP tools
|
|
323
|
+
|
|
324
|
+
The self-hosted worker core exposes a protocol-independent `MCPClient`
|
|
325
|
+
interface without requiring the official MCP package. Install the optional
|
|
326
|
+
adapter on Python 3.10 or newer when using an official MCP `ClientSession`:
|
|
327
|
+
|
|
328
|
+
```bash
|
|
329
|
+
pip install 'arkruntime[mcp]'
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
The official adapter runs through an AnyIO `BlockingPortal`, so it works with
|
|
333
|
+
both asyncio and Trio backends. Create the portal and MCP `ClientSession` in
|
|
334
|
+
the same AnyIO lifecycle, then use `custom_tool_items()` for the Agent
|
|
335
|
+
declaration and `mcp_tools()` for the worker registry. Keep both alive for the
|
|
336
|
+
entire worker lifetime. See the runnable
|
|
337
|
+
[`self_hosted_mcp_worker`](./examples/self_hosted_mcp_worker) example.
|
|
338
|
+
|
|
339
|
+
The adapter wraps an already connected MCP `ClientSession`, so applications may
|
|
340
|
+
use stdio or another transport supported by their MCP client. One client
|
|
341
|
+
session is reused across all Managed Agents Sessions handled by the worker;
|
|
342
|
+
calls do not automatically include a Managed Agents `session_id` or `work_id`,
|
|
343
|
+
and Session idle/deletion is not an MCP lifecycle notification. Use stateless
|
|
344
|
+
tools or implement explicit tenant/session isolation in the MCP server.
|
|
345
|
+
|
|
346
|
+
Applications that cannot install the optional package may implement
|
|
347
|
+
`arkruntime.selfhosted.MCPClient` directly. The core SDK continues to support
|
|
348
|
+
Python 3.8, while the official MCP adapter requires Python 3.10 or newer.
|
|
349
|
+
|
|
350
|
+
Managed Agents currently accepts the top-level JSON Schema fields `type`,
|
|
351
|
+
`properties`, and `required`. The helper keeps those fields structured, inlines
|
|
352
|
+
local `$defs` and `definitions` references used by properties, and appends other
|
|
353
|
+
top-level constraints as compact JSON to the tool description. The MCP server
|
|
354
|
+
remains the authoritative validator when the worker executes the call. Agent
|
|
355
|
+
tool descriptions, including appended constraints, must fit within 10,000
|
|
356
|
+
characters.
|
|
357
|
+
|
|
358
|
+
Fetch every `tools/list` page, then use the exact same selected definitions for
|
|
359
|
+
the Agent and worker. Managed Agents currently accepts at most eight custom
|
|
360
|
+
tools per Agent. Tool discovery happens at worker startup, so update the Agent
|
|
361
|
+
while it is idle and restart the worker whenever the MCP server changes its
|
|
362
|
+
tool list.
|
|
363
|
+
|
|
364
|
+
Custom tools do not use Managed Agents permission policies. The worker executes
|
|
365
|
+
each matching call, so implement approval, authorization, and operation
|
|
366
|
+
allowlists in the MCP server or a wrapper tool. Only wrap trusted servers,
|
|
367
|
+
avoid names that collide with built-in Agent tools, add prefixes when multiple
|
|
368
|
+
servers expose the same name, and configure an MCP client timeout. Client-side
|
|
369
|
+
MCP servers run with the worker's OS, filesystem, and network permissions, not
|
|
370
|
+
in a Managed Agents sandbox. Run them with least privilege and a minimal
|
|
371
|
+
environment, and do not pass `ARK_API_KEY` to an MCP subprocess. Tool names,
|
|
372
|
+
descriptions, inputs, and results enter the model context and must be treated
|
|
373
|
+
as untrusted content.
|
|
374
|
+
|
|
375
|
+
### Tool result support
|
|
376
|
+
|
|
377
|
+
The worker preserves MCP `isError` and supports text, `image/jpeg`,
|
|
378
|
+
`image/png`, `image/gif`, and `image/webp` image blocks. Embedded resources may
|
|
379
|
+
contain the same image MIME types, `application/pdf`, or text whose MIME type is
|
|
380
|
+
absent, empty, or starts with `text/`. When a result has no content blocks but
|
|
381
|
+
has `structuredContent`, the helper serializes it as compact JSON text.
|
|
382
|
+
|
|
383
|
+
Audio, resource links, unknown content types, and other resource MIME types
|
|
384
|
+
become an error result. If a result mixes supported and unsupported blocks, the
|
|
385
|
+
whole converted result is an error; the supported blocks are not returned
|
|
386
|
+
separately.
|
|
387
|
+
|
|
320
388
|
## Requirements
|
|
321
389
|
|
|
322
390
|
- Python >= 3.8
|
|
@@ -5,9 +5,10 @@ from third-party open-source projects.
|
|
|
5
5
|
|
|
6
6
|
## Anthropic self-hosted worker SDK
|
|
7
7
|
|
|
8
|
-
Portions of the self-hosted worker lifecycle
|
|
9
|
-
implementations under `src/arkruntime/selfhosted`
|
|
10
|
-
from Anthropic's
|
|
8
|
+
Portions of the self-hosted worker lifecycle, local agent tool, and client-side
|
|
9
|
+
MCP helper implementations under `src/arkruntime/selfhosted` and
|
|
10
|
+
`src/arkruntime/mcp.py` are structurally adapted from Anthropic's SDK
|
|
11
|
+
implementations:
|
|
11
12
|
|
|
12
13
|
- https://github.com/anthropics/anthropic-sdk-python
|
|
13
14
|
- https://github.com/anthropics/anthropic-sdk-go
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "arkruntime"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.9.0"
|
|
8
8
|
description = "Ark runtime SDK for Python"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
@@ -23,6 +23,9 @@ dependencies = [
|
|
|
23
23
|
"volcengine-python-sdk>=5.0.20",
|
|
24
24
|
]
|
|
25
25
|
|
|
26
|
+
[project.optional-dependencies]
|
|
27
|
+
mcp = ["mcp>=1.0,<3; python_version >= '3.10'"]
|
|
28
|
+
|
|
26
29
|
[project.urls]
|
|
27
30
|
Homepage = "https://github.com/volcengine/ark-runtime-python"
|
|
28
31
|
|
|
@@ -42,6 +45,7 @@ dev = [
|
|
|
42
45
|
"pytest-cov>=5",
|
|
43
46
|
"pytest-xdist>=3",
|
|
44
47
|
"respx>=0.21",
|
|
48
|
+
"trio>=0.22",
|
|
45
49
|
]
|
|
46
50
|
|
|
47
51
|
[tool.setuptools]
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
7
7
|
import asyncio
|
|
8
|
+
import email.utils
|
|
8
9
|
import json
|
|
9
10
|
import logging
|
|
10
11
|
import time
|
|
@@ -199,10 +200,14 @@ class BaseClient(Generic[_HttpxClientT]):
|
|
|
199
200
|
def _make_sse_decoder(self) -> SSEDecoder | SSEBytesDecoder:
|
|
200
201
|
return SSEDecoder()
|
|
201
202
|
|
|
202
|
-
def _build_headers(self, options: RequestOptions) -> httpx.Headers:
|
|
203
|
+
def _build_headers(self, options: RequestOptions, *, retries_taken: int = 0) -> httpx.Headers:
|
|
203
204
|
custom_headers = options.headers or {}
|
|
204
|
-
headers_dict = {
|
|
205
|
+
headers_dict = {
|
|
206
|
+
**self.default_headers(),
|
|
207
|
+
"x-stainless-retry-count": str(retries_taken),
|
|
208
|
+
}
|
|
205
209
|
headers = httpx.Headers(headers_dict)
|
|
210
|
+
headers.update(custom_headers)
|
|
206
211
|
|
|
207
212
|
return headers
|
|
208
213
|
|
|
@@ -237,7 +242,7 @@ class BaseClient(Generic[_HttpxClientT]):
|
|
|
237
242
|
else:
|
|
238
243
|
raise RuntimeError(f"Unexpected JSON data type, {type(body)}, cannot merge with `extra_body`")
|
|
239
244
|
|
|
240
|
-
headers = self._build_headers(options)
|
|
245
|
+
headers = self._build_headers(options, retries_taken=retries_taken)
|
|
241
246
|
params = options.params
|
|
242
247
|
content_type = headers.get("Content-Type")
|
|
243
248
|
files = options.files
|
|
@@ -338,9 +343,13 @@ class BaseClient(Generic[_HttpxClientT]):
|
|
|
338
343
|
options: RequestOptions,
|
|
339
344
|
response_headers: Optional[httpx.Headers] = None,
|
|
340
345
|
) -> float:
|
|
341
|
-
max_retries = options.
|
|
346
|
+
max_retries = options.get_max_retries(self.max_retries)
|
|
347
|
+
|
|
348
|
+
retry_after = self._parse_retry_after_header(response_headers)
|
|
349
|
+
if retry_after is not None and 0 < retry_after <= 60:
|
|
350
|
+
return retry_after
|
|
342
351
|
|
|
343
|
-
nb_retries = max_retries - remaining_retries
|
|
352
|
+
nb_retries = min(max(max_retries - remaining_retries - 1, 0), 1000)
|
|
344
353
|
|
|
345
354
|
# Apply exponential backoff, but not more than the max.
|
|
346
355
|
sleep_seconds = min(INITIAL_RETRY_DELAY * pow(2.0, nb_retries), MAX_RETRY_DELAY)
|
|
@@ -350,9 +359,31 @@ class BaseClient(Generic[_HttpxClientT]):
|
|
|
350
359
|
timeout = sleep_seconds * jitter
|
|
351
360
|
return timeout if timeout >= 0 else 0
|
|
352
361
|
|
|
362
|
+
def _parse_retry_after_header(self, response_headers: Optional[httpx.Headers] = None) -> Optional[float]:
|
|
363
|
+
if response_headers is None:
|
|
364
|
+
return None
|
|
365
|
+
|
|
366
|
+
try:
|
|
367
|
+
retry_after_ms = response_headers.get("retry-after-ms")
|
|
368
|
+
return float(retry_after_ms) / 1000
|
|
369
|
+
except (TypeError, ValueError):
|
|
370
|
+
pass
|
|
371
|
+
|
|
372
|
+
retry_after = response_headers.get("retry-after")
|
|
373
|
+
try:
|
|
374
|
+
return float(retry_after)
|
|
375
|
+
except (TypeError, ValueError):
|
|
376
|
+
pass
|
|
377
|
+
|
|
378
|
+
retry_date = email.utils.parsedate_tz(retry_after)
|
|
379
|
+
if retry_date is None:
|
|
380
|
+
return None
|
|
381
|
+
return float(email.utils.mktime_tz(retry_date) - time.time())
|
|
382
|
+
|
|
353
383
|
def _should_retry(self, response: httpx.Response) -> bool:
|
|
354
384
|
# Note: this is not a standard header
|
|
355
385
|
should_retry_header = response.headers.get("x-should-retry")
|
|
386
|
+
should_retry_header = should_retry_header.lower() if should_retry_header else None
|
|
356
387
|
|
|
357
388
|
# If the server explicitly says whether or not to retry, obey.
|
|
358
389
|
if should_retry_header == "true":
|
|
@@ -503,7 +534,8 @@ class SyncAPIClient(BaseClient):
|
|
|
503
534
|
stream_cls: type[_StreamT] | None,
|
|
504
535
|
) -> ResponseT | _StreamT:
|
|
505
536
|
retries = self._remaining_retries(remaining_retries, options)
|
|
506
|
-
|
|
537
|
+
max_retries = options.get_max_retries(self.max_retries)
|
|
538
|
+
request = self._build_request(options, retries_taken=max_retries - retries)
|
|
507
539
|
req_id = request.headers.get(CLIENT_REQUEST_HEADER, "")
|
|
508
540
|
try:
|
|
509
541
|
response = self._client.send(
|
|
@@ -703,6 +735,7 @@ class SyncAPIClient(BaseClient):
|
|
|
703
735
|
stream: bool = False,
|
|
704
736
|
stream_cls: type[_StreamT] | None = None,
|
|
705
737
|
) -> ResponseT | _StreamT:
|
|
738
|
+
options = {**options, "max_retries": 0}
|
|
706
739
|
opts = RequestOptions.construct( # type: ignore
|
|
707
740
|
method="post",
|
|
708
741
|
url=path,
|
|
@@ -916,6 +949,7 @@ class AsyncAPIClient(BaseClient):
|
|
|
916
949
|
stream: bool = False,
|
|
917
950
|
stream_cls: type[_AsyncStreamT] | None = None,
|
|
918
951
|
) -> ResponseT | _AsyncStreamT:
|
|
952
|
+
options = {**options, "max_retries": 0}
|
|
919
953
|
opts = RequestOptions.construct(
|
|
920
954
|
method="post",
|
|
921
955
|
url=path,
|
|
@@ -984,7 +1018,8 @@ class AsyncAPIClient(BaseClient):
|
|
|
984
1018
|
stream_cls: type[_AsyncStreamT] | None,
|
|
985
1019
|
) -> ResponseT | _AsyncStreamT:
|
|
986
1020
|
retries = self._remaining_retries(remaining_retries, options)
|
|
987
|
-
|
|
1021
|
+
max_retries = options.get_max_retries(self.max_retries)
|
|
1022
|
+
request = self._build_request(options, retries_taken=max_retries - retries)
|
|
988
1023
|
req_id = request.headers.get(CLIENT_REQUEST_HEADER, "")
|
|
989
1024
|
try:
|
|
990
1025
|
response = await self._client.send(
|
|
@@ -76,7 +76,7 @@ class Ark(SyncAPIClient):
|
|
|
76
76
|
sk: secret access key
|
|
77
77
|
api_key: api key,this api key will not be refreshed
|
|
78
78
|
timeout: timeout of client. default httpx.Timeout(timeout=60.0, connect=60.0)
|
|
79
|
-
max_retries: times of retry when request failed. default
|
|
79
|
+
max_retries: times of retry when request failed. default 2
|
|
80
80
|
http_client: specify customized http_client
|
|
81
81
|
Returns:
|
|
82
82
|
ark client
|
|
@@ -229,7 +229,7 @@ class AsyncArk(AsyncAPIClient):
|
|
|
229
229
|
sk: secret access key
|
|
230
230
|
api_key: api key,this api key will not be refreshed
|
|
231
231
|
timeout: timeout of client. default httpx.Timeout(timeout=60.0, connect=60.0)
|
|
232
|
-
max_retries: times of retry when request failed. default
|
|
232
|
+
max_retries: times of retry when request failed. default 2
|
|
233
233
|
http_client: specify customized http_client
|
|
234
234
|
Returns:
|
|
235
235
|
async ark client
|
|
@@ -26,7 +26,7 @@ def _dump(value: Any) -> Any:
|
|
|
26
26
|
- `NOT_GIVEN` → dropped by the caller (returned as-is; caller filters).
|
|
27
27
|
- `pydantic.BaseModel` → `.model_dump(exclude_unset=True, by_alias=True)`
|
|
28
28
|
so unset Optional fields don't leak `null` onto the wire (server-side
|
|
29
|
-
|
|
29
|
+
uses the `omit == null == unset` convention).
|
|
30
30
|
- `enum.Enum` → its `.value`. Handles enum-typed fields (e.g.
|
|
31
31
|
`EnvConfigType.CLOUD` → `"cloud"`) that get passed positionally.
|
|
32
32
|
- `list` / `tuple` → element-wise recursion.
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# Copyright (c) 2026 ByteDance Ltd. and/or its affiliates.
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
"""把官方 MCP Python SDK 适配到方舟 self-hosted MCP 接口。
|
|
4
|
+
|
|
5
|
+
安装可选依赖:``pip install 'arkruntime[mcp]'``。官方 MCP 包需要
|
|
6
|
+
Python 3.10 或更高版本。调用方应在 AnyIO 事件循环中创建
|
|
7
|
+
``BlockingPortal``,并保证 portal 与 MCP ``ClientSession`` 的生命周期覆盖 worker。
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import concurrent.futures
|
|
13
|
+
import contextlib
|
|
14
|
+
import time
|
|
15
|
+
from typing import Any, Dict, Iterable, List, Optional
|
|
16
|
+
|
|
17
|
+
try:
|
|
18
|
+
from anyio.from_thread import BlockingPortal
|
|
19
|
+
from mcp import ClientSession, types
|
|
20
|
+
except ImportError as exc: # pragma: no cover - depends on the optional extra.
|
|
21
|
+
raise ImportError(
|
|
22
|
+
"The 'mcp' package is required for MCP helpers. Install it with: "
|
|
23
|
+
"pip install 'arkruntime[mcp]'. Python 3.10 or newer is required."
|
|
24
|
+
) from exc
|
|
25
|
+
|
|
26
|
+
from arkruntime.selfhosted.mcp import (
|
|
27
|
+
MCPCallToolResult,
|
|
28
|
+
MCPClient,
|
|
29
|
+
MCPContent,
|
|
30
|
+
MCPResource,
|
|
31
|
+
MCPToolDefinition,
|
|
32
|
+
)
|
|
33
|
+
from arkruntime.selfhosted.mcp import (
|
|
34
|
+
custom_tool_item as core_custom_tool_item,
|
|
35
|
+
)
|
|
36
|
+
from arkruntime.selfhosted.mcp import (
|
|
37
|
+
custom_tool_items as core_custom_tool_items,
|
|
38
|
+
)
|
|
39
|
+
from arkruntime.selfhosted.mcp import (
|
|
40
|
+
mcp_tool as core_mcp_tool,
|
|
41
|
+
)
|
|
42
|
+
from arkruntime.selfhosted.mcp import (
|
|
43
|
+
mcp_tools as core_mcp_tools,
|
|
44
|
+
)
|
|
45
|
+
from arkruntime.selfhosted.tools import Tool, ToolContext
|
|
46
|
+
from arkruntime.types.agent import ToolItem
|
|
47
|
+
|
|
48
|
+
__all__ = ["AnyIOMCPClient", "custom_tool_item", "custom_tool_items", "mcp_tool", "mcp_tools"]
|
|
49
|
+
|
|
50
|
+
_MISSING = object()
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def _field(value: Any, snake_name: str, camel_name: str, default: Any = _MISSING) -> Any:
|
|
54
|
+
if hasattr(value, snake_name):
|
|
55
|
+
return getattr(value, snake_name)
|
|
56
|
+
if hasattr(value, camel_name):
|
|
57
|
+
return getattr(value, camel_name)
|
|
58
|
+
if default is not _MISSING:
|
|
59
|
+
return default
|
|
60
|
+
raise AttributeError(snake_name)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class AnyIOMCPClient(MCPClient):
|
|
64
|
+
"""通过 AnyIO portal 从 worker 线程调用异步 MCP ClientSession。"""
|
|
65
|
+
|
|
66
|
+
def __init__(
|
|
67
|
+
self,
|
|
68
|
+
client: ClientSession,
|
|
69
|
+
portal: BlockingPortal,
|
|
70
|
+
*,
|
|
71
|
+
timeout: Optional[float] = None,
|
|
72
|
+
poll_interval: float = 0.25,
|
|
73
|
+
) -> None:
|
|
74
|
+
if client is None:
|
|
75
|
+
raise ValueError("mcp client is required")
|
|
76
|
+
if portal is None:
|
|
77
|
+
raise ValueError("anyio blocking portal is required")
|
|
78
|
+
if timeout is not None and timeout <= 0:
|
|
79
|
+
raise ValueError("timeout must be positive")
|
|
80
|
+
if poll_interval <= 0:
|
|
81
|
+
raise ValueError("poll_interval must be positive")
|
|
82
|
+
self._client = client
|
|
83
|
+
self._portal = portal
|
|
84
|
+
self._timeout = timeout
|
|
85
|
+
self._poll_interval = poll_interval
|
|
86
|
+
|
|
87
|
+
def call_tool(
|
|
88
|
+
self,
|
|
89
|
+
name: str,
|
|
90
|
+
arguments: Dict[str, Any],
|
|
91
|
+
context: ToolContext,
|
|
92
|
+
) -> Optional[MCPCallToolResult]:
|
|
93
|
+
future = self._portal.start_task_soon(self._client.call_tool, name, arguments)
|
|
94
|
+
started = time.monotonic()
|
|
95
|
+
while True:
|
|
96
|
+
try:
|
|
97
|
+
return _call_tool_result(future.result(timeout=self._poll_interval))
|
|
98
|
+
except concurrent.futures.TimeoutError:
|
|
99
|
+
if _is_cancelled(context):
|
|
100
|
+
_cancel_and_wait(future)
|
|
101
|
+
raise RuntimeError("execution canceled")
|
|
102
|
+
if self._timeout is not None and time.monotonic() - started >= self._timeout:
|
|
103
|
+
_cancel_and_wait(future)
|
|
104
|
+
raise RuntimeError(f"execution timed out after {self._timeout:g} seconds")
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def custom_tool_item(tool: "types.Tool") -> ToolItem:
|
|
108
|
+
"""把官方 MCP Tool 转换成 Agent custom tool 声明。"""
|
|
109
|
+
|
|
110
|
+
return core_custom_tool_item(_tool_definition(tool))
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def custom_tool_items(tools: Iterable["types.Tool"]) -> List[ToolItem]:
|
|
114
|
+
"""批量转换官方 MCP Tools。"""
|
|
115
|
+
|
|
116
|
+
return core_custom_tool_items([_tool_definition(tool) for tool in tools])
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def mcp_tool(
|
|
120
|
+
tool: "types.Tool",
|
|
121
|
+
client: ClientSession,
|
|
122
|
+
*,
|
|
123
|
+
portal: BlockingPortal,
|
|
124
|
+
timeout: Optional[float] = None,
|
|
125
|
+
) -> Tool:
|
|
126
|
+
"""把官方 MCP Tool 包装成 worker Custom Tool。"""
|
|
127
|
+
|
|
128
|
+
return core_mcp_tool(_tool_definition(tool), AnyIOMCPClient(client, portal, timeout=timeout))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def mcp_tools(
|
|
132
|
+
tools: Iterable["types.Tool"],
|
|
133
|
+
client: ClientSession,
|
|
134
|
+
*,
|
|
135
|
+
portal: BlockingPortal,
|
|
136
|
+
timeout: Optional[float] = None,
|
|
137
|
+
) -> Dict[str, Tool]:
|
|
138
|
+
"""批量包装官方 MCP Tools。"""
|
|
139
|
+
|
|
140
|
+
return core_mcp_tools(
|
|
141
|
+
[_tool_definition(tool) for tool in tools],
|
|
142
|
+
AnyIOMCPClient(client, portal, timeout=timeout),
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def _tool_definition(tool: "types.Tool") -> MCPToolDefinition:
|
|
147
|
+
if tool is None:
|
|
148
|
+
raise ValueError("mcp tool is required")
|
|
149
|
+
return MCPToolDefinition(
|
|
150
|
+
name=tool.name,
|
|
151
|
+
description=tool.description or "",
|
|
152
|
+
input_schema=_field(tool, "input_schema", "inputSchema", {"type": "object"}),
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
def _call_tool_result(result: "types.CallToolResult") -> Optional[MCPCallToolResult]:
|
|
157
|
+
if result is None:
|
|
158
|
+
return None
|
|
159
|
+
return MCPCallToolResult(
|
|
160
|
+
content=[_content(item) for item in result.content],
|
|
161
|
+
structured_content=_field(result, "structured_content", "structuredContent", None),
|
|
162
|
+
is_error=bool(_field(result, "is_error", "isError", False)),
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
def _content(content: "types.ContentBlock") -> MCPContent:
|
|
167
|
+
if isinstance(content, types.TextContent):
|
|
168
|
+
return MCPContent(type="text", text=content.text)
|
|
169
|
+
if isinstance(content, types.ImageContent):
|
|
170
|
+
return MCPContent(
|
|
171
|
+
type="image",
|
|
172
|
+
mime_type=_field(content, "mime_type", "mimeType"),
|
|
173
|
+
data=content.data,
|
|
174
|
+
)
|
|
175
|
+
if isinstance(content, types.EmbeddedResource):
|
|
176
|
+
return MCPContent(type="resource", resource=_resource(content.resource))
|
|
177
|
+
return MCPContent(type=str(getattr(content, "type", type(content).__name__)))
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
def _resource(resource: Any) -> MCPResource:
|
|
181
|
+
return MCPResource(
|
|
182
|
+
uri=str(resource.uri),
|
|
183
|
+
mime_type=_field(resource, "mime_type", "mimeType", None),
|
|
184
|
+
text=getattr(resource, "text", None),
|
|
185
|
+
blob=getattr(resource, "blob", None),
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def _is_cancelled(context: ToolContext) -> bool:
|
|
190
|
+
cancel_event = context.cancel_event
|
|
191
|
+
return cancel_event is not None and bool(getattr(cancel_event, "is_set", lambda: False)())
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def _cancel_and_wait(future: "concurrent.futures.Future[Any]") -> None:
|
|
195
|
+
future.cancel()
|
|
196
|
+
with contextlib.suppress(concurrent.futures.CancelledError, concurrent.futures.TimeoutError):
|
|
197
|
+
future.result(timeout=1)
|
|
@@ -26,9 +26,9 @@ def _path(environment_id: str, suffix: str) -> str:
|
|
|
26
26
|
return f"/environments/{quote(environment_id, safe='')}/work/{suffix.lstrip('/')}"
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
def _query(*, block_ms: int = 0, reclaim_older_than_ms: int = 0) -> dict:
|
|
29
|
+
def _query(*, block_ms: Optional[int] = 0, reclaim_older_than_ms: int = 0) -> dict:
|
|
30
30
|
query = {}
|
|
31
|
-
if block_ms > 0:
|
|
31
|
+
if block_ms is not None and block_ms > 0:
|
|
32
32
|
query["block_ms"] = block_ms
|
|
33
33
|
if reclaim_older_than_ms > 0:
|
|
34
34
|
query["reclaim_older_than_ms"] = reclaim_older_than_ms
|
|
@@ -48,7 +48,7 @@ class EnvironmentWork(SyncAPIResource):
|
|
|
48
48
|
environment_id: str,
|
|
49
49
|
*,
|
|
50
50
|
worker_id: str = "",
|
|
51
|
-
block_ms: int = 999,
|
|
51
|
+
block_ms: Optional[int] = 999,
|
|
52
52
|
reclaim_older_than_ms: int = 0,
|
|
53
53
|
extra_headers=None,
|
|
54
54
|
extra_query=None,
|
|
@@ -144,7 +144,7 @@ class AsyncEnvironmentWork(AsyncAPIResource):
|
|
|
144
144
|
environment_id: str,
|
|
145
145
|
*,
|
|
146
146
|
worker_id: str = "",
|
|
147
|
-
block_ms: int = 999,
|
|
147
|
+
block_ms: Optional[int] = 999,
|
|
148
148
|
reclaim_older_than_ms: int = 0,
|
|
149
149
|
extra_headers=None,
|
|
150
150
|
extra_query=None,
|
|
@@ -28,6 +28,7 @@ from ..._utils import (
|
|
|
28
28
|
from ...pagination import AsyncCursorPage, SyncCursorPage
|
|
29
29
|
|
|
30
30
|
# AUTOGEN-START create-imports
|
|
31
|
+
from ...types.file.description_param import DescriptionParam
|
|
31
32
|
from ...types.file.file_create_request_param import FileCreateRequestParam
|
|
32
33
|
from ...types.file.file_deleted import FileDeleted
|
|
33
34
|
from ...types.file.file_object import FileObject
|
|
@@ -61,6 +62,8 @@ class Files(SyncAPIResource):
|
|
|
61
62
|
file: Optional[FileTypes] = None,
|
|
62
63
|
# AUTOGEN-START create-kwargs
|
|
63
64
|
purpose: Purpose,
|
|
65
|
+
model: Optional[str] = None,
|
|
66
|
+
description: Optional[DescriptionParam] = None,
|
|
64
67
|
preprocess_configs: Optional[PreprocessConfigsParam] = None,
|
|
65
68
|
expire_at: Optional[int] = None,
|
|
66
69
|
url: Optional[str] = None,
|
|
@@ -91,6 +94,8 @@ class Files(SyncAPIResource):
|
|
|
91
94
|
{
|
|
92
95
|
# AUTOGEN-START create-body
|
|
93
96
|
"purpose": purpose,
|
|
97
|
+
"model": model,
|
|
98
|
+
"description": description,
|
|
94
99
|
"preprocess_configs": preprocess_configs,
|
|
95
100
|
"expire_at": expire_at,
|
|
96
101
|
"url": url,
|
|
@@ -141,7 +146,7 @@ class Files(SyncAPIResource):
|
|
|
141
146
|
self,
|
|
142
147
|
*,
|
|
143
148
|
# AUTOGEN-START list-kwargs
|
|
144
|
-
purpose: Optional[Literal["user_data", "agent"]] = None,
|
|
149
|
+
purpose: Optional[Literal["user_data", "agent", "voice"]] = None,
|
|
145
150
|
after: Optional[str] = None,
|
|
146
151
|
limit: Optional[int] = None,
|
|
147
152
|
order: Optional[Literal["asc", "desc"]] = None,
|
|
@@ -232,6 +237,8 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
232
237
|
file: Optional[FileTypes] = None,
|
|
233
238
|
# AUTOGEN-START create-kwargs
|
|
234
239
|
purpose: Purpose,
|
|
240
|
+
model: Optional[str] = None,
|
|
241
|
+
description: Optional[DescriptionParam] = None,
|
|
235
242
|
preprocess_configs: Optional[PreprocessConfigsParam] = None,
|
|
236
243
|
expire_at: Optional[int] = None,
|
|
237
244
|
url: Optional[str] = None,
|
|
@@ -249,6 +256,8 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
249
256
|
{
|
|
250
257
|
# AUTOGEN-START create-body
|
|
251
258
|
"purpose": purpose,
|
|
259
|
+
"model": model,
|
|
260
|
+
"description": description,
|
|
252
261
|
"preprocess_configs": preprocess_configs,
|
|
253
262
|
"expire_at": expire_at,
|
|
254
263
|
"url": url,
|
|
@@ -299,7 +308,7 @@ class AsyncFiles(AsyncAPIResource):
|
|
|
299
308
|
self,
|
|
300
309
|
*,
|
|
301
310
|
# AUTOGEN-START list-kwargs
|
|
302
|
-
purpose: Optional[Literal["user_data", "agent"]] = None,
|
|
311
|
+
purpose: Optional[Literal["user_data", "agent", "voice"]] = None,
|
|
303
312
|
after: Optional[str] = None,
|
|
304
313
|
limit: Optional[int] = None,
|
|
305
314
|
order: Optional[Literal["asc", "desc"]] = None,
|