Update agent.py
Browse files
agent.py
CHANGED
@@ -110,9 +110,15 @@ class GeminiModel:
|
|
110 |
@tool
|
111 |
def gaia_file_reader(file_id: str) -> str:
|
112 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
Returns:
|
114 |
-
|
115 |
-
|
116 |
"""
|
117 |
try:
|
118 |
raw = _download_file(file_id)
|
|
|
110 |
@tool
|
111 |
def gaia_file_reader(file_id: str) -> str:
|
112 |
"""
|
113 |
+
Download a GAIA attachment and return its contents.
|
114 |
+
|
115 |
+
Args:
|
116 |
+
file_id: The identifier that appears inside a <file:...> placeholder
|
117 |
+
in the GAIA question prompt.
|
118 |
+
|
119 |
Returns:
|
120 |
+
A base-64 string for binary files (images, PDF, etc.) or UTF-8 text for
|
121 |
+
plain-text files.
|
122 |
"""
|
123 |
try:
|
124 |
raw = _download_file(file_id)
|