goose-py 0.4.1__tar.gz → 0.4.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: goose-py
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: A tool for AI workflows based on human-computer collaboration and structured output.
5
5
  Home-page: https://github.com/chelle-ai/goose
6
6
  Keywords: ai,yaml,configuration,llm
@@ -24,8 +24,8 @@ from goose.agent import (
24
24
  UserMessage,
25
25
  )
26
26
  from goose.errors import Honk
27
- from goose.store import IFlowRunStore, InMemoryFlowRunStore
28
27
  from goose.result import Result
28
+ from goose.store import IFlowRunStore, InMemoryFlowRunStore
29
29
 
30
30
  SerializedFlowRun = NewType("SerializedFlowRun", str)
31
31
 
@@ -65,7 +65,9 @@ class Conversation[R: Result](BaseModel):
65
65
  class IAdapter[ResultT: Result](Protocol):
66
66
  __code__: CodeType
67
67
 
68
- async def __call__(self, *, conversation: Conversation[ResultT]) -> ResultT: ...
68
+ async def __call__(
69
+ self, *, conversation: Conversation[ResultT], agent: Agent
70
+ ) -> ResultT: ...
69
71
 
70
72
 
71
73
  class NodeState[ResultT: Result](BaseModel):
@@ -354,7 +356,9 @@ class Task[**P, R: Result]:
354
356
  node_state.set_context(context=context)
355
357
  node_state.add_user_message(message=user_message)
356
358
 
357
- result = await self._adapter(conversation=node_state.conversation)
359
+ result = await self._adapter(
360
+ conversation=node_state.conversation, agent=flow_run.agent
361
+ )
358
362
  node_state.add_result(result=result)
359
363
  flow_run.add_node_state(node_state)
360
364
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "goose-py"
3
- version = "0.4.1"
3
+ version = "0.4.2"
4
4
  description = "A tool for AI workflows based on human-computer collaboration and structured output."
5
5
  authors = [
6
6
  "Nash Taylor <nash@chelle.ai>",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes