📹 Demo TODO App with Z-ai
- Build your own coding agent that can scaffold and extend projects.
- Use a Django template as the base project.
- Learn how agents act as project bootstrappers.
- Explore multiple agent orchestration frameworks.
- Outcome: a Django app created and modified by your AI agent.
- Python 3.8+
- Jupyter Notebook
- OpenAI API key (required)
- Anthropic API key (optional)
- GitHub account (optional, for Codespaces)
- Run locally with Python + Jupyter, or in GitHub Codespaces.
- Configure API keys in environment variables or Codespaces secrets.
- Install required libraries:
pip install jupyter django uv openai toyaikit
- Review of responses API for system + user prompts.
- Function calling: extend model with custom Python functions.
- Prepares for agent tool integration.
- Use a prebuilt Django template repo or create one from scratch.
- Add
Makefilefor install/migrate/run commands. - Create templates (
base.html,home.html) with TailwindCSS + Font Awesome.
- Define tools: read/write files, execute shell commands, search files, view file tree.
- Create a developer prompt describing the Django project.
- Run agent using ToyAIKit.
- OpenAI Agents SDK — define tools with
@function_tool, run withOpenAIAgentsSDKRunner. - PydanticAI — lightweight agent library with tool support, easy provider switching.
- Z.ai — OpenAI-compatible API with alternative LLMs.
- Understand how coding agents function as intelligent project bootstrapper tools.
- Gain practical experience in setting up Django with AI assistance.
- Learn to integrate tools into agents across multiple frameworks.
- Build agents that can adapt to different LLM providers.