gemini-agent-framework 0.1.3__py3-none-any.whl → 0.1.5__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 +1 -1
- gemini_agent/agent.py +7 -2
- {gemini_agent_framework-0.1.3.dist-info → gemini_agent_framework-0.1.5.dist-info}/METADATA +1 -1
- gemini_agent_framework-0.1.5.dist-info/RECORD +5 -0
- gemini_agent_framework-0.1.3.dist-info/RECORD +0 -5
- {gemini_agent_framework-0.1.3.dist-info → gemini_agent_framework-0.1.5.dist-info}/WHEEL +0 -0
gemini_agent/__init__.py
CHANGED
gemini_agent/agent.py
CHANGED
@@ -213,6 +213,7 @@ class Agent:
|
|
213
213
|
- If a step requires multiple tools, execute them sequentially
|
214
214
|
- If you're unsure about the next step, explain your reasoning
|
215
215
|
- You can use both stored variables and values from the prompt
|
216
|
+
- You don't have the ability to set new varaibles during the conversation
|
216
217
|
- When using stored variables, ALWAYS use the {{"variable": "variable_name"}} syntax
|
217
218
|
""".format(
|
218
219
|
tools_list="\n".join([f"- {name}: {desc}" for name, desc in
|
@@ -321,8 +322,11 @@ class Agent:
|
|
321
322
|
}
|
322
323
|
final_mime_type = "application/json"
|
323
324
|
final_response_schema = response_structure
|
324
|
-
|
325
|
+
counter = 0
|
325
326
|
while True:
|
327
|
+
with open(f"payload_variable_{counter}.json", "w") as f:
|
328
|
+
json.dump(payload, f)
|
329
|
+
|
326
330
|
response_data = self._call_gemini_api(payload)
|
327
331
|
if "error" in response_data:
|
328
332
|
print(f"API call failed: {response_data['error'].get('message', 'Unknown API error')}")
|
@@ -468,8 +472,9 @@ class Agent:
|
|
468
472
|
print(f"Warning: Failed to parse structured output after formatting call: {e}. Returning intermediate text.")
|
469
473
|
return final_text
|
470
474
|
return final_text
|
471
|
-
|
475
|
+
counter += 1
|
472
476
|
continue
|
477
|
+
|
473
478
|
|
474
479
|
except (KeyError, IndexError) as e:
|
475
480
|
print(f"Error parsing API response structure: {e}. Response: {response_data}")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: gemini-agent-framework
|
3
|
-
Version: 0.1.
|
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
|
@@ -0,0 +1,5 @@
|
|
1
|
+
gemini_agent/__init__.py,sha256=1clMUsayB4m1Ez9RbtlTYvfNdwYYc0MN_jdQp7xtZB4,71
|
2
|
+
gemini_agent/agent.py,sha256=D6zMq9rJ9g_ieBtyfcPa-Hdjgxy5qO-oXGvonC7VOGY,24316
|
3
|
+
gemini_agent_framework-0.1.5.dist-info/METADATA,sha256=Z9LkPsd5qkCZnDJVbIFrVeqx1OGF7Shv38s_9_JSALM,2386
|
4
|
+
gemini_agent_framework-0.1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
+
gemini_agent_framework-0.1.5.dist-info/RECORD,,
|
@@ -1,5 +0,0 @@
|
|
1
|
-
gemini_agent/__init__.py,sha256=2AgrBW0ePFgOvwoNNqRcZaMPdbOaKPoNHXUo_VlFX-M,71
|
2
|
-
gemini_agent/agent.py,sha256=_jHx3ELxP2XmHPDiPqZs_1nH2OPdK8p_8AvLwlUGrz8,24045
|
3
|
-
gemini_agent_framework-0.1.3.dist-info/METADATA,sha256=DPXkQScmKbTIT4QYqDh4U5iVFFiwy7R1IKzcwRI3R3c,2386
|
4
|
-
gemini_agent_framework-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
-
gemini_agent_framework-0.1.3.dist-info/RECORD,,
|
File without changes
|