goose-py 0.9.11__py3-none-any.whl → 0.9.12__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)
|
goose/_internal/types/agent.py
CHANGED
@@ -18,14 +18,14 @@ class Base64MediaContent(str):
|
|
18
18
|
|
19
19
|
class AIModel(StrEnum):
|
20
20
|
# vertex (production Google, requires GCP environment)
|
21
|
-
VERTEX_PRO = "vertex_ai/gemini-
|
22
|
-
VERTEX_FLASH = "vertex_ai/gemini-
|
23
|
-
VERTEX_FLASH_8B = "vertex_ai/gemini-
|
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
24
|
|
25
25
|
# gemini (publicly available, no GCP environment required)
|
26
|
-
GEMINI_PRO = "gemini/gemini-
|
27
|
-
GEMINI_FLASH = "gemini/gemini-
|
28
|
-
GEMINI_FLASH_8B = "gemini/gemini-
|
26
|
+
GEMINI_PRO = "gemini/gemini-1.5-pro"
|
27
|
+
GEMINI_FLASH = "gemini/gemini-1.5-flash"
|
28
|
+
GEMINI_FLASH_8B = "gemini/gemini-1.5-flash-8b"
|
29
29
|
|
30
30
|
|
31
31
|
class UserMediaContentType(StrEnum):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: goose-py
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.12
|
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=
|
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=
|
17
|
-
goose_py-0.9.
|
18
|
-
goose_py-0.9.
|
19
|
-
goose_py-0.9.
|
16
|
+
goose/_internal/types/agent.py,sha256=zgS_OYi22rrPEBS95n-PGxPO86b6ci7aPsgHFJ2m0pc,2912
|
17
|
+
goose_py-0.9.12.dist-info/METADATA,sha256=5XMCZv_hGjK8EZ780NDHDHk-e7u_0dnImA-fVyz_Eik,442
|
18
|
+
goose_py-0.9.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
19
|
+
goose_py-0.9.12.dist-info/RECORD,,
|
File without changes
|