Sborole commited on
Commit
7dab6f9
·
verified ·
1 Parent(s): dd11ffa

Update tools/ReadImageTool.py

Browse files
Files changed (1) hide show
  1. tools/ReadImageTool.py +6 -1
tools/ReadImageTool.py CHANGED
@@ -3,7 +3,12 @@ from smolagents.tools import Tool
3
  class ReadImageTool(Tool):
4
  name = "read_image"
5
  description = "Reads an image file and returns its base64 string for Gemini."
6
- inputs = {"file_path": {"type": "string"}}
 
 
 
 
 
7
  output_type = "string"
8
 
9
  def forward(self, file_path: str) -> str:
 
3
  class ReadImageTool(Tool):
4
  name = "read_image"
5
  description = "Reads an image file and returns its base64 string for Gemini."
6
+ inputs = {
7
+ "file_path": {
8
+ "type": "string",
9
+ "description": "The full path of the text file to read"
10
+ }
11
+ }
12
  output_type = "string"
13
 
14
  def forward(self, file_path: str) -> str: