goose-py 0.9.14__tar.gz → 0.9.15__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.14 → goose_py-0.9.15}/.stubs/litellm/__init__.pyi +3 -7
  2. {goose_py-0.9.14 → goose_py-0.9.15}/PKG-INFO +1 -1
  3. {goose_py-0.9.14 → goose_py-0.9.15}/goose/_internal/agent.py +1 -5
  4. {goose_py-0.9.14 → goose_py-0.9.15}/pyproject.toml +1 -1
  5. {goose_py-0.9.14 → goose_py-0.9.15}/uv.lock +1 -1
  6. {goose_py-0.9.14 → goose_py-0.9.15}/.envrc +0 -0
  7. {goose_py-0.9.14 → goose_py-0.9.15}/.github/workflows/publish.yml +0 -0
  8. {goose_py-0.9.14 → goose_py-0.9.15}/.gitignore +0 -0
  9. {goose_py-0.9.14 → goose_py-0.9.15}/.python-version +0 -0
  10. {goose_py-0.9.14 → goose_py-0.9.15}/.stubs/jsonpath_ng/__init__.pyi +0 -0
  11. {goose_py-0.9.14 → goose_py-0.9.15}/Makefile +0 -0
  12. {goose_py-0.9.14 → goose_py-0.9.15}/README.md +0 -0
  13. {goose_py-0.9.14 → goose_py-0.9.15}/goose/__init__.py +0 -0
  14. {goose_py-0.9.14 → goose_py-0.9.15}/goose/_internal/conversation.py +0 -0
  15. {goose_py-0.9.14 → goose_py-0.9.15}/goose/_internal/flow.py +0 -0
  16. {goose_py-0.9.14 → goose_py-0.9.15}/goose/_internal/result.py +0 -0
  17. {goose_py-0.9.14 → goose_py-0.9.15}/goose/_internal/state.py +0 -0
  18. {goose_py-0.9.14 → goose_py-0.9.15}/goose/_internal/store.py +0 -0
  19. {goose_py-0.9.14 → goose_py-0.9.15}/goose/_internal/task.py +0 -0
  20. {goose_py-0.9.14 → goose_py-0.9.15}/goose/_internal/types/__init__.py +0 -0
  21. {goose_py-0.9.14 → goose_py-0.9.15}/goose/_internal/types/agent.py +0 -0
  22. {goose_py-0.9.14 → goose_py-0.9.15}/goose/agent.py +0 -0
  23. {goose_py-0.9.14 → goose_py-0.9.15}/goose/errors.py +0 -0
  24. {goose_py-0.9.14 → goose_py-0.9.15}/goose/flow.py +0 -0
  25. {goose_py-0.9.14 → goose_py-0.9.15}/goose/py.typed +0 -0
  26. {goose_py-0.9.14 → goose_py-0.9.15}/goose/runs.py +0 -0
  27. {goose_py-0.9.14 → goose_py-0.9.15}/goose/task.py +0 -0
  28. {goose_py-0.9.14 → goose_py-0.9.15}/tests/__init__.py +0 -0
  29. {goose_py-0.9.14 → goose_py-0.9.15}/tests/test_agent.py +0 -0
  30. {goose_py-0.9.14 → goose_py-0.9.15}/tests/test_downstream_task.py +0 -0
  31. {goose_py-0.9.14 → goose_py-0.9.15}/tests/test_hashing.py +0 -0
  32. {goose_py-0.9.14 → goose_py-0.9.15}/tests/test_looping.py +0 -0
  33. {goose_py-0.9.14 → goose_py-0.9.15}/tests/test_refining.py +0 -0
  34. {goose_py-0.9.14 → goose_py-0.9.15}/tests/test_regenerate.py +0 -0
  35. {goose_py-0.9.14 → goose_py-0.9.15}/tests/test_state.py +0 -0
@@ -1,4 +1,5 @@
1
- from typing import Any, Literal, NotRequired, TypedDict
1
+ from typing import Literal, NotRequired, TypedDict
2
+ from pydantic import BaseModel
2
3
 
3
4
  _LiteLLMGeminiModel = Literal[
4
5
  "vertex_ai/gemini-1.5-flash",
@@ -28,11 +29,6 @@ class _LiteLLMMessage(TypedDict):
28
29
  content: list[_LiteLLMTextMessageContent | _LiteLLMMediaMessageContent]
29
30
  cache_control: NotRequired[_LiteLLMCacheControl]
30
31
 
31
- class _LiteLLMResponseFormat(TypedDict):
32
- type: Literal["json_object"]
33
- response_schema: dict[str, Any] # must be a valid JSON schema
34
- enforce_validation: NotRequired[bool]
35
-
36
32
  class _LiteLLMModelResponseChoiceMessage:
37
33
  role: Literal["assistant"]
38
34
  content: str
@@ -60,7 +56,7 @@ async def acompletion(
60
56
  *,
61
57
  model: _LiteLLMGeminiModel,
62
58
  messages: list[_LiteLLMMessage],
63
- response_format: _LiteLLMResponseFormat | None = None,
59
+ response_format: type[BaseModel] | None = None,
64
60
  max_tokens: int | None = None,
65
61
  temperature: float = 1.0,
66
62
  ) -> ModelResponse: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: goose-py
3
- Version: 0.9.14
3
+ Version: 0.9.15
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
@@ -153,11 +153,7 @@ class Agent:
153
153
  response = await acompletion(
154
154
  model=model.value,
155
155
  messages=rendered_messages,
156
- response_format={
157
- "type": "json_object",
158
- "response_schema": response_model.model_json_schema(),
159
- "enforce_validation": True,
160
- },
156
+ response_format=response_model,
161
157
  )
162
158
  parsed_response = response_model.model_validate_json(response.choices[0].message.content)
163
159
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "goose-py"
3
- version = "0.9.14"
3
+ version = "0.9.15"
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.14"
237
+ version = "0.9.15"
238
238
  source = { editable = "." }
239
239
  dependencies = [
240
240
  { name = "jsonpath-ng" },
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
File without changes