feat: 添加 VEO3 场景写作和角色定义 SDK

- 新增 gemini-sdk: 基于 Gemini AI 的通用 SDK
- 新增 veo3-scene-writer: VEO3 场景写作专用工具
  - 支持图片/视频附件分析
  - 多轮会话功能
  - VEO3 专业提示词集成
  - 角色一致性管理
- 新增 Veo3ActorDefine: 角色定义专用工具
- 添加完整的示例和文档
- 支持多种输出格式 (文本/JSON/YAML)
This commit is contained in:
imeepos
2025-08-15 18:02:15 +08:00
parent 08b981c31f
commit 577b539ee2
18 changed files with 4389 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View 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(())
}