seacloud-sdk 0.4.0 → 0.5.1

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.
package/dist/index.d.ts CHANGED
@@ -11882,4 +11882,830 @@ declare function llmChatCompletions(params: LlmChatCompletionsParams & {
11882
11882
  stream: true;
11883
11883
  }): Promise<AsyncIterable<ChatCompletionChunk>>;
11884
11884
 
11885
- export { type AlibabaAnimateAnyoneDetectParams, type AlibabaAnimateAnyoneDetectResource, type AlibabaAnimateAnyoneTemplateParams, type AlibabaAnimateAnyoneTemplateResource, type AlibabaAnimateAnyoneVideoParams, type AlibabaAnimateAnyoneVideoResource, type AlibabaQianwenImageParams, type AlibabaQianwenImageResource, type AlibabaWan22T2iFlashParams, type AlibabaWan22T2iFlashResource, type AlibabaWan22T2iPlusParams, type AlibabaWan22T2iPlusResource, type AlibabaWan25I2iPreviewParams, type AlibabaWan25I2iPreviewResource, type AlibabaWan25T2iPreviewParams, type AlibabaWan25T2iPreviewResource, type AlibabaWanx20T2iTurboParams, type AlibabaWanx20T2iTurboResource, type AlibabaWanx21I2vPlusParams, type AlibabaWanx21I2vPlusResource, type AlibabaWanx21I2vTurboParams, type AlibabaWanx21I2vTurboResource, type AlibabaWanx21T2iPlusParams, type AlibabaWanx21T2iPlusResource, type AlibabaWanx21T2iTurboParams, type AlibabaWanx21T2iTurboResource, type AlibabaWanx21T2vPlusParams, type AlibabaWanx21T2vPlusResource, type AlibabaWanx21T2vTurboParams, type AlibabaWanx21T2vTurboResource, type AlibabaWanx22I2vFlashParams, type AlibabaWanx22I2vFlashResource, type AlibabaWanx22I2vPlusParams, type AlibabaWanx22I2vPlusResource, type AlibabaWanx22T2vPlusParams, type AlibabaWanx22T2vPlusResource, type AlibabaWanx25I2vPreviewParams, type AlibabaWanx25I2vPreviewResource, type AlibabaWanx25T2vPreviewParams, type AlibabaWanx25T2vPreviewResource, type AlibabaWanx26I2vParams, type AlibabaWanx26I2vResource, type AlibabaWanx26ReferenceParams, type AlibabaWanx26ReferenceResource, type AlibabaWanx26T2vParams, type AlibabaWanx26T2vResource, type BlackforestlabsFlux11ProParams, type BlackforestlabsFlux11ProResource, type BlackforestlabsFlux1ProParams, type BlackforestlabsFlux1ProResource, type BlackforestlabsFlux2FlexEditParams, type BlackforestlabsFlux2FlexEditResource, type BlackforestlabsFlux2FlexParams, type BlackforestlabsFlux2FlexResource, type BlackforestlabsFlux2ProEditParams, type BlackforestlabsFlux2ProEditResource, type BlackforestlabsFlux2ProParams, type BlackforestlabsFlux2ProResource, type BlackforestlabsFluxKontextMaxParams, type BlackforestlabsFluxKontextMaxResource, type BlackforestlabsFluxKontextProParams, type BlackforestlabsFluxKontextProResource, type ChatCompletionChoice, type ChatCompletionChunk, type ChatCompletionChunkChoice, type ChatCompletionChunkDelta, type ChatCompletionResponse, type ChatCompletionUsage, type ChatMessage, type ChatMessageRole, type ElevenlabsTtsGeneratorParams, type ElevenlabsTtsGeneratorResource, type GoogleGemini3ProImageParams, type GoogleGemini3ProImageResource, type GoogleGeminiImageParams, type GoogleGeminiImageResource, type GoogleImagen4FastGenerateParams, type GoogleImagen4FastGenerateResource, type GoogleImagen4GenerateParams, type GoogleImagen4GenerateResource, type GoogleImagen4UltraGenerateParams, type GoogleImagen4UltraGenerateResource, type GoogleVeo20Generate001Params, type GoogleVeo20Generate001Resource, type GoogleVeo20GenerateExpParams, type GoogleVeo20GenerateExpResource, type GoogleVeo20GeneratePreviewParams, type GoogleVeo20GeneratePreviewResource, type GoogleVeo30FastGenerate001Params, type GoogleVeo30FastGenerate001Resource, type GoogleVeo30Generate001Params, type GoogleVeo30Generate001Resource, type GoogleVeo31Params, type GoogleVeo31Resource, type KlingAvatarParams, type KlingAvatarResource, type KlingDurationExtensionParams, type KlingDurationExtensionResource, type KlingEffectsMultiV15Params, type KlingEffectsMultiV15Resource, type KlingEffectsMultiV16Params, type KlingEffectsMultiV16Resource, type KlingEffectsMultiV1Params, type KlingEffectsMultiV1Resource, type KlingEffectsSingleParams, type KlingEffectsSingleResource, type KlingLipsyncParams, type KlingLipsyncResource, type KlingOmniImageParams, type KlingOmniImageResource, type KlingOmniVideoParams, type KlingOmniVideoResource, type KlingV15I2vParams, type KlingV15I2vResource, type KlingV15Params, type KlingV15Resource, type KlingV16I2vParams, type KlingV16I2vResource, type KlingV16Params, type KlingV16Resource, type KlingV1I2vParams, type KlingV1I2vResource, type KlingV1Params, type KlingV1Resource, type KlingV21I2vParams, type KlingV21I2vResource, type KlingV21MasterI2vParams, type KlingV21MasterI2vResource, type KlingV21MasterParams, type KlingV21MasterResource, type KlingV25TurboI2vParams, type KlingV25TurboI2vResource, type KlingV25TurboParams, type KlingV25TurboResource, type KlingV26I2vParams, type KlingV26I2vResource, type KlingV26Params, type KlingV26Resource, type KlingV2MasterI2vParams, type KlingV2MasterI2vResource, type KlingV2MasterParams, type KlingV2MasterResource, type LlmChatCompletionsParams, type MicrosoftGptImage15Params, type MicrosoftGptImage15Resource, type MicrosoftGptImage1Params, type MicrosoftGptImage1Resource, type MicrosoftSora2Params, type MicrosoftSora2Resource, type MinimaxHailuo02I2vParams, type MinimaxHailuo02I2vResource, type MinimaxHailuo02Params, type MinimaxHailuo02Resource, type MinimaxHailuo23FastI2vParams, type MinimaxHailuo23FastI2vResource, type MinimaxHailuo23I2vParams, type MinimaxHailuo23I2vResource, type MinimaxI2v01DirectorParams, type MinimaxI2v01DirectorResource, type MinimaxI2v01LiveParams, type MinimaxI2v01LiveResource, type MinimaxI2v01Params, type MinimaxI2v01Resource, type MinimaxT2aParams, type MinimaxT2aResource, type MinimaxT2v01DirectorParams, type MinimaxT2v01DirectorResource, type MinimaxT2v01Params, type MinimaxT2v01Resource, type PixverseV35I2vParams, type PixverseV35I2vResource, type PixverseV35T2vParams, type PixverseV35T2vResource, type PixverseV35TransitionParams, type PixverseV35TransitionResource, type PixverseV45I2vParams, type PixverseV45I2vResource, type PixverseV45T2vParams, type PixverseV45T2vResource, type PixverseV45TransitionParams, type PixverseV45TransitionResource, type PixverseV4I2vParams, type PixverseV4I2vResource, type PixverseV4T2vParams, type PixverseV4T2vResource, type PixverseV4TransitionParams, type PixverseV4TransitionResource, type PixverseV55I2vParams, type PixverseV55I2vResource, type PixverseV55T2vParams, type PixverseV55T2vResource, type PixverseV55TransitionParams, type PixverseV55TransitionResource, type PixverseV5I2vParams, type PixverseV5I2vResource, type PixverseV5T2vParams, type PixverseV5T2vResource, type PixverseV5TransitionParams, type PixverseV5TransitionResource, type PollingOptions, type RunwayGen3aTurboI2vParams, type RunwayGen3aTurboI2vResource, SeacloudClient, type SeacloudConfig, SeacloudError, type TaskError, type TaskResult, type TaskStatus, type TencentHunyuan3dParams, type TencentHunyuan3dProParams, type TencentHunyuan3dProResource, type TencentHunyuan3dRapidParams, type TencentHunyuan3dRapidResource, type TencentHunyuan3dResource, type TencentImageCreation3Params, type TencentImageCreation3Resource, type TencentMpsSuperResolutionParams, type TencentMpsSuperResolutionResource, type Vidu15I2vParams, type Vidu15I2vResource, type Vidu15Params, type Vidu15Resource, type Vidu20I2vParams, type Vidu20I2vResource, type ViduQ1I2vParams, type ViduQ1I2vResource, type ViduQ1Params, type ViduQ1Resource, type ViduQ2Params, type ViduQ2Resource, type ViduTemplateParams, type ViduTemplateResource, type ViduTemplateV2Params, type ViduTemplateV2Resource, type VolcesJimeng30Params, type VolcesJimeng30Resource, type VolcesJimeng31Params, type VolcesJimeng31Resource, type VolcesJimengDreamActorM1Params, type VolcesJimengDreamActorM1Resource, type VolcesJimengI2i30Params, type VolcesJimengI2i30Resource, type VolcesRealmanAvatarImitatorV2vParams, type VolcesRealmanAvatarImitatorV2vResource, type VolcesRealmanAvatarPictureOmniV15Params, type VolcesRealmanAvatarPictureOmniV15Resource, type VolcesRealmanAvatarPictureOmniV2Params, type VolcesRealmanAvatarPictureOmniV2Resource, type VolcesSeed3dParams, type VolcesSeed3dResource, type VolcesSeedance30I2vParams, type VolcesSeedance30I2vResource, type VolcesSeedance30Params, type VolcesSeedance30ProParams, type VolcesSeedance30ProResource, type VolcesSeedance30Resource, type VolcesSeedanceProFastParams, type VolcesSeedanceProFastResource, type VolcesSeededit20Params, type VolcesSeededit20Resource, type VolcesSeededit30I2iParams, type VolcesSeededit30I2iResource, type VolcesSeededit30Params, type VolcesSeededit30Resource, type VolcesSeededit3dStyleParams, type VolcesSeededit3dStyleResource, type VolcesSeededitMultiIpParams, type VolcesSeededitMultiIpResource, type VolcesSeededitMultiStyleParams, type VolcesSeededitMultiStyleResource, type VolcesSeededitPortraitParams, type VolcesSeededitPortraitResource, type VolcesSeededitSingleIpParams, type VolcesSeededitSingleIpResource, type VolcesSeedream30Params, type VolcesSeedream30Resource, type VolcesSeedream40Params, type VolcesSeedream40Resource, type VolcesSeedream45I2iParams, type VolcesSeedream45I2iResource, type VolcesSeedream45MultiBlendParams, type VolcesSeedream45MultiBlendResource, type VolcesSeedream45Params, type VolcesSeedream45Resource, type VolcesSubjectDetectionParams, type VolcesSubjectDetectionResource, type VolcesSubjectRecognitionParams, type VolcesSubjectRecognitionResource, alibabaAnimateAnyoneDetect, alibabaAnimateAnyoneTemplate, alibabaAnimateAnyoneVideo, alibabaQianwenImage, alibabaWan22T2iFlash, alibabaWan22T2iPlus, alibabaWan25I2iPreview, alibabaWan25T2iPreview, alibabaWanx20T2iTurbo, alibabaWanx21I2vPlus, alibabaWanx21I2vTurbo, alibabaWanx21T2iPlus, alibabaWanx21T2iTurbo, alibabaWanx21T2vPlus, alibabaWanx21T2vTurbo, alibabaWanx22I2vFlash, alibabaWanx22I2vPlus, alibabaWanx22T2vPlus, alibabaWanx25I2vPreview, alibabaWanx25T2vPreview, alibabaWanx26I2v, alibabaWanx26Reference, alibabaWanx26T2v, blackforestlabsFlux11Pro, blackforestlabsFlux1Pro, blackforestlabsFlux2Flex, blackforestlabsFlux2FlexEdit, blackforestlabsFlux2Pro, blackforestlabsFlux2ProEdit, blackforestlabsFluxKontextMax, blackforestlabsFluxKontextPro, createAndWaitTask, createConfig, elevenlabsTtsGenerator, getClient, getDefaultPollingOptions, googleGemini3ProImage, googleGeminiImage, googleImagen4FastGenerate, googleImagen4Generate, googleImagen4UltraGenerate, googleVeo20Generate001, googleVeo20GenerateExp, googleVeo20GeneratePreview, googleVeo30FastGenerate001, googleVeo30Generate001, googleVeo31, initSeacloud, klingAvatar, klingDurationExtension, klingEffectsMultiV1, klingEffectsMultiV15, klingEffectsMultiV16, klingEffectsSingle, klingLipsync, klingOmniImage, klingOmniVideo, klingV1, klingV15, klingV15I2v, klingV16, klingV16I2v, klingV1I2v, klingV21I2v, klingV21Master, klingV21MasterI2v, klingV25Turbo, klingV25TurboI2v, klingV26, klingV26I2v, klingV2Master, klingV2MasterI2v, llmChatCompletions, microsoftGptImage1, microsoftGptImage15, microsoftSora2, minimaxHailuo02, minimaxHailuo02I2v, minimaxHailuo23FastI2v, minimaxHailuo23I2v, minimaxI2v01, minimaxI2v01Director, minimaxI2v01Live, minimaxT2a, minimaxT2v01, minimaxT2v01Director, pixverseV35I2v, pixverseV35T2v, pixverseV35Transition, pixverseV45I2v, pixverseV45T2v, pixverseV45Transition, pixverseV4I2v, pixverseV4T2v, pixverseV4Transition, pixverseV55I2v, pixverseV55T2v, pixverseV55Transition, pixverseV5I2v, pixverseV5T2v, pixverseV5Transition, pollTaskUntilComplete, resetConfig, runwayGen3aTurboI2v, setDefaultPollingOptions, tencentHunyuan3d, tencentHunyuan3dPro, tencentHunyuan3dRapid, tencentImageCreation3, tencentMpsSuperResolution, validateConfig, vidu15, vidu15I2v, vidu20I2v, viduQ1, viduQ1I2v, viduQ2, viduTemplate, viduTemplateV2, volcesJimeng30, volcesJimeng31, volcesJimengDreamActorM1, volcesJimengI2i30, volcesRealmanAvatarImitatorV2v, volcesRealmanAvatarPictureOmniV15, volcesRealmanAvatarPictureOmniV2, volcesSeed3d, volcesSeedance30, volcesSeedance30I2v, volcesSeedance30Pro, volcesSeedanceProFast, volcesSeededit20, volcesSeededit30, volcesSeededit30I2i, volcesSeededit3dStyle, volcesSeededitMultiIp, volcesSeededitMultiStyle, volcesSeededitPortrait, volcesSeededitSingleIp, volcesSeedream30, volcesSeedream40, volcesSeedream45, volcesSeedream45I2i, volcesSeedream45MultiBlend, volcesSubjectDetection, volcesSubjectRecognition };
11885
+ /**
11886
+ * ============================================================================
11887
+ * SeaCloud Fast Agent Chat Completions API
11888
+ * ============================================================================
11889
+ *
11890
+ * This module provides a comprehensive API for interacting with SeaCloud's
11891
+ * Fast Agent system, which supports:
11892
+ *
11893
+ * - Multi-turn conversations with session management
11894
+ * - Tool calling for artifact generation (images, videos, music, etc.)
11895
+ * - Streaming and non-streaming response modes
11896
+ * - Multiple content types (text, image, video, audio, file)
11897
+ * - Flexible model selection (Claude, GPT, Gemini, etc.)
11898
+ *
11899
+ * IMPORTANT NOTES:
11900
+ * ================
11901
+ *
11902
+ * 1. REQUIRED PARAMETERS:
11903
+ * - agent_id: Caller-provided agent identifier
11904
+ * - messages: Array of conversation messages
11905
+ *
11906
+ * 2. TIMEOUT CONFIGURATION:
11907
+ * - Default timeout: 30 seconds (may be too short for tool calls)
11908
+ * - Recommended for agent operations: 120 seconds or more
11909
+ * - Set via initSeacloud({ timeout: 120000 })
11910
+ *
11911
+ * 3. STREAMING MODE:
11912
+ * - API always returns Server-Sent Events (SSE) format
11913
+ * - params.stream controls how SDK consumes the response
11914
+ * - For tool calls (image/video generation), streaming is RECOMMENDED
11915
+ *
11916
+ * 4. AUTHENTICATION:
11917
+ * - Requires 'X-Project: SeaArt' header (automatically added)
11918
+ * - Uses Bearer token authentication
11919
+ *
11920
+ * 5. SESSION MANAGEMENT:
11921
+ * - Use session_id to maintain multi-turn conversations
11922
+ * - Increment seq for each message in the session
11923
+ *
11924
+ * @see AGENT_API.md for detailed documentation and examples
11925
+ */
11926
+ /**
11927
+ * Message content type
11928
+ */
11929
+ type AgentMessageContentType = 'text' | 'image' | 'video' | 'audio' | 'file';
11930
+ /**
11931
+ * Base message content
11932
+ */
11933
+ interface BaseMessageContent {
11934
+ type: AgentMessageContentType;
11935
+ }
11936
+ /**
11937
+ * Text message content
11938
+ */
11939
+ interface TextMessageContent extends BaseMessageContent {
11940
+ type: 'text';
11941
+ text: string;
11942
+ }
11943
+ /**
11944
+ * Image message content
11945
+ */
11946
+ interface ImageMessageContent extends BaseMessageContent {
11947
+ type: 'image';
11948
+ image_url: string;
11949
+ }
11950
+ /**
11951
+ * Video message content
11952
+ */
11953
+ interface VideoMessageContent extends BaseMessageContent {
11954
+ type: 'video';
11955
+ video_url: string;
11956
+ }
11957
+ /**
11958
+ * Audio message content
11959
+ */
11960
+ interface AudioMessageContent extends BaseMessageContent {
11961
+ type: 'audio';
11962
+ audio_url: string;
11963
+ }
11964
+ /**
11965
+ * File message content
11966
+ */
11967
+ interface FileMessageContent extends BaseMessageContent {
11968
+ type: 'file';
11969
+ file_url: string;
11970
+ }
11971
+ /**
11972
+ * Message content item (union type for type safety)
11973
+ */
11974
+ type AgentMessageContent = TextMessageContent | ImageMessageContent | VideoMessageContent | AudioMessageContent | FileMessageContent;
11975
+ /**
11976
+ * Message role type
11977
+ */
11978
+ type AgentMessageRole = 'developer' | 'user' | 'assistant' | 'tool';
11979
+ /**
11980
+ * Chat message
11981
+ */
11982
+ interface AgentMessage {
11983
+ /**
11984
+ * Message role
11985
+ * - developer: System instructions/prompts (equivalent to "system" role)
11986
+ * - user: User input messages
11987
+ * - assistant: AI assistant responses (for multi-turn conversations)
11988
+ * - tool: Tool execution results
11989
+ */
11990
+ role: AgentMessageRole;
11991
+ /**
11992
+ * Message content array
11993
+ */
11994
+ content: AgentMessageContent[];
11995
+ /**
11996
+ * Tool call ID (for role: 'tool')
11997
+ */
11998
+ tool_call_id?: string;
11999
+ /**
12000
+ * Tool name (for role: 'tool')
12001
+ */
12002
+ name?: string;
12003
+ }
12004
+ /**
12005
+ * Tool function definition
12006
+ */
12007
+ interface AgentToolFunction {
12008
+ /**
12009
+ * Tool name
12010
+ * Available tools:
12011
+ *
12012
+ * Image Generation:
12013
+ * - seagen_text2image_flux1d_artifact_tool
12014
+ * - seagen_text2image_seedream40_artifact_tool
12015
+ * - seagen_text2image_google_gemini3_pro_image_artifact_tool
12016
+ * - seagen_blackforestlabs_flux_2_pro_tool
12017
+ * - mm_volces_seedream_4_5_gateway_tool
12018
+ *
12019
+ * Image Editing:
12020
+ * - seagen_edit_image_google_artifact_tool
12021
+ * - seagen_blackforestlabs_flux_2_pro_edit_tool
12022
+ *
12023
+ * Video Generation:
12024
+ * - seagen_image2video_wanx26_artifact_tool
12025
+ * - seagen_text2video_wanx26_artifact_tool
12026
+ * - seagen_image2video_seedance_pro_fast_artifact_tool
12027
+ * - mm_text2video_kling_v2_6_gateway_tool
12028
+ * - mm_image2video_kling_v2_6_i2v_gateway_tool
12029
+ *
12030
+ * Music & Audio:
12031
+ * - seagen_text2song_mureka_artifact_tool
12032
+ * - seagen_text2lyrics_mureka_artifact_tool
12033
+ */
12034
+ name: string;
12035
+ /**
12036
+ * Tool description (optional)
12037
+ */
12038
+ description?: string;
12039
+ /**
12040
+ * Tool parameters schema (optional)
12041
+ */
12042
+ parameters?: Record<string, any>;
12043
+ }
12044
+ /**
12045
+ * Tool definition
12046
+ */
12047
+ interface AgentTool {
12048
+ /**
12049
+ * Tool type (always 'function')
12050
+ */
12051
+ type: 'function';
12052
+ /**
12053
+ * Function definition
12054
+ */
12055
+ function: AgentToolFunction;
12056
+ }
12057
+ /**
12058
+ * Agent chat completions request parameters
12059
+ */
12060
+ interface AgentChatCompletionsParams {
12061
+ /**
12062
+ * Agent ID to invoke
12063
+ * @example "seaverse_agent"
12064
+ * @example "seagen_agent"
12065
+ */
12066
+ agent_id: string;
12067
+ /**
12068
+ * Array of messages comprising the conversation
12069
+ */
12070
+ messages: AgentMessage[];
12071
+ /**
12072
+ * AI model to use for processing
12073
+ * @default "custom_openai/vertex-ai-claude-sonnet-4.5"
12074
+ * @example "gpt-4o"
12075
+ * @example "custom_openai/vertex-ai-claude-sonnet-4.5"
12076
+ */
12077
+ model?: string;
12078
+ /**
12079
+ * Sampling temperature for creativity control (0.0 to 1.0)
12080
+ * - 0.0: Focused and deterministic responses
12081
+ * - 1.0: Maximum creativity and randomness
12082
+ * @default 0.7
12083
+ */
12084
+ temperature?: number;
12085
+ /**
12086
+ * Session ID for multi-turn conversations
12087
+ * Used to maintain conversation context across multiple requests
12088
+ * Server returns this in the response; use it in subsequent calls
12089
+ */
12090
+ session_id?: string;
12091
+ /**
12092
+ * User identifier for tracking and analytics
12093
+ * Optional field for associating requests with specific users
12094
+ */
12095
+ user_id?: string;
12096
+ /**
12097
+ * Message ID for SSE reconnection (ADVANCED USE)
12098
+ * Only use this when resuming an interrupted streaming response
12099
+ * Server returns msg_id in response; use it to resume from disconnect point
12100
+ *
12101
+ * WARNING: Do NOT use for multi-turn conversations
12102
+ * For multi-turn, just include full message history + session_id
12103
+ *
12104
+ * @example
12105
+ * // DON'T do this for multi-turn:
12106
+ * // { msg_id: previousResponse.msg_id, seq: 1 }
12107
+ *
12108
+ * // DO this instead:
12109
+ * // { session_id: previousResponse.session_id, messages: [...allMessages] }
12110
+ */
12111
+ msg_id?: string;
12112
+ /**
12113
+ * Sequence number for message resumption (ADVANCED USE)
12114
+ * Only used with msg_id for resuming interrupted streams
12115
+ * For regular multi-turn conversations, omit this parameter
12116
+ *
12117
+ * @default 0
12118
+ */
12119
+ seq?: number;
12120
+ /**
12121
+ * Business-specific parameters
12122
+ * Key-value pairs passed through to backend systems
12123
+ * Common use cases:
12124
+ * - aspect_ratio: Video/image aspect ratio (e.g., "16:9", "1:1")
12125
+ * - duration: Video duration in seconds
12126
+ * - resolution: Output resolution (e.g., "1080p", "4k")
12127
+ */
12128
+ metadata?: Record<string, any>;
12129
+ /**
12130
+ * List of tools available to the agent
12131
+ * Agent automatically selects appropriate tool based on user request
12132
+ */
12133
+ tools?: AgentTool[];
12134
+ /**
12135
+ * Enable Server-Sent Events streaming
12136
+ * @default true
12137
+ */
12138
+ stream?: boolean;
12139
+ /**
12140
+ * Maximum number of tokens to generate
12141
+ */
12142
+ max_tokens?: number;
12143
+ /**
12144
+ * Number of completions to generate
12145
+ * @default 1
12146
+ */
12147
+ n?: number;
12148
+ /**
12149
+ * Sequences where the API will stop generating
12150
+ */
12151
+ stop?: string | string[];
12152
+ /**
12153
+ * Penalty for new tokens based on presence (-2.0 to 2.0)
12154
+ * @default 0
12155
+ */
12156
+ presence_penalty?: number;
12157
+ /**
12158
+ * Penalty for new tokens based on frequency (-2.0 to 2.0)
12159
+ * @default 0
12160
+ */
12161
+ frequency_penalty?: number;
12162
+ /**
12163
+ * Top-p nucleus sampling (0-1)
12164
+ */
12165
+ top_p?: number;
12166
+ }
12167
+ /**
12168
+ * Artifact (generated file)
12169
+ */
12170
+ interface AgentArtifact {
12171
+ /**
12172
+ * File name
12173
+ * @example "image.webp"
12174
+ */
12175
+ name: string;
12176
+ /**
12177
+ * CDN URL to access the file
12178
+ */
12179
+ url: string;
12180
+ /**
12181
+ * Content type
12182
+ * @example "image" | "video" | "audio"
12183
+ */
12184
+ type: string;
12185
+ /**
12186
+ * MIME type
12187
+ * @example "image/webp" | "video/mp4" | "audio/mp3"
12188
+ */
12189
+ mime_type?: string;
12190
+ /**
12191
+ * File size in bytes
12192
+ */
12193
+ size?: number;
12194
+ /**
12195
+ * Duration in seconds (for video/audio)
12196
+ */
12197
+ duration?: number;
12198
+ /**
12199
+ * Width in pixels (for image/video)
12200
+ */
12201
+ width?: number;
12202
+ /**
12203
+ * Height in pixels (for image/video)
12204
+ */
12205
+ height?: number;
12206
+ /**
12207
+ * Additional metadata
12208
+ */
12209
+ [key: string]: any;
12210
+ }
12211
+ /**
12212
+ * Tool call information
12213
+ */
12214
+ interface AgentToolCall {
12215
+ /**
12216
+ * Tool call ID
12217
+ */
12218
+ id: string;
12219
+ /**
12220
+ * Tool type
12221
+ */
12222
+ type: 'function';
12223
+ /**
12224
+ * Function call details
12225
+ */
12226
+ function: {
12227
+ /**
12228
+ * Function name
12229
+ */
12230
+ name: string;
12231
+ /**
12232
+ * Function arguments (JSON string)
12233
+ */
12234
+ arguments: string;
12235
+ };
12236
+ /**
12237
+ * Tool call index
12238
+ */
12239
+ index?: number;
12240
+ }
12241
+ /**
12242
+ * Delta content for streaming chunks
12243
+ */
12244
+ interface AgentChatCompletionDelta {
12245
+ /**
12246
+ * Message role (only in first chunk)
12247
+ */
12248
+ role?: AgentMessageRole;
12249
+ /**
12250
+ * Content delta (string or array)
12251
+ */
12252
+ content?: string | AgentMessageContent[];
12253
+ /**
12254
+ * Artifacts (generated files)
12255
+ */
12256
+ artifacts?: AgentArtifact[];
12257
+ /**
12258
+ * Tool calls
12259
+ */
12260
+ tool_calls?: AgentToolCall[];
12261
+ /**
12262
+ * Refusal message
12263
+ */
12264
+ refusal?: string | null;
12265
+ /**
12266
+ * Function call (deprecated, use tool_calls)
12267
+ */
12268
+ function_call?: any;
12269
+ /**
12270
+ * Audio content
12271
+ */
12272
+ audio?: any;
12273
+ /**
12274
+ * Additional provider-specific fields
12275
+ */
12276
+ provider_specific_fields?: any;
12277
+ }
12278
+ /**
12279
+ * Content filter result
12280
+ */
12281
+ interface AgentContentFilterResult {
12282
+ /**
12283
+ * Error information
12284
+ */
12285
+ error?: {
12286
+ /**
12287
+ * Error code
12288
+ */
12289
+ code: string;
12290
+ /**
12291
+ * Error message
12292
+ */
12293
+ message: string;
12294
+ };
12295
+ /**
12296
+ * Additional filter results
12297
+ */
12298
+ [key: string]: any;
12299
+ }
12300
+ /**
12301
+ * Chat completion choice (streaming)
12302
+ */
12303
+ interface AgentChatCompletionChunkChoice {
12304
+ /**
12305
+ * Choice index
12306
+ */
12307
+ index: number;
12308
+ /**
12309
+ * Delta message for this chunk
12310
+ */
12311
+ delta: AgentChatCompletionDelta;
12312
+ /**
12313
+ * Finish reason (only in last chunk)
12314
+ * - "stop": Natural completion
12315
+ * - "length": Maximum token limit reached
12316
+ * - "tool_calls": Tool execution triggered
12317
+ * - "content_filter": Content filtered
12318
+ */
12319
+ finish_reason: string | null;
12320
+ /**
12321
+ * Log probabilities
12322
+ */
12323
+ logprobs?: any;
12324
+ /**
12325
+ * Content filter results
12326
+ */
12327
+ content_filter_results?: AgentContentFilterResult;
12328
+ /**
12329
+ * Content filter result (singular)
12330
+ */
12331
+ content_filter_result?: AgentContentFilterResult;
12332
+ }
12333
+ /**
12334
+ * Usage statistics
12335
+ */
12336
+ interface AgentUsage {
12337
+ /**
12338
+ * Prompt tokens
12339
+ */
12340
+ prompt_tokens: number;
12341
+ /**
12342
+ * Completion tokens
12343
+ */
12344
+ completion_tokens: number;
12345
+ /**
12346
+ * Total tokens
12347
+ */
12348
+ total_tokens: number;
12349
+ /**
12350
+ * Completion tokens details
12351
+ */
12352
+ completion_tokens_details?: {
12353
+ /**
12354
+ * Accepted prediction tokens
12355
+ */
12356
+ accepted_prediction_tokens?: number;
12357
+ /**
12358
+ * Audio tokens
12359
+ */
12360
+ audio_tokens?: number;
12361
+ /**
12362
+ * Reasoning tokens
12363
+ */
12364
+ reasoning_tokens?: number;
12365
+ /**
12366
+ * Rejected prediction tokens
12367
+ */
12368
+ rejected_prediction_tokens?: number;
12369
+ };
12370
+ /**
12371
+ * Prompt tokens details
12372
+ */
12373
+ prompt_tokens_details?: {
12374
+ /**
12375
+ * Audio tokens
12376
+ */
12377
+ audio_tokens?: number;
12378
+ /**
12379
+ * Cached tokens
12380
+ */
12381
+ cached_tokens?: number;
12382
+ /**
12383
+ * Text tokens
12384
+ */
12385
+ text_tokens?: number | null;
12386
+ /**
12387
+ * Image tokens
12388
+ */
12389
+ image_tokens?: number | null;
12390
+ };
12391
+ /**
12392
+ * Cost in USD
12393
+ */
12394
+ cost?: number;
12395
+ }
12396
+ /**
12397
+ * Chat completion streaming chunk
12398
+ */
12399
+ interface AgentChatCompletionChunk {
12400
+ /**
12401
+ * Unique identifier for the completion
12402
+ */
12403
+ id: string;
12404
+ /**
12405
+ * Object type (always "chat.completion.chunk")
12406
+ */
12407
+ object: string;
12408
+ /**
12409
+ * Unix timestamp
12410
+ */
12411
+ created: number;
12412
+ /**
12413
+ * Model used
12414
+ */
12415
+ model: string;
12416
+ /**
12417
+ * System fingerprint
12418
+ */
12419
+ system_fingerprint?: string;
12420
+ /**
12421
+ * List of choices
12422
+ */
12423
+ choices: AgentChatCompletionChunkChoice[];
12424
+ /**
12425
+ * Usage statistics (usually in last chunk)
12426
+ */
12427
+ usage?: AgentUsage;
12428
+ /**
12429
+ * Session ID for conversation continuation
12430
+ */
12431
+ session_id?: string;
12432
+ /**
12433
+ * Message ID
12434
+ */
12435
+ msg_id?: string;
12436
+ /**
12437
+ * Provider-specific fields
12438
+ */
12439
+ provider_specific_fields?: any;
12440
+ /**
12441
+ * Citations
12442
+ */
12443
+ citations?: any;
12444
+ /**
12445
+ * Service tier
12446
+ */
12447
+ service_tier?: string | null;
12448
+ /**
12449
+ * Obfuscation
12450
+ */
12451
+ obfuscation?: string;
12452
+ }
12453
+ /**
12454
+ * Message in non-streaming response
12455
+ */
12456
+ interface AgentResponseMessage {
12457
+ /**
12458
+ * Message role
12459
+ */
12460
+ role: AgentMessageRole;
12461
+ /**
12462
+ * Message content
12463
+ */
12464
+ content: string;
12465
+ /**
12466
+ * Tool calls
12467
+ */
12468
+ tool_calls?: AgentToolCall[];
12469
+ /**
12470
+ * Refusal message
12471
+ */
12472
+ refusal?: string | null;
12473
+ /**
12474
+ * Function call (deprecated)
12475
+ */
12476
+ function_call?: any;
12477
+ /**
12478
+ * Audio content
12479
+ */
12480
+ audio?: any;
12481
+ }
12482
+ /**
12483
+ * Chat completion choice (non-streaming)
12484
+ */
12485
+ interface AgentChatCompletionChoice {
12486
+ /**
12487
+ * Choice index
12488
+ */
12489
+ index: number;
12490
+ /**
12491
+ * Message
12492
+ */
12493
+ message: AgentResponseMessage;
12494
+ /**
12495
+ * Finish reason
12496
+ */
12497
+ finish_reason: string | null;
12498
+ /**
12499
+ * Log probabilities
12500
+ */
12501
+ logprobs?: any;
12502
+ /**
12503
+ * Content filter results
12504
+ */
12505
+ content_filter_results?: AgentContentFilterResult;
12506
+ }
12507
+ /**
12508
+ * Chat completion response (non-streaming)
12509
+ */
12510
+ interface AgentChatCompletionResponse {
12511
+ /**
12512
+ * Unique identifier
12513
+ */
12514
+ id: string;
12515
+ /**
12516
+ * Object type (always "chat.completion")
12517
+ */
12518
+ object: string;
12519
+ /**
12520
+ * Unix timestamp
12521
+ */
12522
+ created: number;
12523
+ /**
12524
+ * Model used
12525
+ */
12526
+ model: string;
12527
+ /**
12528
+ * System fingerprint
12529
+ */
12530
+ system_fingerprint?: string;
12531
+ /**
12532
+ * List of choices
12533
+ */
12534
+ choices: AgentChatCompletionChoice[];
12535
+ /**
12536
+ * Usage statistics
12537
+ */
12538
+ usage?: AgentUsage;
12539
+ /**
12540
+ * Session ID
12541
+ */
12542
+ session_id?: string;
12543
+ /**
12544
+ * Message ID
12545
+ */
12546
+ msg_id?: string;
12547
+ /**
12548
+ * Provider-specific fields
12549
+ */
12550
+ provider_specific_fields?: any;
12551
+ /**
12552
+ * Service tier
12553
+ */
12554
+ service_tier?: string | null;
12555
+ /**
12556
+ * Generated artifacts
12557
+ */
12558
+ artifacts?: AgentArtifact[];
12559
+ }
12560
+ /**
12561
+ * Call SeaCloud Fast Agent API (non-streaming)
12562
+ *
12563
+ * @example
12564
+ * ```typescript
12565
+ * import { initSeacloud, agentChatCompletions } from 'seacloud-sdk';
12566
+ *
12567
+ * initSeacloud({
12568
+ * apiKey: 'your-api-key',
12569
+ * baseUrl: 'http://proxy.sg.seaverse.dev',
12570
+ * });
12571
+ *
12572
+ * // Simple chat
12573
+ * const response = await agentChatCompletions({
12574
+ * agent_id: 'seaverse_agent',
12575
+ * messages: [
12576
+ * {
12577
+ * role: 'user',
12578
+ * content: [{ type: 'text', text: 'Hello!' }]
12579
+ * }
12580
+ * ],
12581
+ * model: 'gpt-4o',
12582
+ * });
12583
+ *
12584
+ * console.log(response.choices[0].message.content);
12585
+ * ```
12586
+ *
12587
+ * @example
12588
+ * ```typescript
12589
+ * // Generate an image
12590
+ * const response = await agentChatCompletions({
12591
+ * agent_id: 'seaverse_agent',
12592
+ * messages: [
12593
+ * {
12594
+ * role: 'user',
12595
+ * content: [{ type: 'text', text: 'Generate a cute puppy photo' }]
12596
+ * }
12597
+ * ],
12598
+ * model: 'gpt-4o',
12599
+ * tools: [
12600
+ * {
12601
+ * type: 'function',
12602
+ * function: { name: 'seagen_text2image_flux1d_artifact_tool' }
12603
+ * }
12604
+ * ]
12605
+ * });
12606
+ *
12607
+ * // Access generated image
12608
+ * const imageUrl = response.artifacts?.[0]?.url;
12609
+ * ```
12610
+ *
12611
+ * @param params Request parameters
12612
+ * @returns Chat completion response
12613
+ */
12614
+ declare function agentChatCompletions(params: AgentChatCompletionsParams & {
12615
+ stream?: false;
12616
+ }): Promise<AgentChatCompletionResponse>;
12617
+ /**
12618
+ * Call SeaCloud Fast Agent API (streaming)
12619
+ *
12620
+ * @example
12621
+ * ```typescript
12622
+ * import { initSeacloud, agentChatCompletions } from 'seacloud-sdk';
12623
+ *
12624
+ * initSeacloud({
12625
+ * apiKey: 'your-api-key',
12626
+ * baseUrl: 'http://proxy.sg.seaverse.dev',
12627
+ * });
12628
+ *
12629
+ * const stream = await agentChatCompletions({
12630
+ * agent_id: 'seaverse_agent',
12631
+ * messages: [
12632
+ * {
12633
+ * role: 'user',
12634
+ * content: [{ type: 'text', text: 'Tell me a story' }]
12635
+ * }
12636
+ * ],
12637
+ * model: 'gpt-4o',
12638
+ * stream: true,
12639
+ * });
12640
+ *
12641
+ * for await (const chunk of stream) {
12642
+ * const content = chunk.choices[0]?.delta?.content;
12643
+ * if (typeof content === 'string') {
12644
+ * process.stdout.write(content);
12645
+ * }
12646
+ *
12647
+ * // Handle artifacts
12648
+ * const artifacts = chunk.choices[0]?.delta?.artifacts;
12649
+ * if (artifacts) {
12650
+ * console.log('Generated artifacts:', artifacts);
12651
+ * }
12652
+ * }
12653
+ * ```
12654
+ *
12655
+ * @param params Request parameters with stream: true
12656
+ * @returns Async iterator of chat completion chunks
12657
+ */
12658
+ declare function agentChatCompletions(params: AgentChatCompletionsParams & {
12659
+ stream: true;
12660
+ }): Promise<AsyncIterable<AgentChatCompletionChunk>>;
12661
+ /**
12662
+ * Helper function to create a text message
12663
+ *
12664
+ * @param role - Message role ('user' | 'assistant' | 'developer' | 'tool')
12665
+ * @param text - Text content
12666
+ * @returns Agent message with text content
12667
+ *
12668
+ * @example
12669
+ * ```typescript
12670
+ * const message = createTextMessage('user', 'Hello!');
12671
+ * ```
12672
+ */
12673
+ declare function createTextMessage(role: AgentMessageRole, text: string): AgentMessage;
12674
+ /**
12675
+ * Helper function to create a message with image
12676
+ *
12677
+ * @param role - Message role ('user' | 'assistant' | 'developer' | 'tool')
12678
+ * @param text - Text content
12679
+ * @param imageUrl - Image URL
12680
+ * @returns Agent message with text and image content
12681
+ *
12682
+ * @example
12683
+ * ```typescript
12684
+ * const message = createImageMessage('user', 'What is this?', 'https://example.com/image.jpg');
12685
+ * ```
12686
+ */
12687
+ declare function createImageMessage(role: AgentMessageRole, text: string, imageUrl: string): AgentMessage;
12688
+ /**
12689
+ * Helper function to create a message with video
12690
+ *
12691
+ * @param role - Message role
12692
+ * @param text - Text content
12693
+ * @param videoUrl - Video URL
12694
+ * @returns Agent message with text and video content
12695
+ */
12696
+ declare function createVideoMessage(role: AgentMessageRole, text: string, videoUrl: string): AgentMessage;
12697
+ /**
12698
+ * Helper function to create a message with audio
12699
+ *
12700
+ * @param role - Message role
12701
+ * @param text - Text content
12702
+ * @param audioUrl - Audio URL
12703
+ * @returns Agent message with text and audio content
12704
+ */
12705
+ declare function createAudioMessage(role: AgentMessageRole, text: string, audioUrl: string): AgentMessage;
12706
+ /**
12707
+ * Helper function to create a tool
12708
+ */
12709
+ declare function createTool(toolName: string): AgentTool;
12710
+
12711
+ export { type AgentArtifact, type AgentChatCompletionChoice, type AgentChatCompletionChunk, type AgentChatCompletionChunkChoice, type AgentChatCompletionDelta, type AgentChatCompletionResponse, type AgentChatCompletionsParams, type AgentContentFilterResult, type AgentMessage, type AgentMessageContent, type AgentMessageContentType, type AgentMessageRole, type AgentResponseMessage, type AgentTool, type AgentToolCall, type AgentToolFunction, type AgentUsage, type AlibabaAnimateAnyoneDetectParams, type AlibabaAnimateAnyoneDetectResource, type AlibabaAnimateAnyoneTemplateParams, type AlibabaAnimateAnyoneTemplateResource, type AlibabaAnimateAnyoneVideoParams, type AlibabaAnimateAnyoneVideoResource, type AlibabaQianwenImageParams, type AlibabaQianwenImageResource, type AlibabaWan22T2iFlashParams, type AlibabaWan22T2iFlashResource, type AlibabaWan22T2iPlusParams, type AlibabaWan22T2iPlusResource, type AlibabaWan25I2iPreviewParams, type AlibabaWan25I2iPreviewResource, type AlibabaWan25T2iPreviewParams, type AlibabaWan25T2iPreviewResource, type AlibabaWanx20T2iTurboParams, type AlibabaWanx20T2iTurboResource, type AlibabaWanx21I2vPlusParams, type AlibabaWanx21I2vPlusResource, type AlibabaWanx21I2vTurboParams, type AlibabaWanx21I2vTurboResource, type AlibabaWanx21T2iPlusParams, type AlibabaWanx21T2iPlusResource, type AlibabaWanx21T2iTurboParams, type AlibabaWanx21T2iTurboResource, type AlibabaWanx21T2vPlusParams, type AlibabaWanx21T2vPlusResource, type AlibabaWanx21T2vTurboParams, type AlibabaWanx21T2vTurboResource, type AlibabaWanx22I2vFlashParams, type AlibabaWanx22I2vFlashResource, type AlibabaWanx22I2vPlusParams, type AlibabaWanx22I2vPlusResource, type AlibabaWanx22T2vPlusParams, type AlibabaWanx22T2vPlusResource, type AlibabaWanx25I2vPreviewParams, type AlibabaWanx25I2vPreviewResource, type AlibabaWanx25T2vPreviewParams, type AlibabaWanx25T2vPreviewResource, type AlibabaWanx26I2vParams, type AlibabaWanx26I2vResource, type AlibabaWanx26ReferenceParams, type AlibabaWanx26ReferenceResource, type AlibabaWanx26T2vParams, type AlibabaWanx26T2vResource, type BlackforestlabsFlux11ProParams, type BlackforestlabsFlux11ProResource, type BlackforestlabsFlux1ProParams, type BlackforestlabsFlux1ProResource, type BlackforestlabsFlux2FlexEditParams, type BlackforestlabsFlux2FlexEditResource, type BlackforestlabsFlux2FlexParams, type BlackforestlabsFlux2FlexResource, type BlackforestlabsFlux2ProEditParams, type BlackforestlabsFlux2ProEditResource, type BlackforestlabsFlux2ProParams, type BlackforestlabsFlux2ProResource, type BlackforestlabsFluxKontextMaxParams, type BlackforestlabsFluxKontextMaxResource, type BlackforestlabsFluxKontextProParams, type BlackforestlabsFluxKontextProResource, type ChatCompletionChoice, type ChatCompletionChunk, type ChatCompletionChunkChoice, type ChatCompletionChunkDelta, type ChatCompletionResponse, type ChatCompletionUsage, type ChatMessage, type ChatMessageRole, type ElevenlabsTtsGeneratorParams, type ElevenlabsTtsGeneratorResource, type GoogleGemini3ProImageParams, type GoogleGemini3ProImageResource, type GoogleGeminiImageParams, type GoogleGeminiImageResource, type GoogleImagen4FastGenerateParams, type GoogleImagen4FastGenerateResource, type GoogleImagen4GenerateParams, type GoogleImagen4GenerateResource, type GoogleImagen4UltraGenerateParams, type GoogleImagen4UltraGenerateResource, type GoogleVeo20Generate001Params, type GoogleVeo20Generate001Resource, type GoogleVeo20GenerateExpParams, type GoogleVeo20GenerateExpResource, type GoogleVeo20GeneratePreviewParams, type GoogleVeo20GeneratePreviewResource, type GoogleVeo30FastGenerate001Params, type GoogleVeo30FastGenerate001Resource, type GoogleVeo30Generate001Params, type GoogleVeo30Generate001Resource, type GoogleVeo31Params, type GoogleVeo31Resource, type KlingAvatarParams, type KlingAvatarResource, type KlingDurationExtensionParams, type KlingDurationExtensionResource, type KlingEffectsMultiV15Params, type KlingEffectsMultiV15Resource, type KlingEffectsMultiV16Params, type KlingEffectsMultiV16Resource, type KlingEffectsMultiV1Params, type KlingEffectsMultiV1Resource, type KlingEffectsSingleParams, type KlingEffectsSingleResource, type KlingLipsyncParams, type KlingLipsyncResource, type KlingOmniImageParams, type KlingOmniImageResource, type KlingOmniVideoParams, type KlingOmniVideoResource, type KlingV15I2vParams, type KlingV15I2vResource, type KlingV15Params, type KlingV15Resource, type KlingV16I2vParams, type KlingV16I2vResource, type KlingV16Params, type KlingV16Resource, type KlingV1I2vParams, type KlingV1I2vResource, type KlingV1Params, type KlingV1Resource, type KlingV21I2vParams, type KlingV21I2vResource, type KlingV21MasterI2vParams, type KlingV21MasterI2vResource, type KlingV21MasterParams, type KlingV21MasterResource, type KlingV25TurboI2vParams, type KlingV25TurboI2vResource, type KlingV25TurboParams, type KlingV25TurboResource, type KlingV26I2vParams, type KlingV26I2vResource, type KlingV26Params, type KlingV26Resource, type KlingV2MasterI2vParams, type KlingV2MasterI2vResource, type KlingV2MasterParams, type KlingV2MasterResource, type LlmChatCompletionsParams, type MicrosoftGptImage15Params, type MicrosoftGptImage15Resource, type MicrosoftGptImage1Params, type MicrosoftGptImage1Resource, type MicrosoftSora2Params, type MicrosoftSora2Resource, type MinimaxHailuo02I2vParams, type MinimaxHailuo02I2vResource, type MinimaxHailuo02Params, type MinimaxHailuo02Resource, type MinimaxHailuo23FastI2vParams, type MinimaxHailuo23FastI2vResource, type MinimaxHailuo23I2vParams, type MinimaxHailuo23I2vResource, type MinimaxI2v01DirectorParams, type MinimaxI2v01DirectorResource, type MinimaxI2v01LiveParams, type MinimaxI2v01LiveResource, type MinimaxI2v01Params, type MinimaxI2v01Resource, type MinimaxT2aParams, type MinimaxT2aResource, type MinimaxT2v01DirectorParams, type MinimaxT2v01DirectorResource, type MinimaxT2v01Params, type MinimaxT2v01Resource, type PixverseV35I2vParams, type PixverseV35I2vResource, type PixverseV35T2vParams, type PixverseV35T2vResource, type PixverseV35TransitionParams, type PixverseV35TransitionResource, type PixverseV45I2vParams, type PixverseV45I2vResource, type PixverseV45T2vParams, type PixverseV45T2vResource, type PixverseV45TransitionParams, type PixverseV45TransitionResource, type PixverseV4I2vParams, type PixverseV4I2vResource, type PixverseV4T2vParams, type PixverseV4T2vResource, type PixverseV4TransitionParams, type PixverseV4TransitionResource, type PixverseV55I2vParams, type PixverseV55I2vResource, type PixverseV55T2vParams, type PixverseV55T2vResource, type PixverseV55TransitionParams, type PixverseV55TransitionResource, type PixverseV5I2vParams, type PixverseV5I2vResource, type PixverseV5T2vParams, type PixverseV5T2vResource, type PixverseV5TransitionParams, type PixverseV5TransitionResource, type PollingOptions, type RunwayGen3aTurboI2vParams, type RunwayGen3aTurboI2vResource, SeacloudClient, type SeacloudConfig, SeacloudError, type TaskError, type TaskResult, type TaskStatus, type TencentHunyuan3dParams, type TencentHunyuan3dProParams, type TencentHunyuan3dProResource, type TencentHunyuan3dRapidParams, type TencentHunyuan3dRapidResource, type TencentHunyuan3dResource, type TencentImageCreation3Params, type TencentImageCreation3Resource, type TencentMpsSuperResolutionParams, type TencentMpsSuperResolutionResource, type Vidu15I2vParams, type Vidu15I2vResource, type Vidu15Params, type Vidu15Resource, type Vidu20I2vParams, type Vidu20I2vResource, type ViduQ1I2vParams, type ViduQ1I2vResource, type ViduQ1Params, type ViduQ1Resource, type ViduQ2Params, type ViduQ2Resource, type ViduTemplateParams, type ViduTemplateResource, type ViduTemplateV2Params, type ViduTemplateV2Resource, type VolcesJimeng30Params, type VolcesJimeng30Resource, type VolcesJimeng31Params, type VolcesJimeng31Resource, type VolcesJimengDreamActorM1Params, type VolcesJimengDreamActorM1Resource, type VolcesJimengI2i30Params, type VolcesJimengI2i30Resource, type VolcesRealmanAvatarImitatorV2vParams, type VolcesRealmanAvatarImitatorV2vResource, type VolcesRealmanAvatarPictureOmniV15Params, type VolcesRealmanAvatarPictureOmniV15Resource, type VolcesRealmanAvatarPictureOmniV2Params, type VolcesRealmanAvatarPictureOmniV2Resource, type VolcesSeed3dParams, type VolcesSeed3dResource, type VolcesSeedance30I2vParams, type VolcesSeedance30I2vResource, type VolcesSeedance30Params, type VolcesSeedance30ProParams, type VolcesSeedance30ProResource, type VolcesSeedance30Resource, type VolcesSeedanceProFastParams, type VolcesSeedanceProFastResource, type VolcesSeededit20Params, type VolcesSeededit20Resource, type VolcesSeededit30I2iParams, type VolcesSeededit30I2iResource, type VolcesSeededit30Params, type VolcesSeededit30Resource, type VolcesSeededit3dStyleParams, type VolcesSeededit3dStyleResource, type VolcesSeededitMultiIpParams, type VolcesSeededitMultiIpResource, type VolcesSeededitMultiStyleParams, type VolcesSeededitMultiStyleResource, type VolcesSeededitPortraitParams, type VolcesSeededitPortraitResource, type VolcesSeededitSingleIpParams, type VolcesSeededitSingleIpResource, type VolcesSeedream30Params, type VolcesSeedream30Resource, type VolcesSeedream40Params, type VolcesSeedream40Resource, type VolcesSeedream45I2iParams, type VolcesSeedream45I2iResource, type VolcesSeedream45MultiBlendParams, type VolcesSeedream45MultiBlendResource, type VolcesSeedream45Params, type VolcesSeedream45Resource, type VolcesSubjectDetectionParams, type VolcesSubjectDetectionResource, type VolcesSubjectRecognitionParams, type VolcesSubjectRecognitionResource, agentChatCompletions, alibabaAnimateAnyoneDetect, alibabaAnimateAnyoneTemplate, alibabaAnimateAnyoneVideo, alibabaQianwenImage, alibabaWan22T2iFlash, alibabaWan22T2iPlus, alibabaWan25I2iPreview, alibabaWan25T2iPreview, alibabaWanx20T2iTurbo, alibabaWanx21I2vPlus, alibabaWanx21I2vTurbo, alibabaWanx21T2iPlus, alibabaWanx21T2iTurbo, alibabaWanx21T2vPlus, alibabaWanx21T2vTurbo, alibabaWanx22I2vFlash, alibabaWanx22I2vPlus, alibabaWanx22T2vPlus, alibabaWanx25I2vPreview, alibabaWanx25T2vPreview, alibabaWanx26I2v, alibabaWanx26Reference, alibabaWanx26T2v, blackforestlabsFlux11Pro, blackforestlabsFlux1Pro, blackforestlabsFlux2Flex, blackforestlabsFlux2FlexEdit, blackforestlabsFlux2Pro, blackforestlabsFlux2ProEdit, blackforestlabsFluxKontextMax, blackforestlabsFluxKontextPro, createAndWaitTask, createAudioMessage, createConfig, createImageMessage, createTextMessage, createTool, createVideoMessage, elevenlabsTtsGenerator, getClient, getDefaultPollingOptions, googleGemini3ProImage, googleGeminiImage, googleImagen4FastGenerate, googleImagen4Generate, googleImagen4UltraGenerate, googleVeo20Generate001, googleVeo20GenerateExp, googleVeo20GeneratePreview, googleVeo30FastGenerate001, googleVeo30Generate001, googleVeo31, initSeacloud, klingAvatar, klingDurationExtension, klingEffectsMultiV1, klingEffectsMultiV15, klingEffectsMultiV16, klingEffectsSingle, klingLipsync, klingOmniImage, klingOmniVideo, klingV1, klingV15, klingV15I2v, klingV16, klingV16I2v, klingV1I2v, klingV21I2v, klingV21Master, klingV21MasterI2v, klingV25Turbo, klingV25TurboI2v, klingV26, klingV26I2v, klingV2Master, klingV2MasterI2v, llmChatCompletions, microsoftGptImage1, microsoftGptImage15, microsoftSora2, minimaxHailuo02, minimaxHailuo02I2v, minimaxHailuo23FastI2v, minimaxHailuo23I2v, minimaxI2v01, minimaxI2v01Director, minimaxI2v01Live, minimaxT2a, minimaxT2v01, minimaxT2v01Director, pixverseV35I2v, pixverseV35T2v, pixverseV35Transition, pixverseV45I2v, pixverseV45T2v, pixverseV45Transition, pixverseV4I2v, pixverseV4T2v, pixverseV4Transition, pixverseV55I2v, pixverseV55T2v, pixverseV55Transition, pixverseV5I2v, pixverseV5T2v, pixverseV5Transition, pollTaskUntilComplete, resetConfig, runwayGen3aTurboI2v, setDefaultPollingOptions, tencentHunyuan3d, tencentHunyuan3dPro, tencentHunyuan3dRapid, tencentImageCreation3, tencentMpsSuperResolution, validateConfig, vidu15, vidu15I2v, vidu20I2v, viduQ1, viduQ1I2v, viduQ2, viduTemplate, viduTemplateV2, volcesJimeng30, volcesJimeng31, volcesJimengDreamActorM1, volcesJimengI2i30, volcesRealmanAvatarImitatorV2v, volcesRealmanAvatarPictureOmniV15, volcesRealmanAvatarPictureOmniV2, volcesSeed3d, volcesSeedance30, volcesSeedance30I2v, volcesSeedance30Pro, volcesSeedanceProFast, volcesSeededit20, volcesSeededit30, volcesSeededit30I2i, volcesSeededit3dStyle, volcesSeededitMultiIp, volcesSeededitMultiStyle, volcesSeededitPortrait, volcesSeededitSingleIp, volcesSeedream30, volcesSeedream40, volcesSeedream45, volcesSeedream45I2i, volcesSeedream45MultiBlend, volcesSubjectDetection, volcesSubjectRecognition };