goose-py 0.9.11__py3-none-any.whl → 0.9.13__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.
goose/_internal/task.py CHANGED
@@ -56,6 +56,9 @@ class Task[**P, R: Result]:
56
56
  flow_run = self.__get_current_flow_run()
57
57
  node_state = flow_run.get(task=self, index=index)
58
58
 
59
+ if len(node_state.conversation.result_messages) == 0:
60
+ raise Honk("Cannot refine a task that has not been initially generated")
61
+
59
62
  if context is not None:
60
63
  node_state.set_context(context=context)
61
64
  node_state.add_user_message(message=user_message)
@@ -18,14 +18,16 @@ class Base64MediaContent(str):
18
18
 
19
19
  class AIModel(StrEnum):
20
20
  # vertex (production Google, requires GCP environment)
21
- VERTEX_PRO = "vertex_ai/gemini-2.0-pro"
22
- VERTEX_FLASH = "vertex_ai/gemini-2.0-flash"
23
- VERTEX_FLASH_8B = "vertex_ai/gemini-2.0-flash-8b"
21
+ VERTEX_PRO = "vertex_ai/gemini-1.5-pro"
22
+ VERTEX_FLASH = "vertex_ai/gemini-1.5-flash"
23
+ VERTEX_FLASH_8B = "vertex_ai/gemini-1.5-flash-8b"
24
+ VERTEX_FLASH_2_0 = "vertex_ai/gemini-2.0-flash"
24
25
 
25
26
  # gemini (publicly available, no GCP environment required)
26
- GEMINI_PRO = "gemini/gemini-2.0-pro"
27
- GEMINI_FLASH = "gemini/gemini-2.0-flash"
28
- GEMINI_FLASH_8B = "gemini/gemini-2.0-flash-8b"
27
+ GEMINI_PRO = "gemini/gemini-1.5-pro"
28
+ GEMINI_FLASH = "gemini/gemini-1.5-flash"
29
+ GEMINI_FLASH_8B = "gemini/gemini-1.5-flash-8b"
30
+ GEMINI_FLASH_2_0 = "gemini/gemini-2.0-flash"
29
31
 
30
32
 
31
33
  class UserMediaContentType(StrEnum):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: goose-py
3
- Version: 0.9.11
3
+ Version: 0.9.13
4
4
  Summary: A tool for AI workflows based on human-computer collaboration and structured output.
5
5
  Author-email: Nash Taylor <nash@chelle.ai>, Joshua Cook <joshua@chelle.ai>, Michael Sankur <michael@chelle.ai>
6
6
  Requires-Python: >=3.12
@@ -11,9 +11,9 @@ goose/_internal/flow.py,sha256=RShMsxgt49g1fZJ3rlwDHtI1j39lZzewx8hZ7DGN5kg,4124
11
11
  goose/_internal/result.py,sha256=-eZJn-2sPo7rHZ38Sz6IAHXqiJ-Ss39esEoFGimJEBI,155
12
12
  goose/_internal/state.py,sha256=pI-C37Ybazo7EJPbZklxbiCYFy3u4I031NKBr8Jm_CI,6534
13
13
  goose/_internal/store.py,sha256=tWmKfa1-yq1jU6lT3l6kSOmVt2m3H7I1xLMTrxnUDI8,889
14
- goose/_internal/task.py,sha256=Ka3tm5Ymu8sE6_GCbkj3JDHK683ZET5HlkcgrQgnzEo,6028
14
+ goose/_internal/task.py,sha256=qjpX_wIQ2jKreMjrRy1SVedsuVzLXuOLgcyPstrgWfE,6176
15
15
  goose/_internal/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
- goose/_internal/types/agent.py,sha256=0DQtaMzzH6X_gjsJsofViuxa4A1OCZLjtUuRpek53Kw,2912
17
- goose_py-0.9.11.dist-info/METADATA,sha256=9S21XF1t7iAgvMxhMW4Ybwo5B3GhTznXSUaLGepOfHU,442
18
- goose_py-0.9.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
19
- goose_py-0.9.11.dist-info/RECORD,,
16
+ goose/_internal/types/agent.py,sha256=DEDu2BZ4nmiU0J8GqYJtxq_VBjR-aXRjYkjmeSEX9OQ,3013
17
+ goose_py-0.9.13.dist-info/METADATA,sha256=tg0tK_QC2E_GBMA-bh7Wu24GzBu1v-moWe1dZkST-Vw,442
18
+ goose_py-0.9.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
19
+ goose_py-0.9.13.dist-info/RECORD,,