gemini-agent-framework 0.1.14__py3-none-any.whl → 0.1.15__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.1.14"
3
+ __version__ = "0.1.15"
4
4
  __all__ = ["Agent"]
gemini_agent/agent.py CHANGED
@@ -241,10 +241,7 @@ class Agent:
241
241
  )
242
242
 
243
243
  return """
244
-
245
- Available tools:
246
- {tools_list}
247
-
244
+
248
245
  Available variables:
249
246
  {variables_list}
250
247
 
@@ -333,17 +330,14 @@ class Agent:
333
330
  """
334
331
  self._intermediate_results = {}
335
332
 
336
- if not system_prompt:
337
- system_prompt = self._get_system_prompt()
338
- else:
339
- system_prompt = self._get_system_prompt() + system_prompt
333
+
340
334
 
341
335
  current_contents = conversation_history if conversation_history else []
342
336
 
343
337
  # Add system instruction to payload
344
338
  payload: Dict[str, Any] = {
345
339
  "system_instruction": {
346
- "parts": [{"text": system_prompt}]
340
+ "parts": [{"text": system_prompt if system_prompt else ""},{"text": self._get_system_prompt()}]
347
341
  },
348
342
  "contents": current_contents
349
343
  }
@@ -373,9 +367,9 @@ class Agent:
373
367
  }
374
368
  final_mime_type = "application/json"
375
369
  final_response_schema = response_structure
376
-
370
+
377
371
  while True:
378
-
372
+
379
373
  response_data = self._call_gemini_api(payload)
380
374
  if "error" in response_data:
381
375
  print(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gemini-agent-framework
3
- Version: 0.1.14
3
+ Version: 0.1.15
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=LFX-2Emo9kXG9rmleXchzu7GyCiwMpXLoxGETOEeKi8,69
2
+ gemini_agent/agent.py,sha256=gdtr6GDKZJxq6_rgbDxvdkZmMB75vUcMop1eBrQ1adY,26527
3
+ gemini_agent_framework-0.1.15.dist-info/METADATA,sha256=T9RiY-0KCOFbHkFazezxcD6-2NQdEwJPeirO_96OU64,5033
4
+ gemini_agent_framework-0.1.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ gemini_agent_framework-0.1.15.dist-info/licenses/LICENSE,sha256=NHp9eKeWbB-Fp6Ff24BXSemJOa6UEZa9IAp9U7O9oBM,1073
6
+ gemini_agent_framework-0.1.15.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- gemini_agent/__init__.py,sha256=d3zKiVgPCRUKMEBijW61Gl_QsYm3NV4y-6vH1-qEjm8,69
2
- gemini_agent/agent.py,sha256=jev8FSYBTznW9OUfMAqAbddzl5EqG_GWQ8-QVqulCSY,26700
3
- gemini_agent_framework-0.1.14.dist-info/METADATA,sha256=VSPLaq039Q3Cirt56L2m9aomyx9zO8hpBbtqApa50wQ,5033
4
- gemini_agent_framework-0.1.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- gemini_agent_framework-0.1.14.dist-info/licenses/LICENSE,sha256=NHp9eKeWbB-Fp6Ff24BXSemJOa6UEZa9IAp9U7O9oBM,1073
6
- gemini_agent_framework-0.1.14.dist-info/RECORD,,