Skip to main content

Module course_scope

Module course_scope 

Source
Expand description

Shared course resolution for tools that can act on a course other than the one the chatbot is on.

Constants§

COURSE_ID_ARGUMENT_DESCRIPTION
Shared schema description for the course_id argument of every course-material tool (course_structure, document_lookup) that accepts the lenient sentinel form.

Functions§

material_requirements
Material access to course_id, or nothing to check when the call names no course at all — such a call fails on its arguments, which is a clearer answer for the model than a denial.
resolve_course_scope
Resolves which course a material tool acts on: the one the call names, or the chatbot’s own when it names none.