autonomous-app 0.3.20__py3-none-any.whl → 0.3.21__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.
autonomous/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.3.20"
1
+ __version__ = "0.3.21"
2
2
 
3
3
  from dotenv import load_dotenv
4
4
 
@@ -24,6 +24,8 @@ class GeminiAIModel(AutoModel):
24
24
  _json_model = "gemini-3-pro-preview"
25
25
  _stt_model = "gemini-3-pro-preview"
26
26
  _tts_model = "gemini-2.5-flash-preview-tts"
27
+ MAX_FILES = 14
28
+
27
29
  messages = ListAttr(StringAttr(default=[]))
28
30
  name = StringAttr(default="agent")
29
31
  instructions = StringAttr(
@@ -241,12 +243,16 @@ class GeminiAIModel(AutoModel):
241
243
  contents = [prompt]
242
244
 
243
245
  if kwargs.get("files"):
246
+ counter = 0
244
247
  for fn, f in kwargs.get("files").items():
245
248
  media = io.BytesIO(f)
246
249
  myfile = self.client.files.upload(
247
250
  file=media, config={"mime_type": "image/webp", "display_name": fn}
248
251
  )
249
252
  contents += [myfile]
253
+ counter += 1
254
+ if counter >= self.MAX_FILES:
255
+ break
250
256
 
251
257
  try:
252
258
  # log(self._image_model, contents, _print=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: autonomous-app
3
- Version: 0.3.20
3
+ Version: 0.3.21
4
4
  Summary: Containerized application framework built on Flask with additional libraries and tools for rapid development of web applications.
5
5
  Author-email: Steven A Moore <samoore@binghamton.edu>
6
6
  Project-URL: homepage, https://github.com/Sallenmoore/autonomous
@@ -1,4 +1,4 @@
1
- autonomous/__init__.py,sha256=lgBgCoMYcfqa2rFXXDlQXY47095nfXVNXxXwNWYDzYU,95
1
+ autonomous/__init__.py,sha256=lcpO1uAyZyvv8X7N8OTm83vpd0a4N0Ng_gei6D0Henw,95
2
2
  autonomous/cli.py,sha256=z4AaGeWNW_uBLFAHng0J_lfS9v3fXemK1PeT85u4Eo4,42
3
3
  autonomous/logger.py,sha256=NQtgEaTWNAWfLSgqSP7ksXj1GpOuCgoUV711kSMm-WA,2022
4
4
  autonomous/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -10,7 +10,7 @@ autonomous/ai/textagent.py,sha256=wI1-VC9zscKYyxYBg4pZ0ZyNJ5ZvKkLfWsIY1vJFChk,86
10
10
  autonomous/ai/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  autonomous/ai/models/aws.py,sha256=bGDjnGTm350zOqor9IsICzUkBUN2bubGI_ZssQuSXIw,12715
12
12
  autonomous/ai/models/deepseek.py,sha256=fkoi-hJp60yFlZ9Cb9PdUrmNSErYltQ5ezkUI75llXc,2734
13
- autonomous/ai/models/gemini.py,sha256=XPnja5_gp6sNM5k8oR_kMHMafKKe_vbtiutoSWKqNr4,10890
13
+ autonomous/ai/models/gemini.py,sha256=iwR2snCvPzD2lsAE7sbdIiqI5QMtv4TEKEfLkdLbTxI,11035
14
14
  autonomous/ai/models/local.py,sha256=fkoi-hJp60yFlZ9Cb9PdUrmNSErYltQ5ezkUI75llXc,2734
15
15
  autonomous/ai/models/openai.py,sha256=2-LttCm6woGklaLbs1H5LjlbfM-7leDwGmC9vksSqW4,13135
16
16
  autonomous/apis/version_control/GHCallbacks.py,sha256=AyiUlYfV5JePi11GVyqYyXoj5UTbPKzS-HRRI94rjJo,1069
@@ -57,7 +57,7 @@ autonomous/storage/localstorage.py,sha256=FzrR6O9mMGAZt5dDgqzkeOQVfGRXCygR0kksz2
57
57
  autonomous/tasks/__init__.py,sha256=pn7iZ14MhcHUdzcLkfkd4-45wgPP0tXahAz_cFgb_Tg,32
58
58
  autonomous/tasks/autotask.py,sha256=aK5iapDhgcAic3F5ZYMAhNKJkOepj8yWwbMizKDzUwQ,4153
59
59
  autonomous/utils/markdown.py,sha256=tf8vlHARiQO1X_aGbqlYozzP_TbdiDRT9EEP6aFRQo0,2153
60
- autonomous_app-0.3.20.dist-info/METADATA,sha256=GKNdh8UqT-1bTYkNOoWmlrfZz-UORszoXkcHwSZRn68,3015
61
- autonomous_app-0.3.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
62
- autonomous_app-0.3.20.dist-info/top_level.txt,sha256=ZyxWWDdbvZekF3UFunxl4BQsVDb_FOW3eTn0vun_jb4,11
63
- autonomous_app-0.3.20.dist-info/RECORD,,
60
+ autonomous_app-0.3.21.dist-info/METADATA,sha256=0QGJsmxnVV6fQQISDgeEvYGfFrj64Y8B2OOO8S2jZCk,3015
61
+ autonomous_app-0.3.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
62
+ autonomous_app-0.3.21.dist-info/top_level.txt,sha256=ZyxWWDdbvZekF3UFunxl4BQsVDb_FOW3eTn0vun_jb4,11
63
+ autonomous_app-0.3.21.dist-info/RECORD,,