mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-18 03:45:12 +02:00
Fix/librarian broken (#674)
* Set end-of-stream cleanly - clean streaming message structures * Add tg-get-document-content
This commit is contained in:
parent
df1808768d
commit
3c3e11bef5
6 changed files with 99 additions and 15 deletions
|
|
@ -212,8 +212,10 @@ class LibrarianResponse:
|
|||
# list-uploads response
|
||||
upload_sessions: list[UploadSession] = field(default_factory=list)
|
||||
|
||||
# stream-document response - indicates final chunk in stream
|
||||
end_of_stream: bool = False
|
||||
# Protocol flag: True if this is the final response for a request.
|
||||
# Default True since most operations are single request/response.
|
||||
# Only stream-document sets False for intermediate chunks.
|
||||
is_final: bool = True
|
||||
|
||||
# FIXME: Is this right? Using persistence on librarian so that
|
||||
# message chunking works
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue