Skip to main content

resolve_course_scope

Function resolve_course_scope 

Source
pub fn resolve_course_scope(
    user_context: &ChatbotTurnContext,
    requested: Option<Uuid>,
) -> ChatbotResult<Uuid>
Expand description

Resolves which course a material tool acts on: the one the call names, or the chatbot’s own when it names none.

Says nothing about whether the caller may reach that course — the tool’s call_requirements authorize the resolved id, so a course the caller has no access to is refused there rather than here.