Function get_execution_steps_count

Source
pub async fn get_execution_steps_count<'a, E>(
    executor: E,
    company_id: i32,
    chat_id: i32,
) -> Result<i64>
where E: Executor<'a, Database = Postgres>,
Expand description

Get the number of messages from the Assistant role that are not is_internal_tool_output..

ยงErrors

Returns error if there was a problem while counting of messages.