gemini-agent-framework 0.1.4__py3-none-any.whl → 0.1.6__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 +6 -3
- {gemini_agent_framework-0.1.4.dist-info → gemini_agent_framework-0.1.6.dist-info}/METADATA +1 -1
- gemini_agent_framework-0.1.6.dist-info/RECORD +5 -0
- gemini_agent_framework-0.1.4.dist-info/RECORD +0 -5
- {gemini_agent_framework-0.1.4.dist-info → gemini_agent_framework-0.1.6.dist-info}/WHEEL +0 -0
gemini_agent/__init__.py
CHANGED
gemini_agent/agent.py
CHANGED
@@ -213,7 +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
|
+
- You don't have the ability to set new varaibles during the conversation. and if you need to use them thhen you will need to use its actual value.
|
217
217
|
- When using stored variables, ALWAYS use the {{"variable": "variable_name"}} syntax
|
218
218
|
""".format(
|
219
219
|
tools_list="\n".join([f"- {name}: {desc}" for name, desc in
|
@@ -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,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: gemini-agent-framework
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.6
|
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=4gG2hxzmLhjQ2mYSX0-XoolIherydyEZQ1CWXteJPh4,71
|
2
|
+
gemini_agent/agent.py,sha256=oEfIGyRRCyDy1MzfK8thbaggABY747rOia956KmZ4e8,24390
|
3
|
+
gemini_agent_framework-0.1.6.dist-info/METADATA,sha256=nKTYRKSLa_91X-soRhrtDOeZSwrWyCpts_0_8dMkdTI,2386
|
4
|
+
gemini_agent_framework-0.1.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
+
gemini_agent_framework-0.1.6.dist-info/RECORD,,
|
@@ -1,5 +0,0 @@
|
|
1
|
-
gemini_agent/__init__.py,sha256=3nn6YdImhRa8SN7VOAJVo2lPbBu2cYjzxgInerYhDvc,71
|
2
|
-
gemini_agent/agent.py,sha256=tMsgexMEsKVvfVTlluihJay4Dadkk6LWf84qe-rv4qc,24146
|
3
|
-
gemini_agent_framework-0.1.4.dist-info/METADATA,sha256=V2RVV60ovE07FCsSfXA3mRKcr5YV6ajU-qvaQ4jeLFQ,2386
|
4
|
-
gemini_agent_framework-0.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
-
gemini_agent_framework-0.1.4.dist-info/RECORD,,
|
File without changes
|