File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " workflowai"
3- version = " 0.6.0.dev18 "
3+ version = " 0.6.0.dev19 "
44description = " "
55authors = [
" Guillaume Aquilina <[email protected] >" ]
66readme = " README.md"
Original file line number Diff line number Diff line change 1111from typing_extensions import Unpack
1212
1313from workflowai .core ._common_types import AgentInputContra , AgentOutputCov , RunParams
14+ from workflowai .core .client ._models import ModelInfo
1415from workflowai .core .domain .run import Run
1516from workflowai .core .domain .task import AgentInput , AgentOutput
1617from 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
7982class RunnableAgent (_BaseProtocol [AgentInputContra , AgentOutput ], Protocol ):
8083 async def __call__ (
Original file line number Diff line number Diff line change @@ -150,9 +150,6 @@ async def fetch_completions(self) -> list[Completion]:
150150
151151
152152class _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 ]: ...
You can’t perform that action at this time.
0 commit comments