goose-py 0.11.0__tar.gz → 0.11.1__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 (34) hide show
  1. {goose_py-0.11.0 → goose_py-0.11.1}/PKG-INFO +2 -2
  2. {goose_py-0.11.0 → goose_py-0.11.1}/goose/_internal/agent.py +9 -10
  3. {goose_py-0.11.0 → goose_py-0.11.1}/pyproject.toml +2 -2
  4. {goose_py-0.11.0 → goose_py-0.11.1}/uv.lock +9 -8
  5. {goose_py-0.11.0 → goose_py-0.11.1}/.envrc +0 -0
  6. {goose_py-0.11.0 → goose_py-0.11.1}/.github/workflows/publish.yml +0 -0
  7. {goose_py-0.11.0 → goose_py-0.11.1}/.gitignore +0 -0
  8. {goose_py-0.11.0 → goose_py-0.11.1}/.python-version +0 -0
  9. {goose_py-0.11.0 → goose_py-0.11.1}/.stubs/jsonpath_ng/__init__.pyi +0 -0
  10. {goose_py-0.11.0 → goose_py-0.11.1}/Makefile +0 -0
  11. {goose_py-0.11.0 → goose_py-0.11.1}/README.md +0 -0
  12. {goose_py-0.11.0 → goose_py-0.11.1}/goose/__init__.py +0 -0
  13. {goose_py-0.11.0 → goose_py-0.11.1}/goose/_internal/conversation.py +0 -0
  14. {goose_py-0.11.0 → goose_py-0.11.1}/goose/_internal/flow.py +0 -0
  15. {goose_py-0.11.0 → goose_py-0.11.1}/goose/_internal/result.py +0 -0
  16. {goose_py-0.11.0 → goose_py-0.11.1}/goose/_internal/state.py +0 -0
  17. {goose_py-0.11.0 → goose_py-0.11.1}/goose/_internal/store.py +0 -0
  18. {goose_py-0.11.0 → goose_py-0.11.1}/goose/_internal/task.py +0 -0
  19. {goose_py-0.11.0 → goose_py-0.11.1}/goose/_internal/types/__init__.py +0 -0
  20. {goose_py-0.11.0 → goose_py-0.11.1}/goose/_internal/types/telemetry.py +0 -0
  21. {goose_py-0.11.0 → goose_py-0.11.1}/goose/errors.py +0 -0
  22. {goose_py-0.11.0 → goose_py-0.11.1}/goose/flow.py +0 -0
  23. {goose_py-0.11.0 → goose_py-0.11.1}/goose/py.typed +0 -0
  24. {goose_py-0.11.0 → goose_py-0.11.1}/goose/runs.py +0 -0
  25. {goose_py-0.11.0 → goose_py-0.11.1}/goose/task.py +0 -0
  26. {goose_py-0.11.0 → goose_py-0.11.1}/tests/__init__.py +0 -0
  27. {goose_py-0.11.0 → goose_py-0.11.1}/tests/test_agent.py +0 -0
  28. {goose_py-0.11.0 → goose_py-0.11.1}/tests/test_ask.py +0 -0
  29. {goose_py-0.11.0 → goose_py-0.11.1}/tests/test_downstream_task.py +0 -0
  30. {goose_py-0.11.0 → goose_py-0.11.1}/tests/test_hashing.py +0 -0
  31. {goose_py-0.11.0 → goose_py-0.11.1}/tests/test_looping.py +0 -0
  32. {goose_py-0.11.0 → goose_py-0.11.1}/tests/test_refining.py +0 -0
  33. {goose_py-0.11.0 → goose_py-0.11.1}/tests/test_regenerate.py +0 -0
  34. {goose_py-0.11.0 → goose_py-0.11.1}/tests/test_state.py +0 -0
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: goose-py
3
- Version: 0.11.0
3
+ Version: 0.11.1
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
7
- Requires-Dist: aikernel>=0.1.5
7
+ Requires-Dist: aikernel>=0.1.8
8
8
  Requires-Dist: jsonpath-ng>=1.7.0
