async fn authorize_requirements(
conn: &mut PgConnection,
user_context: &ChatbotTurnContext,
requirements: &[ToolRequirement],
) -> ChatbotResult<Option<AuthorizationToken>>Expand description
The token proving requirements all passed, or None when any of them did not.
A denial is not an error: the chatbot answers one by telling the model the call was aborted, not by failing the request. The error case is a check that could not be completed.
An empty slice passes without a query, for a tool the chatbot’s own access check already covers.