goose-py 0.6.0__py3-none-any.whl → 0.7.0__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 +4 -5
- goose/{_agent.py → _internal/agent.py} +7 -2
- goose/{_conversation.py → _internal/conversation.py} +7 -2
- goose/{_flow.py → _internal/flow.py} +5 -5
- goose/{_state.py → _internal/state.py} +4 -4
- goose/{_store.py → _internal/store.py} +2 -2
- goose/{_task.py → _internal/task.py} +5 -5
- goose/agent.py +28 -0
- goose/flow.py +3 -0
- goose/runs.py +4 -0
- goose_py-0.7.0.dist-info/METADATA +14 -0
- goose_py-0.7.0.dist-info/RECORD +18 -0
- {goose_py-0.6.0.dist-info → goose_py-0.7.0.dist-info}/WHEEL +1 -1
- goose_py-0.6.0.dist-info/METADATA +0 -31
- goose_py-0.6.0.dist-info/RECORD +0 -15
- /goose/{_result.py → _internal/result.py} +0 -0
- /goose/{types → _internal/types}/__init__.py +0 -0
- /goose/{types → _internal/types}/agent.py +0 -0
goose/__init__.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
from goose.
|
2
|
-
from goose.
|
3
|
-
from goose.
|
4
|
-
from goose.
|
5
|
-
from goose._task import task
|
1
|
+
from goose._internal.agent import Agent
|
2
|
+
from goose._internal.flow import flow
|
3
|
+
from goose._internal.result import Result, TextResult
|
4
|
+
from goose._internal.task import task
|
@@ -6,8 +6,13 @@ 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 goose.
|
10
|
-
from goose.types.agent import
|
9
|
+
from goose._internal.result import Result, TextResult
|
10
|
+
from goose._internal.types.agent import (
|
11
|
+
AssistantMessage,
|
12
|
+
GeminiModel,
|
13
|
+
SystemMessage,
|
14
|
+
UserMessage,
|
15
|
+
)
|
11
16
|
|
12
17
|
|
13
18
|
class AgentResponseDump(TypedDict):
|
@@ -1,7 +1,12 @@
|
|
1
1
|
from pydantic import BaseModel
|
2
2
|
|
3
|
-
from goose.
|
4
|
-
from goose.types.agent import
|
3
|
+
from goose._internal.result import Result
|
4
|
+
from goose._internal.types.agent import (
|
5
|
+
AssistantMessage,
|
6
|
+
LLMMessage,
|
7
|
+
SystemMessage,
|
8
|
+
UserMessage,
|
9
|
+
)
|
5
10
|
|
6
11
|
|
7
12
|
class Conversation[R: Result](BaseModel):
|
@@ -2,11 +2,11 @@ from contextlib import asynccontextmanager
|
|
2
2
|
from types import CodeType
|
3
3
|
from typing import AsyncIterator, Awaitable, Callable, Protocol, overload
|
4
4
|
|
5
|
-
from goose.
|
6
|
-
from goose.
|
7
|
-
from goose.
|
8
|
-
from goose.
|
9
|
-
from goose.
|
5
|
+
from goose._internal.agent import Agent, IAgentLogger
|
6
|
+
from goose._internal.conversation import Conversation
|
7
|
+
from goose._internal.result import Result
|
8
|
+
from goose._internal.state import FlowRun, get_current_flow_run, set_current_flow_run
|
9
|
+
from goose._internal.store import IFlowRunStore, InMemoryFlowRunStore
|
10
10
|
from goose.errors import Honk
|
11
11
|
|
12
12
|
|
@@ -4,18 +4,18 @@ from typing import TYPE_CHECKING, Any, Self
|
|
4
4
|
|
5
5
|
from pydantic import BaseModel
|
6
6
|
|
7
|
-
from goose.
|
7
|
+
from goose._internal.agent import (
|
8
8
|
Agent,
|
9
9
|
IAgentLogger,
|
10
10
|
SystemMessage,
|
11
11
|
UserMessage,
|
12
12
|
)
|
13
|
-
from goose.
|
14
|
-
from goose.
|
13
|
+
from goose._internal.conversation import Conversation
|
14
|
+
from goose._internal.result import Result
|
15
15
|
from goose.errors import Honk
|
16
16
|
|
17
17
|
if TYPE_CHECKING:
|
18
|
-
from goose.
|
18
|
+
from goose._internal.task import Task
|
19
19
|
|
20
20
|
|
21
21
|
@dataclass
|
@@ -2,8 +2,8 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
from typing import Protocol
|
4
4
|
|
5
|
-
from goose.
|
6
|
-
from goose.
|
5
|
+
from goose._internal.flow import FlowRun
|
6
|
+
from goose._internal.state import FlowRunState
|
7
7
|
|
8
8
|
|
9
9
|
class IFlowRunStore(Protocol):
|
@@ -1,11 +1,11 @@
|
|
1
1
|
from typing import Awaitable, Callable, overload
|
2
2
|
|
3
|
-
from goose.
|
4
|
-
from goose.
|
5
|
-
from goose.
|
6
|
-
from goose.
|
3
|
+
from goose._internal.agent import Agent, GeminiModel, SystemMessage, UserMessage
|
4
|
+
from goose._internal.conversation import Conversation
|
5
|
+
from goose._internal.result import Result, TextResult
|
6
|
+
from goose._internal.state import FlowRun, NodeState, get_current_flow_run
|
7
|
+
from goose._internal.types.agent import AssistantMessage
|
7
8
|
from goose.errors import Honk
|
8
|
-
from goose.types.agent import AssistantMessage
|
9
9
|
|
10
10
|
|
11
11
|
class Task[**P, R: Result]:
|
goose/agent.py
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
from goose._internal.agent import AgentResponse, IAgentLogger
|
2
|
+
from goose._internal.types.agent import (
|
3
|
+
AssistantMessage,
|
4
|
+
GeminiModel,
|
5
|
+
LLMMediaMessagePart,
|
6
|
+
LLMMessage,
|
7
|
+
LLMTextMessagePart,
|
8
|
+
MediaMessagePart,
|
9
|
+
SystemMessage,
|
10
|
+
TextMessagePart,
|
11
|
+
UserMediaContentType,
|
12
|
+
UserMessage,
|
13
|
+
)
|
14
|
+
|
15
|
+
__all__ = [
|
16
|
+
"AgentResponse",
|
17
|
+
"IAgentLogger",
|
18
|
+
"AssistantMessage",
|
19
|
+
"GeminiModel",
|
20
|
+
"LLMMediaMessagePart",
|
21
|
+
"LLMMessage",
|
22
|
+
"LLMTextMessagePart",
|
23
|
+
"MediaMessagePart",
|
24
|
+
"SystemMessage",
|
25
|
+
"TextMessagePart",
|
26
|
+
"UserMediaContentType",
|
27
|
+
"UserMessage",
|
28
|
+
]
|
goose/flow.py
ADDED
goose/runs.py
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: goose-py
|
3
|
+
Version: 0.7.0
|
4
|
+
Summary: A tool for AI workflows based on human-computer collaboration and structured output.
|
5
|
+
Author-email: Nash Taylor <nash@chelle.ai>, Joshua Cook <joshua@chelle.ai>, Michael Sankur <michael@chelle.ai>
|
6
|
+
Requires-Python: >=3.12
|
7
|
+
Requires-Dist: jsonpath-ng>=1.7.0
|
8
|
+
Requires-Dist: litellm>=1.56.5
|
9
|
+
Requires-Dist: pydantic>=2.8.2
|
10
|
+
Description-Content-Type: text/markdown
|
11
|
+
|
12
|
+
# Goose
|
13
|
+
|
14
|
+
Docs to come.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
goose/__init__.py,sha256=mppYCowcZw9ke_4y1d1ayHwI3502LBaY959jdOVBPp0,170
|
2
|
+
goose/agent.py,sha256=g2tPFqEhqBABEjmpNJ2ShfjHDGzmeUXIgOZCKDZ2-40,600
|
3
|
+
goose/errors.py,sha256=-0OyZQJWYTRw5YgnCB2_uorVaUsL6Z0QYQO2FqzCiyg,32
|
4
|
+
goose/flow.py,sha256=A1bzNIjnoVXRFm6LGhQglxVnKMP0vEVfvTubTol7Kww,58
|
5
|
+
goose/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
goose/runs.py,sha256=HHcky_IbmY9HWBjpXJgOcH2Ko0N39qADsGIPR8QYpek,160
|
7
|
+
goose/_internal/agent.py,sha256=lXx7tXS518Od7ASIAcFnaGxb_GyJjvm2DI-ufvPJqa8,6101
|
8
|
+
goose/_internal/conversation.py,sha256=lOJ3v4uXjM8l8_kRShFTPJiRo4bJr7JvCEl8gwOdres,1217
|
9
|
+
goose/_internal/flow.py,sha256=334uZEkgthWqe2kNloArnIPWUuY9TXSdfItrr82Yn7E,3253
|
10
|
+
goose/_internal/result.py,sha256=-eZJn-2sPo7rHZ38Sz6IAHXqiJ-Ss39esEoFGimJEBI,155
|
11
|
+
goose/_internal/state.py,sha256=3psalnzNN7lZkc5jKGqprCSjt31z6ZiY3wzcefpa-Go,5829
|
12
|
+
goose/_internal/store.py,sha256=vIxPIpechF_lEQlQ8JT1NDySDfHe3-eMHEWeTqVbscg,946
|
13
|
+
goose/_internal/task.py,sha256=Sru14gAoebW5LXWWCJxs_HWiivhO-zq8cXr6bOosAcA,4756
|
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.7.0.dist-info/METADATA,sha256=Petgz53R3syhL8FAuSe32QUEMrtGFg_hNvCbC2ZoI7w,441
|
17
|
+
goose_py-0.7.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
18
|
+
goose_py-0.7.0.dist-info/RECORD,,
|
@@ -1,31 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: goose-py
|
3
|
-
Version: 0.6.0
|
4
|
-
Summary: A tool for AI workflows based on human-computer collaboration and structured output.
|
5
|
-
Home-page: https://github.com/chelle-ai/goose
|
6
|
-
Keywords: ai,yaml,configuration,llm
|
7
|
-
Author: Nash Taylor
|
8
|
-
Author-email: nash@chelle.ai
|
9
|
-
Requires-Python: >=3.12,<4.0
|
10
|
-
Classifier: Development Status :: 4 - Beta
|
11
|
-
Classifier: Intended Audience :: Developers
|
12
|
-
Classifier: Operating System :: OS Independent
|
13
|
-
Classifier: Programming Language :: Python :: 3
|
14
|
-
Classifier: Programming Language :: Python :: 3.12
|
15
|
-
Classifier: Programming Language :: Python :: 3.13
|
16
|
-
Provides-Extra: test
|
17
|
-
Requires-Dist: ipykernel ; extra == "test"
|
18
|
-
Requires-Dist: jsonpath-ng (>=1.7.0,<2.0.0)
|
19
|
-
Requires-Dist: litellm (>=1.56.5,<2.0.0)
|
20
|
-
Requires-Dist: pydantic (>=2.8.2,<3.0.0)
|
21
|
-
Requires-Dist: pytest (<8) ; extra == "test"
|
22
|
-
Requires-Dist: pytest-asyncio ; extra == "test"
|
23
|
-
Requires-Dist: pytest-mock ; extra == "test"
|
24
|
-
Project-URL: Documentation, https://github.com/chelle-ai/goose
|
25
|
-
Project-URL: Repository, https://github.com/chelle-ai/goose
|
26
|
-
Description-Content-Type: text/markdown
|
27
|
-
|
28
|
-
# Goose
|
29
|
-
|
30
|
-
Docs to come.
|
31
|
-
|
goose_py-0.6.0.dist-info/RECORD
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
goose/__init__.py,sha256=vDVznQm4FIZmqjmCEJdOozSWLse5c-adbesRLdmNyiE,202
|
2
|
-
goose/_agent.py,sha256=aeHJrCP3257fNDwpt4ls-zqL76Vs3p4wNJvQFHdk_xM,6061
|
3
|
-
goose/_conversation.py,sha256=8ZgoBHnwWZ4zYnf5wQXEo0mVs50ixMIQqc2qDOTorPE,1177
|
4
|
-
goose/_flow.py,sha256=lx8L6ZizovtgLG1GGn0zf_zuRAez5TN6gD8Q182s0Ks,3208
|
5
|
-
goose/_result.py,sha256=-eZJn-2sPo7rHZ38Sz6IAHXqiJ-Ss39esEoFGimJEBI,155
|
6
|
-
goose/_state.py,sha256=eG5SyO-YVj9A9a4HSoIF-YInVF3cwJkZ906B1GHohr4,5793
|
7
|
-
goose/_store.py,sha256=wB-VWaWXvW1PlyKm05Ti21XM6PFqsAPEGvAYyFokApk,928
|
8
|
-
goose/_task.py,sha256=lE7k79Jmb7Lkz4vJj2rEt53TG7XnVqDFltON3iONamk,4710
|
9
|
-
goose/errors.py,sha256=-0OyZQJWYTRw5YgnCB2_uorVaUsL6Z0QYQO2FqzCiyg,32
|
10
|
-
goose/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
goose/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
|
-
goose/types/agent.py,sha256=rNVt2gEr_m4_8tGFgcdichpPp8xhOS5GY0kN2C4tiE8,2153
|
13
|
-
goose_py-0.6.0.dist-info/METADATA,sha256=VR7a7oYrrSN8a1-aF5xC05ZwUp45gwh8txPv1VMgYxE,1106
|
14
|
-
goose_py-0.6.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
15
|
-
goose_py-0.6.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|