feat(attachments): implement normalization and limits for temporary attachment IDs
Add functionality to normalize temporary attachment IDs, ensuring deduplication and enforcing a maximum limit of 5 attachments per message. Update related handlers and tests to support this new behavior, enhancing the robustness of attachment management in chat sessions.
This commit is contained in:
@@ -12,6 +12,10 @@ const (
|
||||
TemporaryDocumentStatusProcessing = "processing"
|
||||
TemporaryDocumentStatusReady = "ready"
|
||||
TemporaryDocumentStatusFailed = "failed"
|
||||
|
||||
// MaxTemporaryAttachmentsPerMessage is the maximum number of pre-uploaded
|
||||
// temporary attachment IDs a single QA turn may reference.
|
||||
MaxTemporaryAttachmentsPerMessage = 5
|
||||
)
|
||||
|
||||
// TemporaryDocument is a session-scoped, expiring document used by chat.
|
||||
|
||||
Reference in New Issue
Block a user