Skip to main content

get_inner_messages

Function get_inner_messages 

Source
async fn get_inner_messages(
    conn: &mut PgConnection,
    message_ids: &[Uuid],
    reasoning_payload: ReasoningPayload,
) -> ModelResult<HashMap<Uuid, Message>>
Expand description

The inner message of each of message_ids, keyed by the id of the message carrying it.

One query per message kind instead of per message, so reading a conversation costs the same four round trips however many messages it has. A message with no inner message is absent from the map.