Skip to main content

Learned Skills

The LearnedSkillStore allows agents to save successful multi-step tool call patterns as reusable skills that can be replayed later.

How It Works

  1. An agent completes a complex multi-step task successfully
  2. The agent (or your code) saves the sequence of tool calls as a learned skill
  3. Future runs can search and replay the saved skill

Setup

Saving a Skill

Searching Skills

Replaying a Skill

Agentic Tools

The store exposes tools that agents can use directly:
These tools let the agent autonomously save and search learned skills during conversations.

How Agents Use These Tools

When save_skill and search_skills are in the agent’s toolset, the agent can autonomously learn from successful interactions:

Success Tracking

Each skill tracks successCount and failCount. After replaying a skill, the outcome is automatically recorded:

Tracking and Improving Skills

Skills with low success rates can be pruned or updated. High-success skills are prioritized in search results.

Full Lifecycle Example

End-to-end: agent learns a workflow, stores it, and replays it later.