Skip to main content

Module chatbot_conversation_messages_citations

Module chatbot_conversation_messages_citations 

Source

Structs§

ChatbotConversationMessageCitation

Functions§

attach_turn_citations_to_message
Points the citations of the conversation’s newest turn at conversation_message_id, the message whose text cites them.
get_by_conversation_id
get_by_message_id
insert
insert_batch
Insert a batch of citation from the same conversation
max_citation_number_in_turn
The highest citation number already used by a tool call in the turn still in progress, or None if the turn has cited nothing yet. A new search tool numbers its own hits starting after this rather than from zero, since a whole turn’s citations end up on one message (see attach_turn_citations_to_message) and would otherwise collide with an earlier search’s numbers. Scoped identically to that function’s own subquery.