gemini-agent-framework 0.1.3__py3-none-any.whl → 0.1.4__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 +3 -1
- {gemini_agent_framework-0.1.3.dist-info → gemini_agent_framework-0.1.4.dist-info}/METADATA +1 -1
- gemini_agent_framework-0.1.4.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.4.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
|
@@ -323,6 +324,7 @@ class Agent:
|
|
323
324
|
final_response_schema = response_structure
|
324
325
|
|
325
326
|
while True:
|
327
|
+
|
326
328
|
response_data = self._call_gemini_api(payload)
|
327
329
|
if "error" in response_data:
|
328
330
|
print(f"API call failed: {response_data['error'].get('message', 'Unknown API error')}")
|
@@ -468,8 +470,8 @@ class Agent:
|
|
468
470
|
print(f"Warning: Failed to parse structured output after formatting call: {e}. Returning intermediate text.")
|
469
471
|
return final_text
|
470
472
|
return final_text
|
471
|
-
|
472
473
|
continue
|
474
|
+
|
473
475
|
|
474
476
|
except (KeyError, IndexError) as e:
|
475
477
|
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.4
|
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=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,,
|
@@ -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
|