gemini-agent-framework 0.2.1__py3-none-any.whl → 0.2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
gemini_agent/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  from .agent import Agent
2
2
 
3
- __version__ = "0.2.1"
3
+ __version__ = "0.2.3"
4
4
  __all__ = ["Agent"]
gemini_agent/agent.py CHANGED
@@ -274,26 +274,20 @@ class Agent:
274
274
  """Substitutes variable references in arguments with their actual values."""
275
275
  result = {}
276
276
  for key, value in args.items():
277
- print("substituting variables", key, value)
278
277
  if isinstance(value, str) and value.startswith("$"):
279
- print("is string and starts with $")
280
278
  # Handle $ prefixed variables
281
279
  var_name = value[1:]
282
280
  if var_name in self._stored_variables:
283
- print("substituted")
284
281
 
285
282
  result[key] = self._stored_variables[var_name]["value"]
286
283
  else:
287
284
  result[key] = value
288
285
  elif isinstance(value, dict) and "variable" in value:
289
- print("is dict and has variable")
290
286
  # Handle dictionary-style variable references
291
287
  var_name = value["variable"]
292
288
  if var_name in self._stored_variables:
293
- print("substituted")
294
289
  result[key] = self._stored_variables[var_name]["value"]
295
290
  else:
296
- print("substituted")
297
291
  result[key] = value
298
292
  else:
299
293
  result[key] = value
@@ -320,7 +314,6 @@ class Agent:
320
314
 
321
315
  def _log_json(self, json_data: Dict[str, Any], file_name: str, debug_scope: Optional[str] = None) -> None:
322
316
  """Logs the JSON data to a file."""
323
- print("in log json")
324
317
  if "json" not in debug_scope:
325
318
  return
326
319
  with open(file_name, "w") as f:
@@ -394,7 +387,6 @@ class Agent:
394
387
  self._log_json(payload, f"payload_{count}.json", debug_scope)
395
388
  count += 1
396
389
  response_data = self._call_gemini_api(payload, debug_scope)
397
- print("response data " , response_data)
398
390
  if "error" in response_data:
399
391
  self._log_text(
400
392
  f"API call failed: {response_data['error'].get('message', 'Unknown API error')}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gemini-agent-framework
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Summary: A framework for building agents that use Gemini's function calling capabilities
5
5
  Project-URL: Homepage, https://github.com/m7mdony/gemini-agent-framework
6
6
  Project-URL: Documentation, https://m7mdony.github.io/gemini-agent-framework
@@ -0,0 +1,6 @@
1
+ gemini_agent/__init__.py,sha256=oQVInJJsdELQRFQPmj5oFTcxcP7gxj3kTPC66a7ZMZE,68
2
+ gemini_agent/agent.py,sha256=0MxUrVt91hHCpHqe-eCkLAlTYS9bec2VNwX-3Q3gNXo,28457
3
+ gemini_agent_framework-0.2.3.dist-info/METADATA,sha256=2ksoadA6mTEd3xM2611j46fiUvfX9pmkapZV_uKe1XQ,5032
4
+ gemini_agent_framework-0.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ gemini_agent_framework-0.2.3.dist-info/licenses/LICENSE,sha256=NHp9eKeWbB-Fp6Ff24BXSemJOa6UEZa9IAp9U7O9oBM,1073
6
+ gemini_agent_framework-0.2.3.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- gemini_agent/__init__.py,sha256=qxPrqA6Pa9JUUW9kdjAEqdiK7pnW9c2NbZZ1jg8FuPU,68
2
- gemini_agent/agent.py,sha256=Uy_n83u_hnhgUw9sZE7a6Smbkfmay6fKdwTZNInwTPk,28820
3
- gemini_agent_framework-0.2.1.dist-info/METADATA,sha256=nZ8J1OXNXlpXuRZQ-MLGHiWGAPCNJHPFNMh69FG1O6E,5032
4
- gemini_agent_framework-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- gemini_agent_framework-0.2.1.dist-info/licenses/LICENSE,sha256=NHp9eKeWbB-Fp6Ff24BXSemJOa6UEZa9IAp9U7O9oBM,1073
6
- gemini_agent_framework-0.2.1.dist-info/RECORD,,