Return type standardization
This commit is contained in:
1 parent
baa48d7cec
commit
f0e5267828
8 files changed
+47
-48
No files matched your search
+1
-1
@@ -25,6 +25,6 @@ async def handle(args: Dict[str, Any]):
|
||||
|
||||
try:
|
||||
data = base64.b64encode(path.read_bytes()).decode("utf-8")
|
||||
return {"type": "image", "data": data, "mimeType": mime_type}
|
||||
return [{"type": "image", "data": data, "mimeType": mime_type}]
|
||||
except Exception as e:
|
||||
raise ToolError(f"Error reading image: {str(e)}")
|
||||
Reference in new issue
Block a user