learning-sdk-integration
Integration patterns and best practices for adding persistent memory to LLM agents using the Letta Learning SDK
npx skills add majiayu000/claude-skill-registry --skill learning-sdk-letta-ai-skills-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Learning SDK Integration ## Overview This skill provides universal patterns for adding persistent memory to LLM agents using the Learning SDK through a 3-line integration pattern that works with OpenAI, Anthropic, Gemini, and other LLM providers. ## When to Use Use this skill when: - Building LLM agents that need memory across sessions - Implementing conversation history persistence - Adding context-aware capabilities to existing agents - Creating multi-agent systems with shared memory - Working with any LLM provider (OpenAI, Anthropic, Gemini, etc.) ## Core Integration Pattern ### Basic 3-Line Integration ```python from agentic_learning import learning # Wrap LLM SDK calls to enable memory with learning(agent="my-agent"): response = openai.chat.completions.create(...) ``` ### Async Integration ```python from agentic_learning import learning_async # For async LLM SDK usage async with learning_async(agent="my-agent"): response = await claude.messages.create(...) ``` ## Provider-Specific Examples ### OpenAI Integration ```python from openai import OpenAI from agentic_learning import learning_async class MemoryEnhancedOpenAIAgent: def __init__(self, api_key: str, agent_name: str): s
- Overview
- When to Use
- Core Integration Pattern
- Basic 3-Line Integration
- Async Integration
- Provider-Specific Examples
- OpenAI Integration
- Claude Integration
- Gemini Integration
- PydanticAI Integration
- Advanced Patterns
- Memory-Only Mode (Capture Without Injection)
- Custom Memory Blocks
- Multi-Agent Memory Sharing
What does the learning-sdk-integration skill do?
Integration patterns and best practices for adding persistent memory to LLM agents using the Letta Learning SDK
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill learning-sdk-letta-ai-skills-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
