autonomous-app 0.3.16__py3-none-any.whl → 0.3.18__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.16"
1
+ __version__ = "0.3.18"
2
2
 
3
3
  from dotenv import load_dotenv
4
4
 
@@ -1,7 +1,5 @@
1
- from autonomous.model.autoattr import ReferenceAttr, StringAttr
2
- from autonomous.model.automodel import AutoModel
3
1
  from autonomous.ai.baseagent import BaseAgent
4
- from .models.openai import OpenAIModel
2
+ from autonomous.model.autoattr import StringAttr
5
3
 
6
4
 
7
5
  class ImageAgent(BaseAgent):
@@ -233,7 +233,7 @@ IMPORTANT: Always use the function 'response' tool to respond to the user with o
233
233
  try:
234
234
  results = json.loads(results, strict=False)
235
235
  except Exception:
236
- print(f"==== Invalid JSON:\n{results}", _print=True)
236
+ log(f"==== Invalid JSON:\n{results}", _print=True)
237
237
  return {}
238
238
  else:
239
239
  log(f"==== Results: {results}", _print=True)
@@ -285,9 +285,8 @@ IMPORTANT: Always use the function 'response' tool to respond to the user with o
285
285
  voice=voice,
286
286
  input=prompt,
287
287
  )
288
- log(response)
289
- audio_data = io.BytesIO(response["audio"].encode("utf-8"))
290
- return audio_data
288
+ log(response, _print=True)
289
+ return response.read()
291
290
 
292
291
  def generate_image(self, prompt, **kwargs):
293
292
  image = None
@@ -90,6 +90,9 @@ class AutoModel(Document):
90
90
 
91
91
  @classmethod
92
92
  def load_model(cls, model):
93
+ if not isinstance(model, str):
94
+ return model
95
+
93
96
  subclasses = AutoModel.__subclasses__()
94
97
  while subclasses:
95
98
  subclass = subclasses.pop()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autonomous-app
3
- Version: 0.3.16
3
+ Version: 0.3.18
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
  License: MIT License
@@ -1,14 +1,14 @@
1
- autonomous/__init__.py,sha256=_Imheob6ygUp8AAQctaaAImaCjsiK2EzHfEPRC2jstI,95
1
+ autonomous/__init__.py,sha256=1pYiGqqSX2X8kVRPUaevzeWWPs21MIOrdfy-91-Nrkg,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
5
5
  autonomous/ai/audioagent.py,sha256=PlDNOdYKJxsqWbql0aAv_F7dS0piBeZV3nuKKZ0-hAI,613
6
6
  autonomous/ai/baseagent.py,sha256=gXOdfAWokEf3P7z2jQlbHmwSZohvXfdapZfkoLz6HuQ,1073
7
- autonomous/ai/imageagent.py,sha256=Tn02Hk7WX53pqvK-2Xd2xOuyHKaNuAS_yr7lRdct3rc,624
7
+ autonomous/ai/imageagent.py,sha256=bIOrgg_CM-rgfyLme7V9vPqP8WKVMIAVoB2E9lLtIRk,521
8
8
  autonomous/ai/jsonagent.py,sha256=wlTULEBlrAAb8ELMxik1b7YOgHD4ARmbWLUWc5pgxB8,1197
9
9
  autonomous/ai/textagent.py,sha256=8iVuY-cSJsJgyWKrpCoj46c0MIsB13PFPNYdxSyqlKI,1096
10
10
  autonomous/ai/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- autonomous/ai/models/openai.py,sha256=r9eVwN6dMCeO28JcX46Hbdpd00ZLZlT7xXcrXQ4p4Ss,12499
11
+ autonomous/ai/models/openai.py,sha256=ih02eSWWDNPpbmIlc49HB8xHpZcEKi_GnbIEHhUlvaA,12448
12
12
  autonomous/apis/version_control/GHCallbacks.py,sha256=AyiUlYfV5JePi11GVyqYyXoj5UTbPKzS-HRRI94rjJo,1069
13
13
  autonomous/apis/version_control/GHOrganization.py,sha256=mi2livdsGurKiifbvuLwiFbdDzL77IlEfhwEa-tG77I,1155
14
14
  autonomous/apis/version_control/GHRepo.py,sha256=hTFHMkxSbSlVELfh8S6mq6ijkIKPRQO-Q5775ZjRKD4,4622
@@ -46,15 +46,15 @@ autonomous/db/queryset/transform.py,sha256=UhBdDxYR_bWH0ECnaSw9g9YMwgWRZtsRl_q6P
46
46
  autonomous/db/queryset/visitor.py,sha256=AN09lR6hWYUlKJC7G1sktvnWy5hrFnpoQhi58bOXbA4,5470
47
47
  autonomous/model/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
48
48
  autonomous/model/autoattr.py,sha256=eqO3QE17EMRzLvtF74gXefeK1I2N-w6uScpibdChVOw,2254
49
- autonomous/model/automodel.py,sha256=k3_15qciSlEjXRa_izWUJRIvP5d-cHVU07kK-NX2A2Q,7562
49
+ autonomous/model/automodel.py,sha256=YNye6Iay6zZF8upNCAmrShQjotZhtAuYBV7v_dgRRyk,7627
50
50
  autonomous/storage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
51
  autonomous/storage/imagestorage.py,sha256=SmBjBNBlP1ZEjxdOnGVzCHZhbEhMKTUQC2TbpWbejDE,6168
52
52
  autonomous/storage/localstorage.py,sha256=FzrR6O9mMGAZt5dDgqzkeOQVfGRXCygR0kksz2MPpwE,2286
53
53
  autonomous/tasks/__init__.py,sha256=pn7iZ14MhcHUdzcLkfkd4-45wgPP0tXahAz_cFgb_Tg,32
54
54
  autonomous/tasks/autotask.py,sha256=aK5iapDhgcAic3F5ZYMAhNKJkOepj8yWwbMizKDzUwQ,4153
55
55
  autonomous/utils/markdown.py,sha256=tf8vlHARiQO1X_aGbqlYozzP_TbdiDRT9EEP6aFRQo0,2153
56
- autonomous_app-0.3.16.dist-info/LICENSE,sha256=-PHHSuDRkodHo3PEdMkDtoIdmLAOomMq6lsLaOetU8g,1076
57
- autonomous_app-0.3.16.dist-info/METADATA,sha256=2oaPtvX0a-wB_rnQ_sK9sasVoq11DkZNFMhEsds-6Sc,4189
58
- autonomous_app-0.3.16.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
59
- autonomous_app-0.3.16.dist-info/top_level.txt,sha256=ZyxWWDdbvZekF3UFunxl4BQsVDb_FOW3eTn0vun_jb4,11
60
- autonomous_app-0.3.16.dist-info/RECORD,,
56
+ autonomous_app-0.3.18.dist-info/LICENSE,sha256=-PHHSuDRkodHo3PEdMkDtoIdmLAOomMq6lsLaOetU8g,1076
57
+ autonomous_app-0.3.18.dist-info/METADATA,sha256=4pBmaY1mtfqdPWXwq47l0f_iwtfjcPefoLn_XM7ZFjA,4189
58
+ autonomous_app-0.3.18.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
59
+ autonomous_app-0.3.18.dist-info/top_level.txt,sha256=ZyxWWDdbvZekF3UFunxl4BQsVDb_FOW3eTn0vun_jb4,11
60
+ autonomous_app-0.3.18.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.5.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5