Skip to main content

requirements_are_satisfied

Function requirements_are_satisfied 

Source
pub async fn requirements_are_satisfied(
    conn: &mut PgConnection,
    user_context: &ChatbotTurnContext,
    requirements: &[ToolRequirement],
) -> ChatbotResult<bool>
Expand description

Whether requirements all pass, for the callers that decide what to offer or whether to abort rather than gating a mutation.