Structs§
Enums§
- Reasoning
Effort Level - Tool
Category - A category of chatbot tools a configuration can choose to offer the LLM. Independent of the
chatbot crate’s per-tool
ToolPermissioncheck: a category answers “does this chatbot offer this kind of tool”, not “may this caller use it”. - Tool
Category Group - The UI/authorization grouping a
ToolCategorybelongs to. Derived from the leaf, never stored: the database and the wire format only ever carryToolCategoryvalues. - Verbosity
Level
Constants§
- MIN_
MAX_ 🔒OUTPUT_ TOKENS - Minimum
max_output_tokensallowed for a configuration. Too small a budget cannot produce a usable response — and with reasoning models the hidden reasoning tokens are spent from the same budget, so the floor needs to leave room for the actual answer either way.
Functions§
- azure_
search_ 🔒allowed - Whether the configuration may use Azure search, which needs a course: the search index it queries is built per course, so a configuration without one has nothing to search.
- delete
- edit
- get_
all_ chatbots - get_
by_ id - get_
enabled_ nondefault_ for_ course - get_
for_ azure_ search_ maintenance - get_
for_ course - insert
- normalized_
tool_ categories - Dedupes and sorts into
ToolCategory::ALLorder, so the stored array is canonical and two equal sets (e.g. compared by theedit_chatbotcontroller) compare equal regardless of the order the caller submitted them in. - remove_
default_ chatbot_ from_ course - set_
default_ chatbot_ for_ course - validate_
max_ 🔒output_ tokens - Rejects configurations whose
max_output_tokensis too small to produce a usable response.