重构图像生成和搜索工具;更新主代理来处理输入图像

- 更新了“generate_image.py”以接受输入图像以增强图像生成。
- 修改了`pexels_search.py​​`和`unsplash_search.py​​`以将日志记录和上传路径从“explorer”更改为“explore”。
- 调整了“print_graph”和“sketch_graph”以提取最新的用户输入并处理输入图像以生成打印和草图图像。
- 重构“generate_print_tool”和“generate_sketch_tool”以接受输入图像。
- 更新了“main_agent.py”以包含状态中的输入图像并调整了图形构建过程。
- 增强了“service.py”来管理输入图像并改进了流媒体期间的事件处理。
- 更新了新软件包和版本的“pyproject.toml”和“uv.lock”中的依赖项。
This commit is contained in:
zcr
2026-06-17 11:56:53 +08:00
parent 35e791b4e2
commit b9163f0b46
16 changed files with 296 additions and 212 deletions

View File

@@ -19,11 +19,15 @@ dependencies = [
"fastapi[standard]>=0.125.0",
"image>=1.5.33",
"langchain>=1.2.0",
"langchain-anthropic>=1.4.4",
"langchain-community>=0.4.1",
"langchain-core>=1.4.2",
"langchain-ollama>=1.1.0",
"langchain-openai>=1.2.2",
"langchain-qwq>=0.3.5",
"langgraph>=1.0.5",
"langgraph-api>=0.4.28",
"langgraph-checkpoint-postgres>=3.1.0",
"langgraph-cli[inmem,redis]<=0.4.26",
"langsmith>=0.8.11",
"load>=1.0.14",
@@ -40,6 +44,7 @@ dependencies = [
"pandas-stubs~=2.3.3",
"pika>=1.3.2",
"pillow>=12.0.0",
"psycopg[binary,pool]>=3.3.4",
"pyasyncore>=1.0.4",
"pydantic>=2.12.5",
"pydantic-core>=2.41.5",