1010use WordPress \AiClient \Builders \PromptBuilder ;
1111use WordPress \AiClient \Files \DTO \File ;
1212use WordPress \AiClient \Files \Enums \FileTypeEnum ;
13+ use WordPress \AiClient \Files \Enums \MediaOrientationEnum ;
1314use WordPress \AiClient \Messages \DTO \Message ;
1415use WordPress \AiClient \Messages \DTO \MessagePart ;
1516use WordPress \AiClient \Messages \Enums \ModalityEnum ;
6667 * @method self as_output_schema(array<string, mixed> $schema) Sets the output schema.
6768 * @method self as_output_modalities(ModalityEnum ...$modalities) Sets the output modalities.
6869 * @method self as_output_file_type(FileTypeEnum $fileType) Sets the output file type.
70+ * @method self as_output_media_orientation(MediaOrientationEnum $orientation) Sets the output media orientation.
71+ * @method self as_output_media_aspect_ratio(string $aspectRatio) Sets the output media aspect ratio.
72+ * @method self as_output_speech_voice(string $voice) Sets the output speech voice.
6973 * @method self as_json_response(?array<string, mixed> $schema = null) Configures the prompt for JSON response output.
7074 * @method bool|WP_Error is_supported(?CapabilityEnum $capability = null) Checks if the prompt is supported for the given capability.
7175 * @method bool is_supported_for_text_generation() Checks if the prompt is supported for text generation.
8084 * @method GenerativeAiResult|WP_Error generate_image_result() Generates an image result from the prompt.
8185 * @method GenerativeAiResult|WP_Error generate_speech_result() Generates a speech result from the prompt.
8286 * @method GenerativeAiResult|WP_Error convert_text_to_speech_result() Converts text to speech and returns the result.
87+ * @method GenerativeAiResult|WP_Error generate_video_result() Generates a video result from the prompt.
8388 * @method string|WP_Error generate_text() Generates text from the prompt.
8489 * @method list<string>|WP_Error generate_texts(?int $candidateCount = null) Generates multiple text candidates from the prompt.
8590 * @method File|WP_Error generate_image() Generates an image from the prompt.
8893 * @method list<File>|WP_Error convert_text_to_speeches(?int $candidateCount = null) Converts text to multiple speech outputs.
8994 * @method File|WP_Error generate_speech() Generates speech from the prompt.
9095 * @method list<File>|WP_Error generate_speeches(?int $candidateCount = null) Generates multiple speech outputs from the prompt.
96+ * @method File|WP_Error generate_video() Generates a video from the prompt.
97+ * @method list<File>|WP_Error generate_videos(?int $candidateCount = null) Generates multiple videos from the prompt.
9198 */
9299class WP_AI_Client_Prompt_Builder {
93100
@@ -121,6 +128,7 @@ class WP_AI_Client_Prompt_Builder {
121128 'generate_image_result ' => true ,
122129 'generate_speech_result ' => true ,
123130 'convert_text_to_speech_result ' => true ,
131+ 'generate_video_result ' => true ,
124132 'generate_text ' => true ,
125133 'generate_texts ' => true ,
126134 'generate_image ' => true ,
@@ -129,6 +137,8 @@ class WP_AI_Client_Prompt_Builder {
129137 'convert_text_to_speeches ' => true ,
130138 'generate_speech ' => true ,
131139 'generate_speeches ' => true ,
140+ 'generate_video ' => true ,
141+ 'generate_videos ' => true ,
132142 );
133143
134144 /**
0 commit comments