Skip to main content

Module extract

Module extract 

Source

Structs§

UploadMetadata
Metadata extracted from a session for DB storage at upload time.

Functions§

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.