gemini-agent-framework 0.1.14__tar.gz → 0.1.15__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.
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/PKG-INFO +1 -1
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/pyproject.toml +1 -1
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/src/gemini_agent/__init__.py +1 -1
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/src/gemini_agent/agent.py +5 -11
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/.flake8 +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/.github/workflows/ci.yml +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/.github/workflows/deploy-docs.yml +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/.github/workflows/docs.yml +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/.github/workflows/python-publish.yml +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/.github/workflows/tests.yml +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/.gitignore +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/CHANGELOG.md +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/CODE_OF_CONDUCT.md +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/CONTRIBUTING.md +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/LICENSE +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/README.md +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/docs/api_reference.md +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/docs/architecture.md +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/docs/best_practices.md +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/docs/index.md +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/docs/installation.md +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/docs/tutorials.md +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/mkdocs.yml +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/payload_variable_0.json +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/requirements.txt +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/tests/__init__.py +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/tests/test_agent.py +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/tests/test_class_methods.py +0 -0
- {gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/tests/test_variables.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: gemini-agent-framework
|
3
|
-
Version: 0.1.
|
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
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "gemini-agent-framework"
|
7
|
-
version = "0.1.
|
7
|
+
version = "0.1.15"
|
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"
|
@@ -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
|
-
|
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(
|
File without changes
|
File without changes
|
{gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/.github/workflows/deploy-docs.yml
RENAMED
File without changes
|
File without changes
|
{gemini_agent_framework-0.1.14 → gemini_agent_framework-0.1.15}/.github/workflows/python-publish.yml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|