Skip to main contentModule extract
Source - UploadMetadata
- Metadata extracted from a session for DB storage at upload time.
- extract_first_user_text
- Extract the text from the first UserMessage event.
- extract_upload_metadata
- Extract upload metadata from a session, auto-generating title/description
from the first user messages when the session’s own metadata is empty.
- extract_user_texts
- Extract and join texts from the first
max UserMessage events. - truncate_str
- Truncate a string to
max_len characters, appending “…” if truncated.