goose-py 0.9.5__py3-none-any.whl → 0.9.7__py3-none-any.whl
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.
- goose/__init__.py +6 -4
- goose/_internal/agent.py +2 -7
- goose/_internal/conversation.py +2 -2
- goose/_internal/flow.py +6 -6
- goose/_internal/state.py +4 -4
- goose/_internal/store.py +1 -1
- goose/_internal/task.py +6 -6
- goose/agent.py +2 -2
- goose/flow.py +1 -1
- goose/runs.py +2 -2
- {goose_py-0.9.5.dist-info → goose_py-0.9.7.dist-info}/METADATA +1 -1
- goose_py-0.9.7.dist-info/RECORD +18 -0
- goose_py-0.9.5.dist-info/RECORD +0 -18
- {goose_py-0.9.5.dist-info → goose_py-0.9.7.dist-info}/WHEEL +0 -0
goose/__init__.py
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
from
|
2
|
-
from
|
3
|
-
from
|
4
|
-
from
|
1
|
+
from ._internal.agent import Agent
|
2
|
+
from ._internal.flow import FlowArguments, flow
|
3
|
+
from ._internal.result import Result, TextResult
|
4
|
+
from ._internal.task import task
|
5
|
+
|
6
|
+
__all__ = ["Agent", "flow", "FlowArguments", "Result", "TextResult", "task"]
|
goose/_internal/agent.py
CHANGED
@@ -6,13 +6,8 @@ from typing import Any, ClassVar, Protocol, TypedDict
|
|
6
6
|
from litellm import acompletion
|
7
7
|
from pydantic import BaseModel, computed_field
|
8
8
|
|
9
|
-
from
|
10
|
-
from
|
11
|
-
AssistantMessage,
|
12
|
-
GeminiModel,
|
13
|
-
SystemMessage,
|
14
|
-
UserMessage,
|
15
|
-
)
|
9
|
+
from .result import Result, TextResult
|
10
|
+
from .types.agent import AssistantMessage, GeminiModel, SystemMessage, UserMessage
|
16
11
|
|
17
12
|
|
18
13
|
class AgentResponseDump(TypedDict):
|
goose/_internal/conversation.py
CHANGED
@@ -2,8 +2,8 @@ from typing import Self
|
|
2
2
|
|
3
3
|
from pydantic import BaseModel
|
4
4
|
|
5
|
-
from
|
6
|
-
from
|
5
|
+
from .result import Result
|
6
|
+
from .types.agent import AssistantMessage, LLMMessage, SystemMessage, UserMessage
|
7
7
|
|
8
8
|
|
9
9
|
class Conversation[R: Result](BaseModel):
|
goose/_internal/flow.py
CHANGED
@@ -3,12 +3,12 @@ from contextlib import asynccontextmanager
|
|
3
3
|
from types import CodeType
|
4
4
|
from typing import Protocol, overload
|
5
5
|
|
6
|
-
from
|
7
|
-
from
|
8
|
-
from
|
9
|
-
from
|
10
|
-
from
|
11
|
-
from
|
6
|
+
from ..errors import Honk
|
7
|
+
from .agent import Agent, IAgentLogger
|
8
|
+
from .conversation import Conversation
|
9
|
+
from .result import Result
|
10
|
+
from .state import FlowArguments, FlowRun, get_current_flow_run, set_current_flow_run
|
11
|
+
from .store import IFlowRunStore, InMemoryFlowRunStore
|
12
12
|
|
13
13
|
|
14
14
|
class IGenerator[FlowArgumentsT: FlowArguments](Protocol):
|
goose/_internal/state.py
CHANGED
@@ -4,15 +4,15 @@ from typing import TYPE_CHECKING, Any, NewType, Self
|
|
4
4
|
|
5
5
|
from pydantic import BaseModel, ConfigDict
|
6
6
|
|
7
|
-
from
|
7
|
+
from ..errors import Honk
|
8
|
+
from .agent import (
|
8
9
|
Agent,
|
9
10
|
IAgentLogger,
|
10
11
|
SystemMessage,
|
11
12
|
UserMessage,
|
12
13
|
)
|
13
|
-
from
|
14
|
-
from
|
15
|
-
from goose.errors import Honk
|
14
|
+
from .conversation import Conversation
|
15
|
+
from .result import Result
|
16
16
|
|
17
17
|
if TYPE_CHECKING:
|
18
18
|
from goose._internal.task import Task
|
goose/_internal/store.py
CHANGED
goose/_internal/task.py
CHANGED
@@ -4,12 +4,12 @@ from typing import Any, overload
|
|
4
4
|
|
5
5
|
from pydantic import BaseModel
|
6
6
|
|
7
|
-
from
|
8
|
-
from
|
9
|
-
from
|
10
|
-
from
|
11
|
-
from
|
12
|
-
from
|
7
|
+
from ..errors import Honk
|
8
|
+
from .agent import Agent, GeminiModel, SystemMessage, UserMessage
|
9
|
+
from .conversation import Conversation
|
10
|
+
from .result import Result, TextResult
|
11
|
+
from .state import FlowRun, NodeState, get_current_flow_run
|
12
|
+
from .types.agent import AssistantMessage
|
13
13
|
|
14
14
|
|
15
15
|
class Task[**P, R: Result]:
|
goose/agent.py
CHANGED
goose/flow.py
CHANGED
goose/runs.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
from
|
2
|
-
from
|
1
|
+
from ._internal.state import FlowRun, SerializedFlowRun
|
2
|
+
from ._internal.store import IFlowRunStore
|
3
3
|
|
4
4
|
__all__ = ["FlowRun", "IFlowRunStore", "SerializedFlowRun"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: goose-py
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.7
|
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
|
@@ -0,0 +1,18 @@
|
|
1
|
+
goose/__init__.py,sha256=wjGDgWzKcD6S8loVr0n-rLCpRwg-ZKAixcUaw1wobMc,243
|
2
|
+
goose/agent.py,sha256=xA5mYqjS9iwiXooQzP0l1FsoDe6R7t1lyhekqroMu7c,590
|
3
|
+
goose/errors.py,sha256=-0OyZQJWYTRw5YgnCB2_uorVaUsL6Z0QYQO2FqzCiyg,32
|
4
|
+
goose/flow.py,sha256=YsZLBa5I1W27_P6LYGWbtFX8ZYx9vJG3KtENYChHm5E,111
|
5
|
+
goose/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
goose/runs.py,sha256=ub-r_gzbUbaIzWXX-jc-dncNxEh6zTfzIkmnDfCSbRI,160
|
7
|
+
goose/_internal/agent.py,sha256=DmkQGXoNEYo7CYUMUu81gJ0ZguCy7SiKQbamqYnvLpk,5824
|
8
|
+
goose/_internal/conversation.py,sha256=zbMvP4oxhKAzATVEXZfGVKXWfEjh472MYKhmyJzSLgI,1172
|
9
|
+
goose/_internal/flow.py,sha256=RShMsxgt49g1fZJ3rlwDHtI1j39lZzewx8hZ7DGN5kg,4124
|
10
|
+
goose/_internal/result.py,sha256=-eZJn-2sPo7rHZ38Sz6IAHXqiJ-Ss39esEoFGimJEBI,155
|
11
|
+
goose/_internal/state.py,sha256=pI-C37Ybazo7EJPbZklxbiCYFy3u4I031NKBr8Jm_CI,6534
|
12
|
+
goose/_internal/store.py,sha256=tWmKfa1-yq1jU6lT3l6kSOmVt2m3H7I1xLMTrxnUDI8,889
|
13
|
+
goose/_internal/task.py,sha256=wK0LMlQKzlRQO-F2Xyni0hkg91cSKkW65aHv0w9ANoc,6035
|
14
|
+
goose/_internal/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
|
+
goose/_internal/types/agent.py,sha256=rNVt2gEr_m4_8tGFgcdichpPp8xhOS5GY0kN2C4tiE8,2153
|
16
|
+
goose_py-0.9.7.dist-info/METADATA,sha256=dtdYEIAxpQERMBb3GwU3-ukAy_-ecRZuchae4Dpz2Po,441
|
17
|
+
goose_py-0.9.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
18
|
+
goose_py-0.9.7.dist-info/RECORD,,
|
goose_py-0.9.5.dist-info/RECORD
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
goose/__init__.py,sha256=_qg6tofbArI5KO7fWqaFNY5IcbVELTd7oS6uYijPmzg,185
|
2
|
-
goose/agent.py,sha256=g2tPFqEhqBABEjmpNJ2ShfjHDGzmeUXIgOZCKDZ2-40,600
|
3
|
-
goose/errors.py,sha256=-0OyZQJWYTRw5YgnCB2_uorVaUsL6Z0QYQO2FqzCiyg,32
|
4
|
-
goose/flow.py,sha256=mRyGvgyGgy39P5ZDc1L-8_XqPf8HCcrqGrTBDSswn4M,116
|
5
|
-
goose/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
goose/runs.py,sha256=kAHw08ayGbwzSH_p-CfsQDvTcA4H09nUuq6zt3gIFxo,170
|
7
|
-
goose/_internal/agent.py,sha256=l0pKfShovrs238sKAr-zubtcacYm82TGwQHcBWVJm2g,5875
|
8
|
-
goose/_internal/conversation.py,sha256=1OZQ_N6QZE7L_ZpXG2bjoWkVQ-G7h0JvKkqswmQWG58,1202
|
9
|
-
goose/_internal/flow.py,sha256=05U2f5i8ofQWDjghhomwuuEPMk-ftzXn7BVl_s7pIf8,4203
|
10
|
-
goose/_internal/result.py,sha256=-eZJn-2sPo7rHZ38Sz6IAHXqiJ-Ss39esEoFGimJEBI,155
|
11
|
-
goose/_internal/state.py,sha256=LmMxhr3OrilYRHRxw1xYnl_dUkndaayLej83ccjfOGs,6583
|
12
|
-
goose/_internal/store.py,sha256=GMW0wBpxESmRBLfL_lFKEi9x2P6Wd6-gZ7AWjWBTUmA,904
|
13
|
-
goose/_internal/task.py,sha256=2ScqedrBXZueFzQ73MWOFed8HdhOvFz_S6B54zBOKjc,6114
|
14
|
-
goose/_internal/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
|
-
goose/_internal/types/agent.py,sha256=rNVt2gEr_m4_8tGFgcdichpPp8xhOS5GY0kN2C4tiE8,2153
|
16
|
-
goose_py-0.9.5.dist-info/METADATA,sha256=LZ0eKUr1kLNQ5918kiGWdXn6xKYWzd_dlWsG9ZycSV4,441
|
17
|
-
goose_py-0.9.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
18
|
-
goose_py-0.9.5.dist-info/RECORD,,
|
File without changes
|