更新图形生成工具,优化返回格式并添加新功能

This commit is contained in:
zcr
2026-06-15 17:10:04 +08:00
parent b14ccab723
commit 35e791b4e2
11 changed files with 31 additions and 21 deletions

View File

@@ -20,7 +20,7 @@ async def generate_print_tool(prompt: str) -> str:
bucket_name = "aida-users"
object_name = f"agent_generate_print/{uuid7()}.png"
image_url = await generate_image(prompt=prompt, bucket_name=bucket_name, object_name=object_name)
return image_url
return [image_url]
@tool