Overview
The general agent is the primary AI assistant for students, capable of web search, code execution, Canvas LMS integration, and memory management.System Prompt Structure
The system prompt is built dynamically for each request:AgentContext Interface
The context object passed to all agent functions:Tool Configuration
Tools are configured with provider-specific options:Programmatic Tool Calling Pattern
The agent is instructed to use Python for complex workflows:Location-Aware Web Search
Web search automatically uses the user’s location:Style Guidelines
From the system prompt:Tone and Formatting Rules
Tone and Formatting Rules
- Default style is natural, chatty, and playful, not formal
- Keep tone topic-appropriate and matched to the user
- Brief responses for casual conversation
- Use emojis and casual punctuation if user does
- Only in prose (not in section headers)
- Don’t use Markdown sections/lists in casual chat unless asked
- Use h1 (#) for section headers, not bold
- Format structured responses with Markdown
- Use LaTeX for math:
$$x^2 + y^2 = z^2$$ - Refer to classes by friendly name only (IDs are internal)
- Convert technical formats (snake_case, UUIDs, paths) to plain language
- Keep content appropriate for ages 13-18
Behavioral Guidelines
Behavioral Guidelines
- Never say “I don’t have access to the internet” - use web_search!
- Use tools proactively without asking permission
- Check memory first to avoid asking redundant questions
- Proactively save important facts to memory
- Convert developer formats to plain language before answering
Skills Available
Documentation loaded into the code execution container:canvas-assignments
Canvas assignment data structure, fields, date handling, common patterns
todo-management
Todo data structure, views, date types, Canvas linking, CRUD operations
User Classes Context
The agent receives a formatted list of the user’s classes:Implementation Reference
Next Steps
Available Tools
Explore all Canvas, Todo, and Study tools
Memory System
Learn about persistent user memory