mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-24 21:01:26 -04:00
[PR #351] [MERGED] feat: add get_task_result_stream to new client #410
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/llama_deploy/pull/351
Author: @masci
Created: 11/6/2024
Status: ✅ Merged
Merged: 11/8/2024
Merged by: @masci
Base:
main← Head:massi/client-streaming📝 Commits (3)
aac367cfeat: add get_task_result_stream to new client62ee7f4prevent using the sync client within an async loop9ac6ea6remove debug print📊 Changes
7 files changed (+204 additions, -30 deletions)
View changed files
📝
e2e_tests/basic_streaming/test_run_client.py(+10 -22)📝
llama_deploy/client/client.py(+8 -1)📝
llama_deploy/client/models/core.py(+34 -1)📝
llama_deploy/client/models/model.py(+29 -5)📝
tests/client/models/test_core.py(+95 -0)📝
tests/client/models/test_model.py(+18 -1)📝
tests/client/test_client.py(+10 -0)📄 Description
This PR ports the last method missing from
AsyncSessionClient,get_task_result_stream.Fixes https://github.com/run-llama/llama_deploy/issues/335
Notes for the reviewer:
Coroutine[AsyncGenerator]when converted withasync_to_syncreturnAsyncGenerator, that we can't use in sync calls. To overcome this limitation,generator_wrapperwas added that consumes the async generator under the hood and returns a listClient🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.