add ollama version and instruction for teenages#86
Open
ezcat207 wants to merge 4 commits intoshareAI-lab:mainfrom
Open
add ollama version and instruction for teenages#86ezcat207 wants to merge 4 commits intoshareAI-lab:mainfrom
ezcat207 wants to merge 4 commits intoshareAI-lab:mainfrom
Conversation
…llama with corresponding documentation and configuration.
…res with Ollama implementations, documentation, and LiteLLM configuration.
…llama support across agent systems.
…operations, and worktree task isolation, along with their documentation and LiteLLM configuration.
|
@ezcat207 is attempting to deploy a commit to the crazyboym's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title: feat: add Ollama support and simplified instructions for teenagers
Summary
This PR introduces two major updates to the learn-claude-code repository:
Ollama Integration: A parallel set of agent scripts (s01 through s12) that utilize Ollama via its OpenAI-compatible API. This allows users to run the entire agent evolution series using local models (e.g., qwen2.5-coder:7b).
Teenager-Focused Docs: A new documentation suite under docs/en-13year/ designed to explain complex agentic concepts (loops, tools, context management, and teams) to a younger audience (ages 13+).
Key Technical Changes
API Adaptation: Implemented agents/s*_ollama.py versions of all core sessions. These scripts replace the Anthropic SDK with the openai Python library to interface with Ollama’s local server.
Format Transformation: * Converted Anthropic’s input_schema tool definitions to OpenAI’s function.parameters format.
Adapted the agent loop to handle OpenAI-style tool_calls and finish_reason.
Updated message structures to support the role: "tool" requirement.
Environment Variables: Added OLLAMA_BASE_URL and OLLAMA_MODEL_ID to the .env configuration.
Simplified Concepts: Created 12 new markdown files that break down professional agent engineering into relatable analogies (e.g., describing context windows as "sticky notes" or subagents as "helpers with clean desks").
Step-by-Step Code Walkthroughs: The docs include simplified Python snippets specifically tailored to the local Ollama implementation.