2026-05-02 18:19:39 +08:00
|
|
|
pub(crate) use aether_ai_formats::api::{
|
2026-04-09 00:10:38 +08:00
|
|
|
aggregate_claude_stream_sync_response, aggregate_gemini_stream_sync_response,
|
2026-04-26 20:32:55 +08:00
|
|
|
aggregate_openai_chat_stream_sync_response, aggregate_openai_responses_stream_sync_response,
|
2026-04-09 00:10:38 +08:00
|
|
|
aggregate_standard_chat_stream_sync_response, aggregate_standard_cli_stream_sync_response,
|
2026-04-29 09:25:19 +08:00
|
|
|
api_format_alias_matches, apply_codex_openai_responses_special_body_edits,
|
2026-05-03 14:48:25 +08:00
|
|
|
apply_codex_openai_responses_special_headers, apply_model_directive_mapping_patch,
|
|
|
|
|
apply_model_directive_overrides_from_model, apply_model_directive_overrides_from_request,
|
2026-05-06 02:29:17 +08:00
|
|
|
apply_openai_responses_compact_special_body_edits, build_chatgpt_web_image_request_body,
|
|
|
|
|
build_core_error_body_for_client_format, build_cross_format_openai_chat_request_body,
|
2026-05-03 14:48:25 +08:00
|
|
|
build_cross_format_openai_chat_request_body_with_model_directives,
|
|
|
|
|
build_cross_format_openai_responses_request_body,
|
|
|
|
|
build_cross_format_openai_responses_request_body_with_model_directives,
|
2026-05-08 22:03:17 +08:00
|
|
|
build_gemini_image_request_body_from_openai_image_request,
|
|
|
|
|
build_gemini_image_response_from_openai_image_response,
|
|
|
|
|
build_gemini_image_response_from_openai_responses_image_response, build_generated_tool_call_id,
|
|
|
|
|
build_kiro_final_message_sse_events, build_kiro_initial_sse_events,
|
|
|
|
|
build_kiro_stream_error_sse_events, build_local_openai_chat_request_body,
|
2026-05-03 14:48:25 +08:00
|
|
|
build_local_openai_chat_request_body_with_model_directives,
|
|
|
|
|
build_local_openai_responses_request_body,
|
|
|
|
|
build_local_openai_responses_request_body_with_model_directives,
|
2026-05-02 13:23:54 +08:00
|
|
|
build_local_success_background_report, build_local_success_conversion_background_report,
|
2026-05-08 22:03:17 +08:00
|
|
|
build_openai_image_provider_body_from_response_stream_sync_body,
|
|
|
|
|
build_openai_image_provider_request_body,
|
|
|
|
|
build_openai_image_request_body_from_gemini_image_request,
|
|
|
|
|
build_openai_image_response_from_gemini_response,
|
|
|
|
|
build_openai_image_response_from_response_stream_sync_body, build_openai_responses_response,
|
2026-04-12 01:52:25 +08:00
|
|
|
build_standard_request_body, build_standard_request_body_from_canonical,
|
2026-05-03 14:48:25 +08:00
|
|
|
build_standard_request_body_from_canonical_with_model_directives,
|
2026-05-06 23:48:31 +08:00
|
|
|
build_standard_request_body_with_model_directives,
|
|
|
|
|
build_standard_request_body_with_model_directives_and_request_headers,
|
|
|
|
|
calculate_kiro_context_input_tokens, canonicalize_tool_arguments,
|
|
|
|
|
convert_claude_chat_response_to_openai_chat, convert_claude_response_to_openai_responses,
|
|
|
|
|
convert_gemini_chat_response_to_openai_chat, convert_gemini_response_to_openai_responses,
|
|
|
|
|
convert_openai_chat_request_to_claude_request, convert_openai_chat_request_to_gemini_request,
|
2026-04-26 20:32:55 +08:00
|
|
|
convert_openai_chat_request_to_openai_responses_request,
|
|
|
|
|
convert_openai_chat_response_to_claude_chat, convert_openai_chat_response_to_gemini_chat,
|
|
|
|
|
convert_openai_chat_response_to_openai_responses,
|
2026-05-03 17:32:41 +08:00
|
|
|
convert_openai_responses_response_to_openai_chat, convert_request,
|
|
|
|
|
convert_standard_chat_response, convert_standard_cli_response, copy_request_number_field,
|
|
|
|
|
copy_request_number_field_as, core_error_background_report_kind,
|
|
|
|
|
core_error_default_client_api_format, core_success_background_report_kind,
|
|
|
|
|
default_model_for_openai_image_operation, encode_done_sse, encode_json_sse,
|
|
|
|
|
encode_kiro_sse_events, estimate_kiro_tokens, extract_openai_text_content,
|
2026-05-02 13:23:54 +08:00
|
|
|
find_kiro_real_thinking_end_tag, find_kiro_real_thinking_end_tag_at_buffer_end,
|
|
|
|
|
find_kiro_real_thinking_start_tag, force_upstream_streaming_for_provider,
|
2026-05-08 22:03:17 +08:00
|
|
|
gemini_request_is_image_generation, implicit_sync_finalize_report_kind,
|
|
|
|
|
is_core_error_finalize_kind, is_matching_stream_http_request, is_matching_stream_request,
|
|
|
|
|
is_openai_image_stream_request, is_openai_responses_family_format, is_openai_responses_format,
|
|
|
|
|
kiro_crc32, map_claude_stop_reason, map_openai_reasoning_effort_to_claude_output,
|
2026-05-02 13:23:54 +08:00
|
|
|
map_openai_reasoning_effort_to_gemini_budget, maybe_bridge_standard_sync_json_to_stream,
|
|
|
|
|
maybe_build_ai_surface_stream_rewriter,
|
2026-04-09 00:10:38 +08:00
|
|
|
maybe_build_openai_chat_cross_format_sync_product_from_normalized_payload,
|
2026-05-02 13:23:54 +08:00
|
|
|
maybe_build_openai_image_sync_finalize_product,
|
2026-04-26 20:32:55 +08:00
|
|
|
maybe_build_openai_responses_cross_format_sync_product_from_normalized_payload,
|
|
|
|
|
maybe_build_openai_responses_same_family_sync_body_from_normalized_payload,
|
2026-05-02 13:23:54 +08:00
|
|
|
maybe_build_provider_private_stream_normalizer, maybe_build_standard_cross_format_sync_product,
|
2026-04-09 00:10:38 +08:00
|
|
|
maybe_build_standard_cross_format_sync_product_from_normalized_payload,
|
|
|
|
|
maybe_build_standard_same_format_sync_body_from_normalized_payload,
|
2026-05-03 14:48:25 +08:00
|
|
|
maybe_build_standard_sync_finalize_product_from_normalized_payload, model_directive_base_model,
|
|
|
|
|
normalize_api_format_alias, normalize_claude_request_to_openai_chat_request,
|
2026-05-02 13:23:54 +08:00
|
|
|
normalize_gemini_request_to_openai_chat_request, normalize_openai_image_request,
|
2026-04-26 20:32:55 +08:00
|
|
|
normalize_openai_responses_request_to_openai_chat_request,
|
|
|
|
|
normalize_provider_private_report_context, normalize_provider_private_response_value,
|
2026-05-02 13:23:54 +08:00
|
|
|
normalize_standard_request_to_openai_chat_request, openai_image_operation_from_path,
|
|
|
|
|
parse_direct_request_body, parse_openai_stop_sequences, parse_openai_tool_result_content,
|
2026-04-21 16:19:07 +08:00
|
|
|
prepare_local_success_response_parts, prepare_local_success_response_parts_owned,
|
|
|
|
|
provider_adaptation_allows_sync_finalize_envelope, provider_adaptation_anchor_api_format,
|
|
|
|
|
provider_adaptation_descriptor_for_envelope, provider_adaptation_descriptor_for_provider_type,
|
2026-04-09 00:10:38 +08:00
|
|
|
provider_adaptation_requires_eventstream_accept,
|
|
|
|
|
provider_adaptation_should_unwrap_stream_envelope,
|
2026-04-16 13:00:44 +08:00
|
|
|
provider_private_response_allows_sync_finalize, request_candidate_api_format_preference,
|
2026-05-02 13:23:54 +08:00
|
|
|
request_candidate_api_formats, request_conversion_kind,
|
|
|
|
|
request_conversion_requires_enable_flag, resolve_claude_stream_spec, resolve_claude_sync_spec,
|
2026-04-10 01:46:14 +08:00
|
|
|
resolve_execution_runtime_stream_plan_kind, resolve_execution_runtime_sync_plan_kind,
|
|
|
|
|
resolve_finalize_stream_rewrite_mode, resolve_gemini_files_stream_spec,
|
|
|
|
|
resolve_gemini_files_sync_spec, resolve_gemini_stream_spec, resolve_gemini_sync_spec,
|
2026-04-23 14:42:51 +08:00
|
|
|
resolve_local_image_stream_spec, resolve_local_image_sync_spec,
|
|
|
|
|
resolve_local_same_format_stream_spec, resolve_local_same_format_sync_spec,
|
2026-04-26 20:32:55 +08:00
|
|
|
resolve_local_video_sync_spec, resolve_openai_chat_max_tokens,
|
|
|
|
|
resolve_openai_responses_stream_spec, resolve_openai_responses_sync_spec,
|
2026-05-08 22:03:17 +08:00
|
|
|
resolve_requested_gemini_image_model_for_request,
|
2026-05-02 13:23:54 +08:00
|
|
|
resolve_requested_openai_image_model_for_request, stream_body_contains_error_event,
|
2026-05-02 18:19:39 +08:00
|
|
|
supports_stream_execution_decision_kind, supports_sync_execution_decision_kind,
|
2026-05-02 13:23:54 +08:00
|
|
|
sync_chat_response_conversion_kind, sync_cli_response_conversion_kind,
|
2026-05-02 18:19:39 +08:00
|
|
|
transform_provider_private_stream_line, value_as_u64, AiControlPlanRequest,
|
2026-05-06 02:29:17 +08:00
|
|
|
AiSurfaceFinalizeError, AiSurfaceStreamRewriter, CanonicalStreamFrame,
|
|
|
|
|
ChatGptWebImageRequestError, ClaudeClientEmitter, ClaudeProviderState,
|
|
|
|
|
ExecutionRuntimeAuthContext, FinalizeStreamRewriteMode, FormatContext, GeminiClientEmitter,
|
2026-05-08 22:03:17 +08:00
|
|
|
GeminiImageRequestForOpenAi, GeminiProviderState, KiroToClaudeCliStreamState,
|
|
|
|
|
LocalCoreSyncErrorKind, LocalGeminiFilesSpec, LocalOpenAiImageSpec, LocalOpenAiResponsesSpec,
|
|
|
|
|
LocalSameFormatProviderFamily, LocalSameFormatProviderSpec, LocalStandardSourceFamily,
|
|
|
|
|
LocalStandardSourceMode, LocalStandardSpec, LocalSyncReportParts, LocalVideoCreateFamily,
|
|
|
|
|
LocalVideoCreateSpec, NormalizedOpenAiImageRequest, OpenAIChatClientEmitter,
|
|
|
|
|
OpenAIChatProviderState, OpenAIResponsesClientEmitter, OpenAIResponsesProviderState,
|
|
|
|
|
OpenAiImageOperation, OpenAiImageRequestForGemini, OpenAiImageResponseFormat,
|
|
|
|
|
OpenAiImageStreamState, OpenAiImageSyncFinalizeProduct, ProviderAdaptationDescriptor,
|
|
|
|
|
ProviderAdaptationSurface, ProviderPrivateStreamNormalizer, RequestConversionKind,
|
|
|
|
|
StandardCrossFormatSyncProduct, StandardSyncFinalizeNormalizedProduct,
|
2026-05-06 02:29:17 +08:00
|
|
|
StreamingStandardFormatMatrix, SyncChatResponseConversionKind, SyncCliResponseConversionKind,
|
|
|
|
|
SyncToStreamBridgeOutcome, ANTIGRAVITY_V1INTERNAL_ENVELOPE_NAME, CLAUDE_CHAT_STREAM_PLAN_KIND,
|
2026-04-09 00:10:38 +08:00
|
|
|
CLAUDE_CHAT_STREAM_SUCCESS_REPORT_KIND, CLAUDE_CHAT_SYNC_ERROR_REPORT_KIND,
|
|
|
|
|
CLAUDE_CHAT_SYNC_FINALIZE_REPORT_KIND, CLAUDE_CHAT_SYNC_PLAN_KIND,
|
|
|
|
|
CLAUDE_CHAT_SYNC_SUCCESS_REPORT_KIND, CLAUDE_CLI_STREAM_PLAN_KIND,
|
|
|
|
|
CLAUDE_CLI_STREAM_SUCCESS_REPORT_KIND, CLAUDE_CLI_SYNC_ERROR_REPORT_KIND,
|
|
|
|
|
CLAUDE_CLI_SYNC_FINALIZE_REPORT_KIND, CLAUDE_CLI_SYNC_PLAN_KIND,
|
2026-04-23 14:42:51 +08:00
|
|
|
CLAUDE_CLI_SYNC_SUCCESS_REPORT_KIND, CODEX_OPENAI_IMAGE_DEFAULT_MODEL,
|
|
|
|
|
CODEX_OPENAI_IMAGE_DEFAULT_OUTPUT_FORMAT, CODEX_OPENAI_IMAGE_DEFAULT_VARIATION_MODEL,
|
|
|
|
|
CODEX_OPENAI_IMAGE_DEFAULT_VARIATION_PROMPT, CODEX_OPENAI_IMAGE_INTERNAL_MODEL,
|
|
|
|
|
EXECUTION_RUNTIME_STREAM_ACTION, EXECUTION_RUNTIME_STREAM_DECISION_ACTION,
|
|
|
|
|
EXECUTION_RUNTIME_SYNC_ACTION, EXECUTION_RUNTIME_SYNC_DECISION_ACTION,
|
|
|
|
|
GEMINI_CHAT_STREAM_PLAN_KIND, GEMINI_CHAT_STREAM_SUCCESS_REPORT_KIND,
|
|
|
|
|
GEMINI_CHAT_SYNC_ERROR_REPORT_KIND, GEMINI_CHAT_SYNC_FINALIZE_REPORT_KIND,
|
|
|
|
|
GEMINI_CHAT_SYNC_PLAN_KIND, GEMINI_CHAT_SYNC_SUCCESS_REPORT_KIND, GEMINI_CLI_STREAM_PLAN_KIND,
|
2026-04-09 00:10:38 +08:00
|
|
|
GEMINI_CLI_STREAM_SUCCESS_REPORT_KIND, GEMINI_CLI_SYNC_ERROR_REPORT_KIND,
|
|
|
|
|
GEMINI_CLI_SYNC_FINALIZE_REPORT_KIND, GEMINI_CLI_SYNC_PLAN_KIND,
|
|
|
|
|
GEMINI_CLI_SYNC_SUCCESS_REPORT_KIND, GEMINI_CLI_V1INTERNAL_ENVELOPE_NAME,
|
|
|
|
|
GEMINI_FILES_DELETE_PLAN_KIND, GEMINI_FILES_DOWNLOAD_PLAN_KIND, GEMINI_FILES_GET_PLAN_KIND,
|
|
|
|
|
GEMINI_FILES_LIST_PLAN_KIND, GEMINI_FILES_UPLOAD_PLAN_KIND, GEMINI_VIDEO_CANCEL_SYNC_PLAN_KIND,
|
|
|
|
|
GEMINI_VIDEO_CREATE_SYNC_FINALIZE_REPORT_KIND, GEMINI_VIDEO_CREATE_SYNC_PLAN_KIND,
|
|
|
|
|
KIRO_ENVELOPE_NAME, KIRO_MAX_THINKING_BUFFER, OPENAI_CHAT_STREAM_PLAN_KIND,
|
|
|
|
|
OPENAI_CHAT_STREAM_SUCCESS_REPORT_KIND, OPENAI_CHAT_SYNC_ERROR_REPORT_KIND,
|
|
|
|
|
OPENAI_CHAT_SYNC_FINALIZE_REPORT_KIND, OPENAI_CHAT_SYNC_PLAN_KIND,
|
2026-05-03 17:32:41 +08:00
|
|
|
OPENAI_CHAT_SYNC_SUCCESS_REPORT_KIND, OPENAI_EMBEDDING_SYNC_PLAN_KIND,
|
|
|
|
|
OPENAI_IMAGE_STREAM_PLAN_KIND, OPENAI_IMAGE_STREAM_SUCCESS_REPORT_KIND,
|
|
|
|
|
OPENAI_IMAGE_SYNC_FINALIZE_REPORT_KIND, OPENAI_IMAGE_SYNC_PLAN_KIND,
|
|
|
|
|
OPENAI_IMAGE_SYNC_SUCCESS_REPORT_KIND, OPENAI_RERANK_SYNC_PLAN_KIND,
|
2026-04-26 20:32:55 +08:00
|
|
|
OPENAI_RESPONSES_COMPACT_STREAM_PLAN_KIND, OPENAI_RESPONSES_COMPACT_STREAM_SUCCESS_REPORT_KIND,
|
|
|
|
|
OPENAI_RESPONSES_COMPACT_SYNC_ERROR_REPORT_KIND,
|
|
|
|
|
OPENAI_RESPONSES_COMPACT_SYNC_FINALIZE_REPORT_KIND, OPENAI_RESPONSES_COMPACT_SYNC_PLAN_KIND,
|
|
|
|
|
OPENAI_RESPONSES_COMPACT_SYNC_SUCCESS_REPORT_KIND, OPENAI_RESPONSES_STREAM_PLAN_KIND,
|
|
|
|
|
OPENAI_RESPONSES_STREAM_SUCCESS_REPORT_KIND, OPENAI_RESPONSES_SYNC_ERROR_REPORT_KIND,
|
|
|
|
|
OPENAI_RESPONSES_SYNC_FINALIZE_REPORT_KIND, OPENAI_RESPONSES_SYNC_PLAN_KIND,
|
|
|
|
|
OPENAI_RESPONSES_SYNC_SUCCESS_REPORT_KIND, OPENAI_VIDEO_CANCEL_SYNC_PLAN_KIND,
|
|
|
|
|
OPENAI_VIDEO_CONTENT_PLAN_KIND, OPENAI_VIDEO_CREATE_SYNC_FINALIZE_REPORT_KIND,
|
|
|
|
|
OPENAI_VIDEO_CREATE_SYNC_PLAN_KIND, OPENAI_VIDEO_DELETE_SYNC_PLAN_KIND,
|
|
|
|
|
OPENAI_VIDEO_REMIX_SYNC_PLAN_KIND,
|
2026-04-09 00:10:38 +08:00
|
|
|
};
|