gemini-agent-framework 0.1.4__tar.gz → 0.1.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gemini-agent-framework
3
- Version: 0.1.4
3
+ Version: 0.1.5
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://github.com/m7mdony/gemini-agent-framework#readme
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "gemini-agent-framework"
7
- version = "0.1.4"
7
+ version = "0.1.5"
8
8
  description = "A framework for building agents that use Gemini's function calling capabilities"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -0,0 +1,4 @@
1
+ from .agent import Agent
2
+
3
+ __version__ = "0.1.5"
4
+ __all__ = ["Agent"]
@@ -322,9 +322,11 @@ class Agent:
322
322
  }
323
323
  final_mime_type = "application/json"
324
324
  final_response_schema = response_structure
325
-
325
+ counter = 0
326
326
  while True:
327
-
327
+ with open(f"payload_variable_{counter}.json", "w") as f:
328
+ json.dump(payload, f)
329
+
328
330
  response_data = self._call_gemini_api(payload)
329
331
  if "error" in response_data:
330
332
  print(f"API call failed: {response_data['error'].get('message', 'Unknown API error')}")
@@ -470,6 +472,7 @@ class Agent:
470
472
  print(f"Warning: Failed to parse structured output after formatting call: {e}. Returning intermediate text.")
471
473
  return final_text
472
474
  return final_text
475
+ counter += 1
473
476
  continue
474
477
 
475
478
 
@@ -1,4 +0,0 @@
1
- from .agent import Agent
2
-
3
- __version__ = "0.1.4"
4
- __all__ = ["Agent"]