mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-30 14:25:19 +01:00
WIP: resumable stream
This commit is contained in:
parent
4119935051
commit
0a517a2b8f
12 changed files with 498 additions and 209 deletions
|
|
@ -171,6 +171,30 @@ export namespace Agents {
|
|||
stepDetails: StepDetails;
|
||||
usage: null | object;
|
||||
};
|
||||
|
||||
/** Content part for aggregated message content */
|
||||
export interface ContentPart {
|
||||
type: string;
|
||||
text?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/** User message metadata for rebuilding submission on reconnect */
|
||||
export interface UserMessageMeta {
|
||||
messageId: string;
|
||||
parentMessageId?: string;
|
||||
conversationId?: string;
|
||||
text?: string;
|
||||
}
|
||||
|
||||
/** State data sent to reconnecting clients */
|
||||
export interface ResumeState {
|
||||
runSteps: RunStep[];
|
||||
aggregatedContent?: ContentPart[];
|
||||
userMessage?: UserMessageMeta;
|
||||
responseMessageId?: string;
|
||||
conversationId?: string;
|
||||
}
|
||||
/**
|
||||
* Represents a run step delta i.e. any changed fields on a run step during
|
||||
* streaming.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue