goose-py 0.9.0__py3-none-any.whl → 0.9.3__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/flow.py CHANGED
@@ -70,7 +70,7 @@ class Flow[FlowArgumentsT: FlowArguments]:
70
70
 
71
71
  run.start(flow_name=self.name, run_id=run_id, agent_logger=self._agent_logger)
72
72
  yield run
73
- await self._store.save(run=run)
73
+ await self._store.save(run_id=run_id, run=run.dump())
74
74
  run.end()
75
75
 
76
76
  set_current_flow_run(old_run)
goose/_internal/store.py CHANGED
@@ -7,9 +7,9 @@ from goose._internal.state import FlowArguments, SerializedFlowRun
7
7
 
8
8
 
9
9
  class IFlowRunStore[FlowArgumentsT: FlowArguments](Protocol):
10
- def __init__(self, *, flow_name: str) -> None: ...
10
+ def __init__(self, *, flow_name: str, flow_arguments_model: type[FlowArgumentsT]) -> None: ...
11
11
  async def get(self, *, run_id: str) -> FlowRun[FlowArgumentsT] | None: ...
12
- async def save(self, *, run: FlowRun[FlowArgumentsT]) -> None: ...
12
+ async def save(self, *, run_id: str, run: SerializedFlowRun) -> None: ...
13
13
  async def delete(self, *, run_id: str) -> None: ...
14
14
 
15
15
 
@@ -26,8 +26,8 @@ class InMemoryFlowRunStore[FlowArgumentsT: FlowArguments](IFlowRunStore[FlowArgu
26
26
  serialized_flow_run=serialized_flow_run, flow_arguments_model=self._flow_arguments_model
27
27
  )
28
28
 
29
- async def save(self, *, run: FlowRun[FlowArgumentsT]) -> None:
30
- self._runs[run.id] = run.dump()
29
+ async def save(self, *, run_id: str, run: SerializedFlowRun) -> None:
30
+ self._runs[run_id] = run
31
31
 
32
32
  async def delete(self, *, run_id: str) -> None:
33
33
  self._runs.pop(run_id, None)
goose/flow.py CHANGED
@@ -1,3 +1,3 @@
1
- from goose._internal.flow import Flow
1
+ from goose._internal.flow import Flow, FlowArguments, IGenerator
2
2
 
3
- __all__ = ["Flow"]
3
+ __all__ = ["Flow", "FlowArguments", "IGenerator"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: goose-py
3
- Version: 0.9.0
3
+ Version: 0.9.3
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
@@ -1,18 +1,18 @@
1
1
  goose/__init__.py,sha256=_qg6tofbArI5KO7fWqaFNY5IcbVELTd7oS6uYijPmzg,185
2
2
  goose/agent.py,sha256=g2tPFqEhqBABEjmpNJ2ShfjHDGzmeUXIgOZCKDZ2-40,600
3
3
  goose/errors.py,sha256=-0OyZQJWYTRw5YgnCB2_uorVaUsL6Z0QYQO2FqzCiyg,32
4
- goose/flow.py,sha256=A1bzNIjnoVXRFm6LGhQglxVnKMP0vEVfvTubTol7Kww,58
4
+ goose/flow.py,sha256=mRyGvgyGgy39P5ZDc1L-8_XqPf8HCcrqGrTBDSswn4M,116
5
5
  goose/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  goose/runs.py,sha256=kAHw08ayGbwzSH_p-CfsQDvTcA4H09nUuq6zt3gIFxo,170
7
7
  goose/_internal/agent.py,sha256=l0pKfShovrs238sKAr-zubtcacYm82TGwQHcBWVJm2g,5875
8
8
  goose/_internal/conversation.py,sha256=1OZQ_N6QZE7L_ZpXG2bjoWkVQ-G7h0JvKkqswmQWG58,1202
9
- goose/_internal/flow.py,sha256=LX6fdDBBgGNPfpSIUFenJ8-EI6tnNRuGZfUpvSb1isg,4128
9
+ goose/_internal/flow.py,sha256=ZrskFSw5R5rKdVzFGWiQv4-Jwha2ySYnHJd7u2CZ9Yo,4150
10
10
  goose/_internal/result.py,sha256=-eZJn-2sPo7rHZ38Sz6IAHXqiJ-Ss39esEoFGimJEBI,155
11
11
  goose/_internal/state.py,sha256=wJdXHGw_KPqc1Tuv8cHj1loqLct_KHWBNXzbjBv6GAo,6552
12
- goose/_internal/store.py,sha256=ZdQwYRe1PKkTUd58p0ja1KyyGhEYGVP4gWvYsqOEWuk,1356
12
+ goose/_internal/store.py,sha256=-HSnvT9PscqyuDh-vekakGBGdhz9QuOzP9Kp1fvS0E8,1407
13
13
  goose/_internal/task.py,sha256=vfmWfxhr76nSF7STMZISFqP9ugt3BkHzraMbEZKuozI,5196
14
14
  goose/_internal/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  goose/_internal/types/agent.py,sha256=rNVt2gEr_m4_8tGFgcdichpPp8xhOS5GY0kN2C4tiE8,2153
16
- goose_py-0.9.0.dist-info/METADATA,sha256=RUdJVQbLFodUEjPNSTq7XTSx8zcI2W08F0lttsn0nM8,441
17
- goose_py-0.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
18
- goose_py-0.9.0.dist-info/RECORD,,
16
+ goose_py-0.9.3.dist-info/METADATA,sha256=4Dy7yIyNgBj_o7Y79lqzjAW49i4cdJP1mEBROFMjtbo,441
17
+ goose_py-0.9.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
18
+ goose_py-0.9.3.dist-info/RECORD,,