load_fragments (library.py)

Mnemon · ai, fragment-library, pre-warmed-cache, curated-templates

Mnemon Pre-Warmed Fragment Library 100 curated execution fragments for common LLM agent task patterns. Ships with Mnemon — provides immediate EME value on day one. 100 fragments across 10 categories (grounded in real LangChain/LangGraph/CrewAI usage): - RAG & retrieval (15) - Rea

"""
Mnemon Pre-Warmed Fragment Library
100 curated execution fragments for common LLM agent task patterns.
Ships with Mnemon — provides immediate EME value on day one.

100 fragments across 10 categories (grounded in real LangChain/LangGraph/CrewAI usage):
- RAG & retrieval (15)
- Reasoning & planning (12)
- Multi-agent orchestration (10)
- Tool use & function calling (10)
- Memory & context management (10)
- Structured output & extraction (10)
- Error handling & resilience (8)
- Streaming & async (7)
- Human-in-the-loop (8)
- Optimization & efficiency (10)

Hand-curated from production usage patterns. EME semantic matching means
approximate matches still benefit from these — exact match not required.
"""

import hashlib
import json
import time
from typing import Any, List

from ..core.mod

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key