9
9
  Requires-Dist: pydantic>=2.8.2
10
10
  Description-Content-Type: text/markdown
@@ -9,7 +9,6 @@ from aikernel import (
9
9
  LLMUserMessage,
10
10
  llm_structured,
11
11
  llm_unstructured,
12
- render_message,
13
12
  )
14
13
  from pydantic import ValidationError
15
14
 
@@ -54,11 +53,11 @@ class Agent:
54
53
  end_time = datetime.now()
55
54
 
56
55
  if isinstance(messages[0], LLMSystemMessage):
57
- system = render_message(messages[0])
58
- input_messages = [render_message(message) for message in messages[1:]]
56
+ system = messages[0].render()
57
+ input_messages = [message.render() for message in messages[1:]]
59
58
  else:
60
59
  system = None
61
- input_messages = [render_message(message) for message in messages]
60
+ input_messages = [message.render() for message in messages]
62
61
 
63
62
  agent_response = AgentResponse(
64
63
  response=parsed_response,
@@ -93,11 +92,11 @@ class Agent:
93
92
  end_time = datetime.now()
94
93
 
95
94
  if isinstance(messages[0], LLMSystemMessage):
96
- system = render_message(messages[0])
97
- input_messages = [render_message(message) for message in messages[1:]]
95
+ system = messages[0].render()
96
+ input_messages = [message.render() for message in messages[1:]]
98
97
  else:
99
98
  system = None
100
- input_messages = [render_message(message) for message in messages]
99
+ input_messages = [message.render() for message in messages]
101
100
 
102
101
  agent_response = AgentResponse(
103
102
  response=response.text,
@@ -134,11 +133,11 @@ class Agent:
134
133
  end_time = datetime.now()
135
134
 
136
135
  if isinstance(messages[0], LLMSystemMessage):
137
- system = render_message(messages[0])
138
- input_messages = [render_message(message) for message in messages[1:]]
136
+ system = messages[0].render()
137
+ input_messages = [message.render() for message in messages[1:]]
139
138
  else:
140
139
  system = None
141
- input_messages = [render_message(message) for message in messages]
140
+ input_messages = [message.render() for message in messages]
142
141
 
143
142
  agent_response = AgentResponse(
144
143
  response=parsed_find_replace_response,
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "goose-py"
3
- version = "0.11.0"
3
+ version = "0.11.1"
4
4
  description = "A tool for AI workflows based on human-computer collaboration and structured output."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -11,7 +11,7 @@ authors = [
11
11
  requires-python = ">=3.12"
12
12
  dependencies = [
13
13
  "jsonpath-ng>=1.7.0",
14
- "aikernel>=0.1.5",
14
+ "aikernel>=0.1.8",
15
15
  "pydantic>=2.8.2",
16
16
  ]
17
17
 
@@ -3,15 +3,16 @@ requires-python = ">=3.12"
3
3
 
4
4
  [[package]]
5
5
  name = "aikernel"
6
- version = "0.1.5"
6
+ version = "0.1.8"
7
7
  source = { registry = "https://pypi.org/simple" }
8
8
  dependencies = [
9
9
  { name = "litellm" },
10
+ { name = "openai" },
10
11
  { name = "pydantic" },
11
12
  ]
12
- sdist = { url = "https://files.pythonhosted.org/packages/d8/7e/c93fa88409e25e22b4fb5cb70d388af3c15654123e912fa8fbde1216227d/aikernel-0.1.5.tar.gz", hash = "sha256:9293c26c15f83600c8183f350b45a008bfb40e6f546f7e691af90cb433720e68", size = 70378 }
13
+ sdist = { url = "https://files.pythonhosted.org/packages/d7/3e/269f9c9c093260d3d25c5af853134c65fea6159766e5c8b7d66f305f4076/aikernel-0.1.8.tar.gz", hash = "sha256:8df48eef50882d6d375cc37d65720c80efe7c7e5ae73a10e5a5a302cea255da0", size = 70364 }
13
14
  wheels = [
14
- { url = "https://files.pythonhosted.org/packages/04/50/27140f0118bc653ce8a60e352dc4b8a14bbc19c8033ecfcf33130d8e1e6d/aikernel-0.1.5-py3-none-any.whl", hash = "sha256:4a515bdd5d4195f9dbbf960e808feb26403b24b51f77427f85c83ad6d42003ca", size = 7421 },
15
+ { url = "https://files.pythonhosted.org/packages/a8/55/b8ed6f5f83e7b1cb79e676ca106a618a1be15eba9886f9f1699cd8d9ef90/aikernel-0.1.8-py3-none-any.whl", hash = "sha256:673a4b454d0d98b0c786c43c5ce53ae18573851692b1a5c7ca82bda7314a09e2", size = 6992 },
15
16
  ]
16
17
 
17
18
  [[package]]
@@ -345,7 +346,7 @@ wheels = [
345
346
 
346
347
  [[package]]
347
348
  name = "goose-py"
348
- version = "0.11.0"
349
+ version = "0.11.1"
349
350
  source = { editable = "." }
350
351
  dependencies = [
351
352
  { name = "aikernel" },
@@ -365,7 +366,7 @@ dev = [
365
366
 
366
367
  [package.metadata]
367
368
  requires-dist = [
368
- { name = "aikernel", specifier = ">=0.1.5" },
369
+ { name = "aikernel", specifier = ">=0.1.8" },
369
370
  { name = "jsonpath-ng", specifier = ">=1.7.0" },
370
371
  { name = "pydantic", specifier = ">=2.8.2" },
371
372
  ]
@@ -653,7 +654,7 @@ wheels = [
653
654
 
654
655
  [[package]]
655
656
  name = "litellm"
656
- version = "1.60.0"
657
+ version = "1.63.2"
657
658
  source = { registry = "https://pypi.org/simple" }
658
659
  dependencies = [
659
660
  { name = "aiohttp" },
@@ -668,9 +669,9 @@ dependencies = [
668
669
  { name = "tiktoken" },
669
670
  { name = "tokenizers" },
670
671
  ]
671
- sdist = { url = "https://files.pythonhosted.org/packages/88/02/dd7191498805a6a1b5577993b0e01b5edff7b934fa95fbced4b1f7e09be2/litellm-1.60.0.tar.gz", hash = "sha256:45e3d9d7c19c02b7a1adf1c86102395fc667ebf35f72033e490e8f6fae7d0f8e", size = 6437939 }
672
+ sdist = { url = "https://files.pythonhosted.org/packages/6a/78/ff6d5439168bce504fb28bad1bc6f596dd76fbfacbc330367a1c08a250a7/litellm-1.63.2.tar.gz", hash = "sha256:cf9ab581198a12a5584571e0b2ad83869c7621684936ed26d7bf59015d0a8d2b", size = 6587491 }
672
673
  wheels = [
673
- { url = "https://files.pythonhosted.org/packages/72/db/382c5e34025acb2a01e02d8ce3e1b675d41a29b2e5c694435272675f6fb2/litellm-1.60.0-py3-none-any.whl", hash = "sha256:e8284f5cc74ae1aed77516cdfbb2db3746d50c4ba055fb21358e6e25aea25a15", size = 6732210 },
674
+ { url = "https://files.pythonhosted.org/packages/d9/50/5b8a1ad1ca3851b979b2fbd1a66d6f458dc5edd478101a06a8becff1df2d/litellm-1.63.2-py3-none-any.whl", hash = "sha256:1224e15b351a0f194bd5d908ccf4ff5d0e16b583f120519a5e68158bd44da071", size = 6898192 },
674
675
  ]
675
676
 
676
677
  [[package]]
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