Skip to main content

answer_unfinished_tool_calls

Function answer_unfinished_tool_calls 

Source
pub(crate) async fn answer_unfinished_tool_calls(
    conn: &mut PgConnection,
    conversation_id: Uuid,
    response_ids: &[String],
) -> ChatbotResult<()>
Expand description

Repairs the tool calls that the turn this request is itself running left unanswered, whatever their age. response_ids names the responses that turn’s rounds were given, which is what keeps it off the calls of a turn streaming in another request. Use answer_stale_unfinished_tool_calls from a request that made none of them.