Skip to content

Commit 075c58f

Browse files
committed
fix: base agent protocol
1 parent 82690c5 commit 075c58f

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "workflowai"
3-
version = "0.6.0.dev18"
3+
version = "0.6.0.dev19"
44
description = ""
55
authors = ["Guillaume Aquilina <[email protected]>"]
66
readme = "README.md"

workflowai/core/client/_types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from typing_extensions import Unpack
1212

1313
from workflowai.core._common_types import AgentInputContra, AgentOutputCov, RunParams
14+
from workflowai.core.client._models import ModelInfo
1415
from workflowai.core.domain.run import Run
1516
from workflowai.core.domain.task import AgentInput, AgentOutput
1617
from workflowai.core.domain.tool_call import ToolCallResult
@@ -75,6 +76,8 @@ async def reply(
7576
**kwargs: Unpack[RunParams[AgentOutput]],
7677
): ...
7778

79+
async def list_models(self) -> list[ModelInfo]: ...
80+
7881

7982
class RunnableAgent(_BaseProtocol[AgentInputContra, AgentOutput], Protocol):
8083
async def __call__(

workflowai/core/domain/run.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,6 @@ async def fetch_completions(self) -> list[Completion]:
150150

151151

152152
class _AgentBase(Protocol, Generic[AgentOutput]):
153-
# TODO: fix circular dep
154-
from workflowai.core.client._models import ModelInfo
155-
156153
async def reply(
157154
self,
158155
run_id: str,
@@ -164,5 +161,3 @@ async def reply(
164161
...
165162

166163
async def fetch_completions(self, run_id: str) -> list[Completion]: ...
167-
168-
async def list_models(self) -> list[ModelInfo]: ...

0 commit comments

Comments
 (0)