2.1.0 (#317)
Co-authored-by: Quentin Torroba <quentin.torroba@mistral.ai> Co-authored-by: Michel Thomazo <michel.thomazo@mistral.ai> Co-authored-by: Clément Drouin <clement.drouin@mistral.ai> Co-authored-by: Vincent Guilloux <vincent.guilloux@mistral.ai> Co-authored-by: Clément Siriex <clement.sirieix@mistral.ai> Co-authored-by: Kim-Adeline Miguel <kimadeline.miguel@mistral.ai> Co-authored-by: Nicolas Karolak <nicolas@karolak.fr>
This commit is contained in:
parent
9809cfc831
commit
51fecc67d9
176 changed files with 8652 additions and 4451 deletions
|
|
@ -51,7 +51,6 @@ def get_mocking_env(mock_chunks: list[LLMChunk] | None = None) -> dict[str, str]
|
|||
|
||||
|
||||
async def collect_result[T](gen: AsyncGenerator[ToolStreamEvent | T, None]) -> T:
|
||||
"""Collect the final result from an AsyncGenerator, filtering out stream events."""
|
||||
result = None
|
||||
async for item in gen:
|
||||
if not isinstance(item, ToolStreamEvent):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue