real-jiakai commited on
Commit
8310e6d
·
verified ·
1 Parent(s): b9a4880

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +8 -2
agent.py CHANGED
@@ -110,9 +110,15 @@ class GeminiModel:
110
  @tool
111
  def gaia_file_reader(file_id: str) -> str:
112
  """
 
 
 
 
 
 
113
  Returns:
114
- base64-str for binary files (images, pdf, etc.)
115
- • decoded text for utf-8 files
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)