feat: 添加 VEO3 场景写作和角色定义 SDK
- 新增 gemini-sdk: 基于 Gemini AI 的通用 SDK - 新增 veo3-scene-writer: VEO3 场景写作专用工具 - 支持图片/视频附件分析 - 多轮会话功能 - VEO3 专业提示词集成 - 角色一致性管理 - 新增 Veo3ActorDefine: 角色定义专用工具 - 添加完整的示例和文档 - 支持多种输出格式 (文本/JSON/YAML)
This commit is contained in:
BIN
cargos/veo3-scene-writer/examples/01.png
Normal file
BIN
cargos/veo3-scene-writer/examples/01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 MiB |
33
cargos/veo3-scene-writer/examples/daisy_demo.rs
Normal file
33
cargos/veo3-scene-writer/examples/daisy_demo.rs
Normal file
@@ -0,0 +1,33 @@
|
||||
//! Daisy 角色演示 - 使用图片创建 VEO3 场景
|
||||
|
||||
use veo3_scene_writer::Veo3SceneWriter;
|
||||
use std::path::Path;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
|
||||
// 创建 VEO3 场景写作工具
|
||||
let mut writer = Veo3SceneWriter::new().await?;
|
||||
|
||||
// 检查图片文件是否存在
|
||||
let image_path = "examples/01.png";
|
||||
if !Path::new(image_path).exists() {
|
||||
println!("❌ 错误: 找不到图片文件 {}", image_path);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let character_analysis = writer.send_message_with_attachment(
|
||||
"Daisy",
|
||||
image_path
|
||||
).await?;
|
||||
|
||||
println!("🤖 --------------------------------------- :\n{}\n", character_analysis);
|
||||
|
||||
let scene1 = writer.send_message(
|
||||
"first"
|
||||
).await?;
|
||||
|
||||
println!("🤖 --------------------------------------:\n{}\n", scene1);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user