arkruntime 0.1.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.1.0/LICENSE +201 -0
- arkruntime-0.1.0/PKG-INFO +347 -0
- arkruntime-0.1.0/README.md +328 -0
- arkruntime-0.1.0/pyproject.toml +79 -0
- arkruntime-0.1.0/setup.cfg +4 -0
- arkruntime-0.1.0/src/arkruntime/__init__.py +11 -0
- arkruntime-0.1.0/src/arkruntime/_base_client.py +1373 -0
- arkruntime-0.1.0/src/arkruntime/_client.py +585 -0
- arkruntime-0.1.0/src/arkruntime/_compat.py +265 -0
- arkruntime-0.1.0/src/arkruntime/_constants.py +55 -0
- arkruntime-0.1.0/src/arkruntime/_exceptions.py +188 -0
- arkruntime-0.1.0/src/arkruntime/_files.py +122 -0
- arkruntime-0.1.0/src/arkruntime/_legacy_response.py +438 -0
- arkruntime-0.1.0/src/arkruntime/_managed_agents_serialize.py +55 -0
- arkruntime-0.1.0/src/arkruntime/_models.py +733 -0
- arkruntime-0.1.0/src/arkruntime/_qs.py +164 -0
- arkruntime-0.1.0/src/arkruntime/_request_options.py +118 -0
- arkruntime-0.1.0/src/arkruntime/_resource.py +41 -0
- arkruntime-0.1.0/src/arkruntime/_response.py +599 -0
- arkruntime-0.1.0/src/arkruntime/_streaming.py +460 -0
- arkruntime-0.1.0/src/arkruntime/_types.py +207 -0
- arkruntime-0.1.0/src/arkruntime/_utils/__init__.py +144 -0
- arkruntime-0.1.0/src/arkruntime/_utils/_key_agreement.py +217 -0
- arkruntime-0.1.0/src/arkruntime/_utils/_logs.py +28 -0
- arkruntime-0.1.0/src/arkruntime/_utils/_model_breaker.py +87 -0
- arkruntime-0.1.0/src/arkruntime/_utils/_streams.py +17 -0
- arkruntime-0.1.0/src/arkruntime/_utils/_transform.py +463 -0
- arkruntime-0.1.0/src/arkruntime/_utils/_typing.py +157 -0
- arkruntime-0.1.0/src/arkruntime/_utils/_utils.py +473 -0
- arkruntime-0.1.0/src/arkruntime/common/__init__.py +6 -0
- arkruntime-0.1.0/src/arkruntime/common/_parsing/__init__.py +31 -0
- arkruntime-0.1.0/src/arkruntime/common/_parsing/_completions.py +272 -0
- arkruntime-0.1.0/src/arkruntime/common/_parsing/_responses.py +174 -0
- arkruntime-0.1.0/src/arkruntime/common/_pydantic.py +166 -0
- arkruntime-0.1.0/src/arkruntime/common/_tools.py +85 -0
- arkruntime-0.1.0/src/arkruntime/common/streaming/__init__.py +4 -0
- arkruntime-0.1.0/src/arkruntime/common/streaming/_deltas.py +68 -0
- arkruntime-0.1.0/src/arkruntime/common/streaming/chat/__init__.py +49 -0
- arkruntime-0.1.0/src/arkruntime/common/streaming/chat/_completions.py +732 -0
- arkruntime-0.1.0/src/arkruntime/common/streaming/chat/_events.py +96 -0
- arkruntime-0.1.0/src/arkruntime/common/streaming/chat/_types.py +28 -0
- arkruntime-0.1.0/src/arkruntime/pagination.py +128 -0
- arkruntime-0.1.0/src/arkruntime/resources/__init__.py +75 -0
- arkruntime-0.1.0/src/arkruntime/resources/agents/__init__.py +3 -0
- arkruntime-0.1.0/src/arkruntime/resources/agents/agents.py +372 -0
- arkruntime-0.1.0/src/arkruntime/resources/batch/__init__.py +6 -0
- arkruntime-0.1.0/src/arkruntime/resources/batch/_utils.py +156 -0
- arkruntime-0.1.0/src/arkruntime/resources/batch/batch.py +40 -0
- arkruntime-0.1.0/src/arkruntime/resources/batch/chat/__init__.py +6 -0
- arkruntime-0.1.0/src/arkruntime/resources/batch/chat/chat.py +22 -0
- arkruntime-0.1.0/src/arkruntime/resources/batch/chat/completions.py +217 -0
- arkruntime-0.1.0/src/arkruntime/resources/batch/embeddings.py +150 -0
- arkruntime-0.1.0/src/arkruntime/resources/batch/multimodal_embeddings.py +160 -0
- arkruntime-0.1.0/src/arkruntime/resources/beta/__init__.py +4 -0
- arkruntime-0.1.0/src/arkruntime/resources/beta/beta.py +73 -0
- arkruntime-0.1.0/src/arkruntime/resources/beta/chat/__init__.py +13 -0
- arkruntime-0.1.0/src/arkruntime/resources/beta/chat/chat.py +23 -0
- arkruntime-0.1.0/src/arkruntime/resources/beta/chat/completions.py +356 -0
- arkruntime-0.1.0/src/arkruntime/resources/chat/__init__.py +7 -0
- arkruntime-0.1.0/src/arkruntime/resources/chat/chat.py +23 -0
- arkruntime-0.1.0/src/arkruntime/resources/chat/completions.py +242 -0
- arkruntime-0.1.0/src/arkruntime/resources/content_generation/__init__.py +7 -0
- arkruntime-0.1.0/src/arkruntime/resources/content_generation/content_generation.py +21 -0
- arkruntime-0.1.0/src/arkruntime/resources/content_generation/tasks.py +331 -0
- arkruntime-0.1.0/src/arkruntime/resources/embeddings/__init__.py +6 -0
- arkruntime-0.1.0/src/arkruntime/resources/embeddings/embeddings.py +140 -0
- arkruntime-0.1.0/src/arkruntime/resources/encryption.py +187 -0
- arkruntime-0.1.0/src/arkruntime/resources/environments/__init__.py +3 -0
- arkruntime-0.1.0/src/arkruntime/resources/environments/environments.py +216 -0
- arkruntime-0.1.0/src/arkruntime/resources/files/__init__.py +6 -0
- arkruntime-0.1.0/src/arkruntime/resources/files/files.py +401 -0
- arkruntime-0.1.0/src/arkruntime/resources/images/__init__.py +10 -0
- arkruntime-0.1.0/src/arkruntime/resources/images/images.py +152 -0
- arkruntime-0.1.0/src/arkruntime/resources/memory_stores/__init__.py +7 -0
- arkruntime-0.1.0/src/arkruntime/resources/memory_stores/memories.py +262 -0
- arkruntime-0.1.0/src/arkruntime/resources/memory_stores/memory_stores.py +223 -0
- arkruntime-0.1.0/src/arkruntime/resources/multimodal_embeddings/__init__.py +9 -0
- arkruntime-0.1.0/src/arkruntime/resources/multimodal_embeddings/multimodal_embeddings.py +150 -0
- arkruntime-0.1.0/src/arkruntime/resources/responses/__init__.py +8 -0
- arkruntime-0.1.0/src/arkruntime/resources/responses/input_items.py +241 -0
- arkruntime-0.1.0/src/arkruntime/resources/responses/responses.py +467 -0
- arkruntime-0.1.0/src/arkruntime/resources/sessions/__init__.py +24 -0
- arkruntime-0.1.0/src/arkruntime/resources/sessions/session_events.py +336 -0
- arkruntime-0.1.0/src/arkruntime/resources/sessions/session_resources.py +89 -0
- arkruntime-0.1.0/src/arkruntime/resources/sessions/session_threads.py +275 -0
- arkruntime-0.1.0/src/arkruntime/resources/sessions/sessions.py +331 -0
- arkruntime-0.1.0/src/arkruntime/resources/skills/__init__.py +3 -0
- arkruntime-0.1.0/src/arkruntime/resources/skills/skills.py +112 -0
- arkruntime-0.1.0/src/arkruntime/resources/tokenization/__init__.py +9 -0
- arkruntime-0.1.0/src/arkruntime/resources/tokenization/tokenization.py +131 -0
- arkruntime-0.1.0/src/arkruntime/resources/vaults/__init__.py +4 -0
- arkruntime-0.1.0/src/arkruntime/resources/vaults/credentials.py +253 -0
- arkruntime-0.1.0/src/arkruntime/resources/vaults/vaults.py +197 -0
- arkruntime-0.1.0/src/arkruntime/types/__init__.py +7 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/__init__.py +56 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/_init_extras_shim.py +12 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/agent.py +86 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/agent_ref.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/agent_ref_type.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/agent_skill_ref.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/create_agent_request.py +65 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/delete_agent_response.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/list_agents_response.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/mcp_server.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/mcp_server_type.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/model_config.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/model_speed.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/multiagent_config.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/multiagent_type.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/permission_policy.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/permission_policy_type.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/skill_ref_type.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/tag.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/tool_config.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/tool_default_config.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/tool_item.py +57 -0
- arkruntime-0.1.0/src/arkruntime/types/agent/update_agent_request.py +70 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/__init__.py +212 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/_init_extras_shim.py +73 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_choice_logprobs.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_audio.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_audio_input_audio.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_audio_input_audio_param.py +25 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_audio_param.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_file.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_file_file.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_file_file_param.py +25 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_file_param.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_image.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_image_image_url.py +33 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_image_image_url_param.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_image_param.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_param.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_text.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_text_param.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_video.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_video_param.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_video_video_url.py +36 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_content_part_video_video_url_param.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_message_content.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_message_content_param.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_message_tool_call.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_message_tool_call_chunk.py +31 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_message_tool_call_chunk_function.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_message_tool_call_function.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_message_tool_call_function_param.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_message_tool_call_param.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_named_tool_choice.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_named_tool_choice_param.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request.py +129 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request_assistant_message.py +39 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request_assistant_message_param.py +36 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request_message.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request_message_param.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request_param.py +122 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request_system_message.py +25 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request_system_message_param.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request_tool_message.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request_tool_message_param.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request_user_message.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_request_user_message_param.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_response.py +52 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_response_choice.py +36 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_response_format.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_response_format_json_schema.py +33 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_response_format_json_schema_param.py +31 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_response_format_param.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_response_message.py +37 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_role.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_service_status.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_stop.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_stop_param.py +11 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_stream_choice_logprobs.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_stream_options.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_stream_options_param.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_stream_response.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_stream_response_choice.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_stream_response_delta.py +36 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_token_logprob.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_token_logprob_top_logprob.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_tool.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_tool_choice.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_tool_choice_function.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_tool_choice_function_param.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_tool_choice_param.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/chat_completion_tool_param.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/completion_tokens_details.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/completion_usage.py +35 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/error.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/error_response.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/finish_reason.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/function_object.py +35 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/function_object_param.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/image_detail.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/image_pixel_limit.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/image_pixel_limit_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/model_fallback_status.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/moderation_hit_type.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/parsed_chat_completion_shim.py +52 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/parsed_function_tool_call_shim.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/prompt_tokens_details.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/reasoning_effort.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/request_service_tier.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/response_format_type.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/response_service_tier.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/thinking.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/thinking_mode.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/thinking_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/tool_choice_mode.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/tool_type.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/tool_type_param.py +11 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/video_image_pixel_limit.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/chat/video_image_pixel_limit_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/completion_usage.py +43 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/__init__.py +66 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/_init_extras_shim.py +12 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/audio_role.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/audio_url.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/audio_url_param.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/content_generation_task.py +125 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/content_item.py +54 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/content_item_param.py +46 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/content_type.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/create_content_generation_task_request.py +106 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/create_content_generation_task_request_param.py +83 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/create_content_generation_task_response.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/draft_task.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/draft_task_param.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/image_role.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/image_url.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/image_url_param.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/list_content_generation_tasks_response.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/reasoning_effort.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/task_content.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/task_error.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/task_status.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/task_usage.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/tool.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/tool_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/tool_type.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/tool_type_param.py +11 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/tool_usage.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/video_role.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/video_url.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/content_generation/video_url_param.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/embedding/__init__.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/embedding/_init_extras_shim.py +12 -0
- arkruntime-0.1.0/src/arkruntime/types/embedding/embedding.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/embedding/embedding_input.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/embedding/embedding_input_param.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/embedding/embedding_item.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/embedding/embedding_request.py +39 -0
- arkruntime-0.1.0/src/arkruntime/types/embedding/embedding_request_param.py +37 -0
- arkruntime-0.1.0/src/arkruntime/types/embedding/embedding_response.py +41 -0
- arkruntime-0.1.0/src/arkruntime/types/embedding/embedding_usage.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/embedding/encoding_format.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/__init__.py +36 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/_init_extras_shim.py +12 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/create_environment_request.py +41 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/delete_environment_response.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/env_config.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/env_config_type.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/environment.py +57 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/environment_scope.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/list_environments_response.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/networking_config.py +37 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/networking_type.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/packages_config.py +47 -0
- arkruntime-0.1.0/src/arkruntime/types/environment/update_environment_request.py +45 -0
- arkruntime-0.1.0/src/arkruntime/types/file/__init__.py +40 -0
- arkruntime-0.1.0/src/arkruntime/types/file/_init_extras_shim.py +12 -0
- arkruntime-0.1.0/src/arkruntime/types/file/file_create_request.py +41 -0
- arkruntime-0.1.0/src/arkruntime/types/file/file_create_request_param.py +41 -0
- arkruntime-0.1.0/src/arkruntime/types/file/file_deleted.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/file/file_error.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/file/file_list_response.py +42 -0
- arkruntime-0.1.0/src/arkruntime/types/file/file_object.py +71 -0
- arkruntime-0.1.0/src/arkruntime/types/file/order.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/file/preprocess_configs.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/file/preprocess_configs_param.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/file/purpose.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/file/status.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/file/tos_storage.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/file/tos_storage_param.py +25 -0
- arkruntime-0.1.0/src/arkruntime/types/file/video.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/file/video_param.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/images/__init__.py +55 -0
- arkruntime-0.1.0/src/arkruntime/types/images/_init_extras_shim.py +12 -0
- arkruntime-0.1.0/src/arkruntime/types/images/bounding_box.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/images/create_image_generation_request.py +88 -0
- arkruntime-0.1.0/src/arkruntime/types/images/create_image_generation_request_param.py +73 -0
- arkruntime-0.1.0/src/arkruntime/types/images/image_data_item.py +58 -0
- arkruntime-0.1.0/src/arkruntime/types/images/image_error.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/images/image_generation_response.py +43 -0
- arkruntime-0.1.0/src/arkruntime/types/images/image_generation_stream_event.py +74 -0
- arkruntime-0.1.0/src/arkruntime/types/images/image_generation_stream_event_type.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/images/optimize_prompt_mode.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/images/optimize_prompt_options.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/images/optimize_prompt_options_param.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/images/output_format.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/images/response_format.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/images/sequential_image_generation_mode.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/images/sequential_image_generation_options.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/images/sequential_image_generation_options_param.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/images/tool.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/images/tool_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/images/tool_type.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/images/tool_type_param.py +11 -0
- arkruntime-0.1.0/src/arkruntime/types/images/tool_usage.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/images/usage.py +36 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/__init__.py +44 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/_init_extras_shim.py +12 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/actor.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/actor_type.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/create_memory_request.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/create_memory_store_request.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/delete_memory_response.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/delete_memory_store_response.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/list_memories_order_by.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/list_memories_response.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/list_memory_stores_response.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/memory.py +64 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/memory_list_item.py +58 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/memory_list_item_type.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/memory_store.py +64 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/update_memory_request.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/memory/update_memory_store_request.py +31 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/__init__.py +54 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/_init_extras_shim.py +12 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/embedding.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/embedding_data_item.py +33 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/embedding_input.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/embedding_input_param.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/embedding_input_type.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/embedding_object.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/embedding_usage.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/encoding_format.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/image_url.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/image_url_param.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/multi_embedding_config.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/multi_embedding_config_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/multi_embedding_mode.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/multi_modal_embedding_request.py +47 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/multi_modal_embedding_request_param.py +39 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/multi_modal_embedding_response.py +41 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/prompt_tokens_details.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/sparse_embedding_config.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/sparse_embedding_config_param.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/sparse_embedding_mode.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/sparse_embedding_value.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/video_url.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/multimodal_embedding/video_url_param.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/__init__.py +528 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/_init_extras_shim.py +47 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/annotation.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/annotation_param.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/applied_edit.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/audio_chunk.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/audio_chunking_strategy.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/audio_chunking_strategy_param.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/cache_mode.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/clear_thinking.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/clear_thinking_keep.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/clear_thinking_keep_param.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/clear_thinking_param.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/clear_thinking_response.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/clear_tool_uses.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/clear_tool_uses_inputs.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/clear_tool_uses_inputs_param.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/clear_tool_uses_param.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/clear_tool_uses_response.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_filter.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item.py +36 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item_audio.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item_audio_param.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item_file.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item_file_param.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item_image.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item_image_param.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item_param.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item_text.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item_text_param.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item_video.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/content_item_video_param.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/context_management.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/context_management_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/context_management_response.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/cover_image.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/cover_image_param.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/delete_response_response.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doc_citation.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doc_citation_param.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_call_block.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_call_block_output_text.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_call_block_reasoning_search.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_call_block_reasoning_text.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_call_block_search.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_feature.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_feature_item.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_feature_item_param.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_feature_mode.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_feature_param.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_search_result.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_search_text_item.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_tool.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/doubao_app_tool_param.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/edit.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/edit_param.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/function_tool.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/function_tool_param.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/image_detail.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/image_pixel_limit.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/image_pixel_limit_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/image_process_options.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/image_process_options_param.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/image_process_tool.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/image_process_tool_param.py +25 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/incomplete_details.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/input_item.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/input_item_list_params_shim.py +39 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/input_item_param.py +33 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/input_tokens_details.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_agent_tool_call.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_doubao_app_call.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_easy_message.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_easy_message_param.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_image_process.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_knowledge_search.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_mcp_approval_request.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_mcp_approval_request_param.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_mcp_approval_response.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_mcp_approval_response_param.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_mcp_call.py +44 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_mcp_call_param.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_mcp_list_tools.py +36 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_mcp_list_tools_param.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_tool_call.py +37 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_tool_call_output.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_tool_call_output_param.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_tool_call_param.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_function_web_search.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_input_message.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_output_message.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_reasoning.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_reasoning_param.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_reference.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_status.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/item_transcription.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/knowledge_search_tool.py +46 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/knowledge_search_tool_param.py +37 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/list_input_items_response.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_allowed_tools.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_allowed_tools_filter.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_allowed_tools_filter_param.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_allowed_tools_param.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_approval_mode.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_list_tools_tool.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_list_tools_tool_param.py +25 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_require_approval.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_require_approval_param.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_tool.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_tool_approval_filter.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_tool_approval_filter_always.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_tool_approval_filter_always_param.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_tool_approval_filter_never.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_tool_approval_filter_never_param.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_tool_approval_filter_param.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/mcp_tool_param.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/message_content.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/message_content_param.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/message_role.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/order.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/output_content_item.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/output_content_item_param.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/output_content_item_reasoning_text.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/output_content_item_reasoning_text_param.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/output_content_item_text.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/output_content_item_text_param.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/output_item.py +46 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/output_tokens_details.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/parsed_response_shim.py +106 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/reasoning.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/reasoning_effort.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/reasoning_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/reasoning_summary_part.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/reasoning_summary_part_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response.py +58 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_agent_tool_call_completed_event.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_agent_tool_call_in_progress_event.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_caching.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_caching_param.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_completed_event.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_content_part_added_event.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_content_part_done_event.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_created_event.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_block_added_event.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_block_done_event.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_completed_event.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_failed_event.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_in_progress_event.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_output_text_delta_event.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_output_text_done_event.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_reasoning_search_completed_event.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_reasoning_search_in_progress_event.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_reasoning_search_searching_event.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_reasoning_text_delta_event.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_reasoning_text_done_event.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_search_completed_event.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_search_in_progress_event.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_doubao_app_call_search_searching_event.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_error.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_error_event.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_failed_event.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_function_call_arguments_delta_event.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_function_call_arguments_done_event.py +31 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_image_process_action.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_image_process_call_completed_event.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_image_process_call_in_progress_event.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_image_process_call_processing_event.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_image_process_error.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_in_progress_event.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_includable.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_incomplete_event.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_knowledge_search_call_completed_event.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_knowledge_search_call_failed_event.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_knowledge_search_call_in_progress_event.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_knowledge_search_call_searching_event.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_mcp_approval_request_event.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_mcp_call_arguments_delta_event.py +35 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_mcp_call_arguments_done_event.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_mcp_call_completed_event.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_mcp_call_failed_event.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_mcp_call_in_progress_event.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_mcp_list_tools_completed_event.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_mcp_list_tools_failed_event.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_mcp_list_tools_in_progress_event.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_output_item_added_event.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_output_item_done_event.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_output_text_annotation_added_event.py +46 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_reasoning_raw_text_delta_event.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_reasoning_raw_text_done_event.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_reasoning_summary_part_added_event.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_reasoning_summary_part_done_event.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_reasoning_summary_text_delta_event.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_reasoning_summary_text_done_event.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_reasoning_text_delta_event.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_reasoning_text_done_event.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_status.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_stream_event.py +216 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_text_config.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_text_config_param.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_text_delta_event.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_text_done_event.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_transcription_part_added_event.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_transcription_part_done_event.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_transcription_text_delta_event.py +46 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_transcription_text_done_event.py +52 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_usage.py +47 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_web_search_call_completed_event.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_web_search_call_in_progress_event.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/response_web_search_call_searching_event.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/responses_input.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/responses_input_param.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/responses_request.py +50 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/responses_request_param.py +73 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/service_tier.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/session.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/session_param.py +13 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/text_format.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/text_format_param.py +25 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/text_format_type.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/text_translation_options.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/thinking.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/thinking_mode.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/thinking_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/thinking_turns_param.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/thinking_turns_param_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_choice.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_choice_function.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_choice_function_param.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_choice_knowledge_search.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_choice_knowledge_search_param.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_choice_mcp.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_choice_mcp_param.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_choice_options.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_choice_param.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_choice_web_search.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_choice_web_search_param.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_name_list.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_name_list_param.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_param.py +25 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_usage.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_usage_details.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_uses_keep.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_uses_keep_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_uses_trigger.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/tool_uses_trigger_param.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/transcription_part.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/truncation_mode.py +14 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/typed_tool_choice.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/typed_tool_choice_param.py +21 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/url_citation.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/url_citation_param.py +35 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/user_location.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/user_location_param.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/web_search_action.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/web_search_source.py +16 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/web_search_tool.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/responses/web_search_tool_param.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/session/__init__.py +154 -0
- arkruntime-0.1.0/src/arkruntime/types/session/_init_extras_shim.py +88 -0
- arkruntime-0.1.0/src/arkruntime/types/session/agent_identifier.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/session/agent_ref.py +31 -0
- arkruntime-0.1.0/src/arkruntime/types/session/base64_document_source.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/session/base64_image_source.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/session/cache_creation.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/session/create_session_request.py +50 -0
- arkruntime-0.1.0/src/arkruntime/types/session/create_session_resource_request.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/session/delete_session_response.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/session/document_source.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/session/file_document_source.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/session/file_image_source.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/session/image_source.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/session/list_session_events_response_wire.py +31 -0
- arkruntime-0.1.0/src/arkruntime/types/session/list_session_resources_response.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/session/list_session_threads_response.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/session/list_sessions_order.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/session/list_sessions_response.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_agent_message_preview.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_agent_thinking_preview.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_delta_content.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_delta_event.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_delta_text_block.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_document_block.py +33 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_event_params.py +57 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_file_rubric_params.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_image_block.py +25 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_message_content_block.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_rubric.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_search_result_block.py +38 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_session_event.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_start_event.py +31 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_start_event_preview.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_stream_preview_event.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_system_content_block.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_system_message_event_params.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_text_block.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_text_rubric_params.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_tool_result_content_block.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_user_custom_tool_result_event_params.py +44 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_user_define_outcome_event_params.py +45 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_user_interrupt_event_params.py +31 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_user_message_event_params.py +34 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_user_tool_confirmation_event_params.py +46 -0
- arkruntime-0.1.0/src/arkruntime/types/session/managed_agents_user_tool_result_event_params.py +44 -0
- arkruntime-0.1.0/src/arkruntime/types/session/plain_text_document_source.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/session/search_result_citations.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/session/search_result_content.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/session/send_session_events_request.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/session/send_session_events_response.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/session/session.py +80 -0
- arkruntime-0.1.0/src/arkruntime/types/session/session_resource.py +70 -0
- arkruntime-0.1.0/src/arkruntime/types/session/session_resource_access.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/session/session_resource_type.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/session/session_status.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/session/session_stream_shim.py +540 -0
- arkruntime-0.1.0/src/arkruntime/types/session/session_thread.py +56 -0
- arkruntime-0.1.0/src/arkruntime/types/session/session_thread_status.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/session/session_usage.py +36 -0
- arkruntime-0.1.0/src/arkruntime/types/session/tag.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/session/tool_confirmation_result.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/session/update_session_request.py +28 -0
- arkruntime-0.1.0/src/arkruntime/types/session/url_document_source.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/session/url_image_source.py +23 -0
- arkruntime-0.1.0/src/arkruntime/types/skill/__init__.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/skill/_init_extras_shim.py +12 -0
- arkruntime-0.1.0/src/arkruntime/types/skill/create_skill_request.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/skill/skill.py +46 -0
- arkruntime-0.1.0/src/arkruntime/types/tokenization/__init__.py +24 -0
- arkruntime-0.1.0/src/arkruntime/types/tokenization/_init_extras_shim.py +12 -0
- arkruntime-0.1.0/src/arkruntime/types/tokenization/tokenization_input.py +17 -0
- arkruntime-0.1.0/src/arkruntime/types/tokenization/tokenization_input_param.py +15 -0
- arkruntime-0.1.0/src/arkruntime/types/tokenization/tokenization_item.py +39 -0
- arkruntime-0.1.0/src/arkruntime/types/tokenization/tokenization_request.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/tokenization/tokenization_request_param.py +30 -0
- arkruntime-0.1.0/src/arkruntime/types/tokenization/tokenization_response.py +36 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/__init__.py +62 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/_init_extras_shim.py +12 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/create_credential_request.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/create_vault_request.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/credential.py +52 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/credential_auth.py +64 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/credential_auth_type.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/credential_networking.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/credential_networking_type.py +18 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/credential_validation.py +54 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/delete_credential_response.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/delete_vault_response.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/limited_credential_networking.py +22 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/list_credentials_response.py +35 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/list_vaults_response.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/mcp_probe.py +26 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/mcpo_auth_refresh.py +45 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/refresh_http_response.py +32 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/refresh_object.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/refresh_status.py +20 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/token_endpoint_auth.py +29 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/token_endpoint_auth_type.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/update_credential_request.py +35 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/update_vault_request.py +27 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/validation_status.py +19 -0
- arkruntime-0.1.0/src/arkruntime/types/vault/vault.py +42 -0
- arkruntime-0.1.0/src/arkruntime.egg-info/PKG-INFO +347 -0
- arkruntime-0.1.0/src/arkruntime.egg-info/SOURCES.txt +717 -0
- arkruntime-0.1.0/src/arkruntime.egg-info/dependency_links.txt +1 -0
- arkruntime-0.1.0/src/arkruntime.egg-info/requires.txt +7 -0
- arkruntime-0.1.0/src/arkruntime.egg-info/top_level.txt +1 -0
arkruntime-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: arkruntime
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Ark runtime SDK for Python
|
|
5
|
+
Author: Volcengine
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/volcengine/ark-runtime-python
|
|
8
|
+
Requires-Python: >=3.8
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: httpx>=0.23.0
|
|
12
|
+
Requires-Dist: pydantic>=2.0
|
|
13
|
+
Requires-Dist: anyio<5,>=3.5.0
|
|
14
|
+
Requires-Dist: sniffio
|
|
15
|
+
Requires-Dist: typing-extensions>=4.7
|
|
16
|
+
Requires-Dist: distro>=1.7.0
|
|
17
|
+
Requires-Dist: volcengine-python-sdk>=5.0.20
|
|
18
|
+
Dynamic: license-file
|
|
19
|
+
|
|
20
|
+
# Ark Runtime Python SDK
|
|
21
|
+
|
|
22
|
+
The official Python library for the Volcengine Ark runtime API. It provides convenient access to the Ark REST API from any Python 3.8+ application, with both synchronous and asynchronous clients.
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pip install arkruntime
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
Create a client by setting the `ARK_API_KEY` environment variable:
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
from arkruntime import Ark
|
|
36
|
+
|
|
37
|
+
client = Ark()
|
|
38
|
+
# or explicitly: Ark(api_key="your-api-key")
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Responses API
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
import os
|
|
45
|
+
from arkruntime import Ark
|
|
46
|
+
|
|
47
|
+
client = Ark()
|
|
48
|
+
|
|
49
|
+
response = client.responses.create(
|
|
50
|
+
model=os.environ.get("ARK_MODEL", "doubao-seed-2-1-pro-260628"),
|
|
51
|
+
input="Explain how large language models work in three sentences.",
|
|
52
|
+
)
|
|
53
|
+
print(response.output_text)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Chat Completions
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
import os
|
|
60
|
+
from arkruntime import Ark
|
|
61
|
+
|
|
62
|
+
client = Ark()
|
|
63
|
+
|
|
64
|
+
completion = client.chat.completions.create(
|
|
65
|
+
model=os.environ.get("ARK_MODEL", "doubao-seed-2-1-pro-260628"),
|
|
66
|
+
messages=[
|
|
67
|
+
{"role": "system", "content": "You are a helpful assistant."},
|
|
68
|
+
{"role": "user", "content": "Write a haiku about programming."},
|
|
69
|
+
],
|
|
70
|
+
)
|
|
71
|
+
print(completion.choices[0].message.content)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Streaming
|
|
75
|
+
|
|
76
|
+
Both the Responses and Chat Completions APIs support streaming via `stream=True`.
|
|
77
|
+
|
|
78
|
+
### Streaming responses
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
import os
|
|
82
|
+
from arkruntime import Ark
|
|
83
|
+
|
|
84
|
+
client = Ark()
|
|
85
|
+
|
|
86
|
+
stream = client.responses.create(
|
|
87
|
+
model=os.environ.get("ARK_MODEL", "doubao-seed-2-1-pro-260628"),
|
|
88
|
+
input="Count from 1 to 10 slowly.",
|
|
89
|
+
stream=True,
|
|
90
|
+
)
|
|
91
|
+
for event in stream:
|
|
92
|
+
print(event)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Streaming chat completions
|
|
96
|
+
|
|
97
|
+
```python
|
|
98
|
+
import os
|
|
99
|
+
from arkruntime import Ark
|
|
100
|
+
|
|
101
|
+
client = Ark()
|
|
102
|
+
|
|
103
|
+
stream = client.chat.completions.create(
|
|
104
|
+
model=os.environ.get("ARK_MODEL", "doubao-seed-2-1-pro-260628"),
|
|
105
|
+
messages=[{"role": "user", "content": "Count from 1 to 10 slowly."}],
|
|
106
|
+
stream=True,
|
|
107
|
+
)
|
|
108
|
+
for chunk in stream:
|
|
109
|
+
if chunk.choices[0].delta.content:
|
|
110
|
+
print(chunk.choices[0].delta.content, end="", flush=True)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Async usage
|
|
114
|
+
|
|
115
|
+
Every synchronous method has an async counterpart on `AsyncArk`.
|
|
116
|
+
|
|
117
|
+
```python
|
|
118
|
+
import asyncio
|
|
119
|
+
import os
|
|
120
|
+
from arkruntime import AsyncArk
|
|
121
|
+
|
|
122
|
+
client = AsyncArk()
|
|
123
|
+
|
|
124
|
+
async def main():
|
|
125
|
+
response = await client.responses.create(
|
|
126
|
+
model=os.environ.get("ARK_MODEL", "doubao-seed-2-1-pro-260628"),
|
|
127
|
+
input="Explain quantum computing briefly.",
|
|
128
|
+
)
|
|
129
|
+
print(response.output_text)
|
|
130
|
+
|
|
131
|
+
asyncio.run(main())
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Vision
|
|
135
|
+
|
|
136
|
+
Pass images alongside text using multimodal content blocks.
|
|
137
|
+
|
|
138
|
+
```python
|
|
139
|
+
import os
|
|
140
|
+
from arkruntime import Ark
|
|
141
|
+
|
|
142
|
+
client = Ark()
|
|
143
|
+
|
|
144
|
+
completion = client.chat.completions.create(
|
|
145
|
+
model=os.environ.get("ARK_MODEL", "doubao-seed-2-1-pro-260628"),
|
|
146
|
+
messages=[
|
|
147
|
+
{
|
|
148
|
+
"role": "user",
|
|
149
|
+
"content": [
|
|
150
|
+
{"type": "text", "text": "What is in this image?"},
|
|
151
|
+
{"type": "image_url", "image_url": {"url": "https://example.com/photo.jpg"}},
|
|
152
|
+
],
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
)
|
|
156
|
+
print(completion.choices[0].message.content)
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Function calling
|
|
160
|
+
|
|
161
|
+
```python
|
|
162
|
+
import json
|
|
163
|
+
import os
|
|
164
|
+
from arkruntime import Ark
|
|
165
|
+
|
|
166
|
+
client = Ark()
|
|
167
|
+
|
|
168
|
+
tools = [
|
|
169
|
+
{
|
|
170
|
+
"type": "function",
|
|
171
|
+
"function": {
|
|
172
|
+
"name": "get_weather",
|
|
173
|
+
"description": "Get the current weather for a location.",
|
|
174
|
+
"parameters": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"properties": {
|
|
177
|
+
"location": {"type": "string", "description": "City name"},
|
|
178
|
+
},
|
|
179
|
+
"required": ["location"],
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
|
|
185
|
+
completion = client.chat.completions.create(
|
|
186
|
+
model=os.environ.get("ARK_MODEL", "doubao-seed-2-1-pro-260628"),
|
|
187
|
+
messages=[{"role": "user", "content": "What is the weather in Beijing?"}],
|
|
188
|
+
tools=tools,
|
|
189
|
+
)
|
|
190
|
+
|
|
191
|
+
tool_call = completion.choices[0].message.tool_calls[0]
|
|
192
|
+
print(f"Function: {tool_call.function.name}")
|
|
193
|
+
print(f"Arguments: {tool_call.function.arguments}")
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
## File uploads
|
|
197
|
+
|
|
198
|
+
```python
|
|
199
|
+
from arkruntime import Ark
|
|
200
|
+
|
|
201
|
+
client = Ark()
|
|
202
|
+
|
|
203
|
+
# Upload a file
|
|
204
|
+
file = client.files.create(file=open("data.jsonl", "rb"), purpose="batch")
|
|
205
|
+
print(file.id)
|
|
206
|
+
|
|
207
|
+
# List files
|
|
208
|
+
for f in client.files.list():
|
|
209
|
+
print(f.id, f.filename)
|
|
210
|
+
|
|
211
|
+
# Delete a file
|
|
212
|
+
client.files.delete(file.id)
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
## Error handling
|
|
216
|
+
|
|
217
|
+
The SDK raises typed exceptions for API errors.
|
|
218
|
+
|
|
219
|
+
```python
|
|
220
|
+
from arkruntime import Ark
|
|
221
|
+
from arkruntime._exceptions import ArkAPIError, ArkRateLimitError, ArkAuthenticationError
|
|
222
|
+
|
|
223
|
+
client = Ark()
|
|
224
|
+
|
|
225
|
+
try:
|
|
226
|
+
client.chat.completions.create(
|
|
227
|
+
model="doubao-seed-2-1-pro-260628",
|
|
228
|
+
messages=[{"role": "user", "content": "Hello"}],
|
|
229
|
+
)
|
|
230
|
+
except ArkRateLimitError:
|
|
231
|
+
print("Rate limited — back off and retry.")
|
|
232
|
+
except ArkAuthenticationError:
|
|
233
|
+
print("Invalid API key.")
|
|
234
|
+
except ArkAPIError as e:
|
|
235
|
+
print(f"API error {e.status_code}: {e}")
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
The exception hierarchy:
|
|
239
|
+
|
|
240
|
+
```
|
|
241
|
+
ArkError
|
|
242
|
+
+-- ArkAPIError
|
|
243
|
+
+-- ArkAPIStatusError
|
|
244
|
+
| +-- ArkBadRequestError (400)
|
|
245
|
+
| +-- ArkAuthenticationError (401)
|
|
246
|
+
| +-- ArkPermissionDeniedError (403)
|
|
247
|
+
| +-- ArkNotFoundError (404)
|
|
248
|
+
| +-- ArkConflictError (409)
|
|
249
|
+
| +-- ArkUnprocessableEntityError (422)
|
|
250
|
+
| +-- ArkRateLimitError (429)
|
|
251
|
+
| +-- ArkInternalServerError (500)
|
|
252
|
+
+-- ArkAPIConnectionError
|
|
253
|
+
| +-- ArkAPITimeoutError
|
|
254
|
+
+-- ArkAPIResponseValidationError
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
## Retries and timeouts
|
|
258
|
+
|
|
259
|
+
The client automatically retries failed requests (default: 2 retries) with backoff for transient errors.
|
|
260
|
+
|
|
261
|
+
```python
|
|
262
|
+
from arkruntime import Ark
|
|
263
|
+
|
|
264
|
+
# Customize retries and timeout
|
|
265
|
+
client = Ark(
|
|
266
|
+
max_retries=5,
|
|
267
|
+
timeout=120.0, # seconds
|
|
268
|
+
)
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
Per-request overrides are also supported:
|
|
272
|
+
|
|
273
|
+
```python
|
|
274
|
+
client.chat.completions.create(
|
|
275
|
+
model="doubao-seed-2-1-pro-260628",
|
|
276
|
+
messages=[{"role": "user", "content": "Hello"}],
|
|
277
|
+
timeout=30.0,
|
|
278
|
+
)
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## Batch inference
|
|
282
|
+
|
|
283
|
+
`client.batch.*` provides a synchronous high-throughput path with per-model concurrency control and automatic retry on `408`/`409`/`429`/`5xx`. See the [batch examples](./examples/batch) for thread-pool and async fan-out patterns.
|
|
284
|
+
|
|
285
|
+
```python
|
|
286
|
+
from arkruntime import Ark
|
|
287
|
+
|
|
288
|
+
client = Ark(timeout=24 * 3600)
|
|
289
|
+
|
|
290
|
+
result = client.batch.chat.completions.create(
|
|
291
|
+
model="doubao-seed-2-1-pro-260628",
|
|
292
|
+
messages=[{"role": "user", "content": "Hello"}],
|
|
293
|
+
)
|
|
294
|
+
print(result)
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
## API coverage
|
|
298
|
+
|
|
299
|
+
| API | Client path |
|
|
300
|
+
|---|---|
|
|
301
|
+
| Responses | `client.responses.create()` |
|
|
302
|
+
| Chat Completions | `client.chat.completions.create()` |
|
|
303
|
+
| Embeddings | `client.embeddings.create()` |
|
|
304
|
+
| Multimodal Embeddings | `client.multimodal_embeddings.create()` |
|
|
305
|
+
| Content Generation | `client.content_generation.tasks.create()` |
|
|
306
|
+
| Images | `client.images.generate()` |
|
|
307
|
+
| Files | `client.files.create()` / `.list()` / `.delete()` |
|
|
308
|
+
| Tokenization | `client.tokenization.create()` |
|
|
309
|
+
| Batch | `client.batch.chat.completions.create()` etc. |
|
|
310
|
+
|
|
311
|
+
## Examples
|
|
312
|
+
|
|
313
|
+
See the [examples/](./examples) directory for runnable scripts:
|
|
314
|
+
|
|
315
|
+
- `responses/` -- Responses API: multi-turn chat, function calling, structured output, video streaming
|
|
316
|
+
- `chat/` -- Chat Completions: basic, function calling, reasoning, structured output, vision
|
|
317
|
+
- `batch/` -- Batch inference: chat completions, embeddings, multimodal embeddings (sync + async)
|
|
318
|
+
- `files/` -- Files API: upload, wait for processing, list, delete
|
|
319
|
+
- `embeddings.py` -- Text embeddings
|
|
320
|
+
- `multimodal_embeddings.py` -- Multimodal embeddings with image input
|
|
321
|
+
- `content_generation_tasks.py` -- Video generation task lifecycle
|
|
322
|
+
- `image_generations.py` -- Image generation
|
|
323
|
+
- `tokenization.py` -- Tokenization API
|
|
324
|
+
|
|
325
|
+
## Development
|
|
326
|
+
|
|
327
|
+
This repo uses [uv](https://docs.astral.sh/uv/) for dependency management.
|
|
328
|
+
|
|
329
|
+
```bash
|
|
330
|
+
uv sync # create venv + install runtime + dev deps
|
|
331
|
+
uv run pytest # run tests
|
|
332
|
+
uv run ruff check src/ # lint
|
|
333
|
+
uv run ruff format src/ # format
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
A pre-commit hook runs the same linting as CI:
|
|
337
|
+
|
|
338
|
+
```bash
|
|
339
|
+
uv run pre-commit install # one-time setup
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
## Requirements
|
|
343
|
+
|
|
344
|
+
- Python >= 3.8
|
|
345
|
+
- httpx >= 0.23.0
|
|
346
|
+
- pydantic >= 2.0
|
|
347
|
+
- typing-extensions >= 4.7
|