Reasoning file

This commit is contained in:
Nate Kelley 2025-02-10 10:42:02 -07:00
parent 4f63276de2
commit c40bdfcb4c
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 21 additions and 1 deletions

View File

@ -42,7 +42,8 @@ export type BusterChatMessage_file = {
export type BusterChatMessageReasoning =
| BusterChatMessageReasoning_thought
| BusterChatMessageReasoning_text;
| BusterChatMessageReasoning_text
| BusterChatMessageReasoning_file;
export type BusterChatMessageReasoning_thoughtPill = {
text: string;
@ -70,3 +71,22 @@ export type BusterChatMessageReasoning_text = {
message: string;
message_chunk?: string;
};
export type BusterChatMessageReasoning_file = {
id: string;
type: FileType;
file_name: string;
version_number: number;
version_id: string;
status: 'loading' | 'completed' | 'failed';
file_chunk?: {
text: string;
line_number: number;
modified?: boolean; //defaults to true
}[];
file?: {
text: string;
line_number: number;
modified?: boolean; //defaults to true
}; //will be defined if the file has been completed OR on a page refresh
};