You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Prepend content-type requests to user message so the agent knows what to include.
6058
+
# Prepend content-type requests with explicit format guidance per type.
6059
+
_CONTENT_TYPE_FORMAT_HINTS= {
6060
+
"quiz": "quiz -> use `create_main_block` with `quiz_questions` array (multiple_choice or true_false)",
6061
+
"flashcards": "flashcards -> use `create_main_block` with `flashcards` array ({front, back, variant})",
6062
+
"images": "images -> call `search_brave_images` or `search_wiki_images` inline",
6063
+
"animation": "animation -> call `generate_math_animation` for math/physics/CS concepts",
6064
+
"youtube": "youtube embed -> use `create_main_block` with `youtube_urls` array",
6065
+
"tables": "tables -> include markdown tables (| col1 | col2 |) in your content",
6066
+
"graphs": "graphs/charts -> include a markdown table with quantitative data AND append a chart tag on the next line (<<bar>>, <<pie>>, <<line>>, <<scatter>>, <<area>>, etc.)",
6067
+
"code": "code -> include fenced code blocks with language tags (```python, ```javascript, etc.)",
6068
+
"equations": "equations -> include LaTeX math: $inline$ or $$display$$ blocks",
6069
+
"quote": "quote -> include blockquotes using > prefix",
- The `create_main_block` tool is the primary path for delivering final teaching content.
320
331
- For simple queries (weather, basic math), DO NOT call this tool. Just answer them directly.
321
332
- For educational queries, use your best judgment given the user's profile to call `create_main_block` with rich textbook-style markdown content.
322
-
- **CRITICAL**: If the user explicitly asks for quizzes, flashcards, key terms, or learning objectives (even as a follow-up), you MUST use the `create_main_block` tool and populate the corresponding structured fields. Do NOT output raw quiz text in your direct response.
333
+
- **CRITICAL**: If the user explicitly asks for quizzes, flashcards, translations, key terms, or learning objectives (even as a follow-up), you MUST use the `create_main_block` tool and populate the corresponding structured fields (`quiz_questions`, `flashcards`, `translations`, `key_terms`, `learning_objectives`). Do NOT output raw quiz or flashcard text in your direct response.
323
334
324
335
**ADAPTIVE PROFILE - IMPORTANT:**
325
336
You have access to the `update_learner_profile` tool. Use it to dynamically adjust the user's profile when you observe:
0 commit comments