pub(super) async fn store_output_item(
conn: &mut PgConnection,
item: OutputItem,
conversation_id: Uuid,
app_config: &ApplicationConfiguration,
) -> ChatbotResult<ChatbotConversationMessage>Expand description
Persists a round item that isn’t a text Message or FunctionCall: Reasoning and
AzureAiSearchCall insert as-is, a refusal Message inserts as-is, and an
AzureAiSearchCallOutput additionally resolves its cited documents (see
store_search_output_with_citations for why that half alone swallows its errors). Errors on
a text Message, FunctionCall or FunctionCallOutput — see storage_plan.