goose-py 0.9.0__tar.gz → 0.9.3__tar.gz

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.
Files changed (35) hide show
  1. {goose_py-0.9.0 → goose_py-0.9.3}/PKG-INFO +1 -1
  2. {goose_py-0.9.0 → goose_py-0.9.3}/goose/_internal/flow.py +1 -1
  3. {goose_py-0.9.0 → goose_py-0.9.3}/goose/_internal/store.py +4 -4
  4. goose_py-0.9.3/goose/flow.py +3 -0
  5. {goose_py-0.9.0 → goose_py-0.9.3}/pyproject.toml +1 -1
  6. {goose_py-0.9.0 → goose_py-0.9.3}/uv.lock +1 -1
  7. goose_py-0.9.0/goose/flow.py +0 -3
  8. {goose_py-0.9.0 → goose_py-0.9.3}/.envrc +0 -0
  9. {goose_py-0.9.0 → goose_py-0.9.3}/.github/workflows/publish.yml +0 -0
  10. {goose_py-0.9.0 → goose_py-0.9.3}/.gitignore +0 -0
  11. {goose_py-0.9.0 → goose_py-0.9.3}/.python-version +0 -0
  12. {goose_py-0.9.0 → goose_py-0.9.3}/.stubs/jsonpath_ng/__init__.pyi +0 -0
  13. {goose_py-0.9.0 → goose_py-0.9.3}/.stubs/litellm/__init__.pyi +0 -0
  14. {goose_py-0.9.0 → goose_py-0.9.3}/Makefile +0 -0
  15. {goose_py-0.9.0 → goose_py-0.9.3}/README.md +0 -0
  16. {goose_py-0.9.0 → goose_py-0.9.3}/goose/__init__.py +0 -0
  17. {goose_py-0.9.0 → goose_py-0.9.3}/goose/_internal/agent.py +0 -0
  18. {goose_py-0.9.0 → goose_py-0.9.3}/goose/_internal/conversation.py +0 -0
  19. {goose_py-0.9.0 → goose_py-0.9.3}/goose/_internal/result.py +0 -0
  20. {goose_py-0.9.0 → goose_py-0.9.3}/goose/_internal/state.py +0 -0
  21. {goose_py-0.9.0 → goose_py-0.9.3}/goose/_internal/task.py +0 -0
  22. {goose_py-0.9.0 → goose_py-0.9.3}/goose/_internal/types/__init__.py +0 -0
  23. {goose_py-0.9.0 → goose_py-0.9.3}/goose/_internal/types/agent.py +0 -0
  24. {goose_py-0.9.0 → goose_py-0.9.3}/goose/agent.py +0 -0
  25. {goose_py-0.9.0 → goose_py-0.9.3}/goose/errors.py +0 -0
  26. {goose_py-0.9.0 → goose_py-0.9.3}/goose/py.typed +0 -0
  27. {goose_py-0.9.0 → goose_py-0.9.3}/goose/runs.py +0 -0
  28. {goose_py-0.9.0 → goose_py-0.9.3}/tests/__init__.py +0 -0
  29. {goose_py-0.9.0 → goose_py-0.9.3}/tests/test_agent.py +0 -0
  30. {goose_py-0.9.0 → goose_py-0.9.3}/tests/test_complex_flow_arguments.py +0 -0
  31. {goose_py-0.9.0 → goose_py-0.9.3}/tests/test_downstream_task.py +0 -0
  32. {goose_py-0.9.0 → goose_py-0.9.3}/tests/test_looping.py +0 -0
  33. {goose_py-0.9.0 → goose_py-0.9.3}/tests/test_refining.py +0 -0
  34. {goose_py-0.9.0 → goose_py-0.9.3}/tests/test_regenerate.py +0 -0
  35. {goose_py-0.9.0 → goose_py-0.9.3}/tests/test_state.py +0 -0
@@ -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
@@ -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)
@@ -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)
@@ -0,0 +1,3 @@
1
+ from goose._internal.flow import Flow, FlowArguments, IGenerator
2
+
3
+ __all__ = ["Flow", "FlowArguments", "IGenerator"]
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "goose-py"
3
- version = "0.9.0"
3
+ version = "0.9.3"
4
4
  description = "A tool for AI workflows based on human-computer collaboration and structured output."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -234,7 +234,7 @@ wheels = [
234
234
 
235
235
  [[package]]
236
236
  name = "goose-py"
237
- version = "0.9.0"
237
+ version = "0.9.3"
238
238
  source = { editable = "." }
239
239
  dependencies = [
240
240
  { name = "jsonpath-ng" },
@@ -1,3 +0,0 @@
1
- from goose._internal.flow import Flow
2
-
3
- __all__ = ["Flow"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes