goose-py 0.1.2__tar.gz → 0.1.4__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.1.2
3
+ Version: 0.1.4
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
@@ -1,5 +1,4 @@
1
1
  import logging
2
- import uuid
3
2
  from datetime import datetime
4
3
  from typing import Any, Callable
5
4
 
@@ -20,9 +19,11 @@ class Agent:
20
19
  self,
21
20
  *,
22
21
  flow_name: str,
22
+ run_id: str,
23
23
  logger: Callable[[AgentResponse[Any]], None] | None = None,
24
24
  ) -> None:
25
25
  self.flow_name = flow_name
26
+ self.run_id = run_id
26
27
  self.logger = logger or logging.info
27
28
 
28
29
  async def __call__[R: BaseModel](
@@ -58,7 +59,7 @@ class Agent:
58
59
  end_time = datetime.now()
59
60
  agent_response = AgentResponse(
60
61
  response=parsed_response,
61
- id=str(uuid.uuid4()),
62
+ id=self.run_id,
62
63
  flow_name=self.flow_name,
63
64
  task_name=task_name,
64
65
  model=model,
@@ -177,11 +177,12 @@ class Flow:
177
177
  self,
178
178
  *,
179
179
  name: str,
180
+ run_id: str,
180
181
  agent_logger: Callable[[AgentResponse[Any]], None] | None = None,
181
182
  ) -> None:
182
183
  self.name = name
183
184
  self._nodes: list[Node[BaseModel]] = []
184
- self._agent = Agent(flow_name=self.name, logger=agent_logger)
185
+ self._agent = Agent(flow_name=self.name, run_id=run_id, logger=agent_logger)
185
186
 
186
187
  @property
187
188
  def agent(self) -> Agent:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "goose-py"
3
- version = "0.1.2"
3
+ version = "0.1.4"
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