スキル一覧に戻る
pluginagentmarketplace

agent-memory

by pluginagentmarketplace

AI Agents Plugin Development

1🍴 0📅 2026年1月5日
GitHubで見るManusで実行

SKILL.md


name: agent-memory description: Implement agent memory - short-term, long-term, semantic storage, and retrieval sasmp_version: "1.3.0" bonded_agent: 06-agent-memory bond_type: PRIMARY_BOND version: "2.0.0"

Agent Memory

Give agents the ability to remember and learn across conversations.

When to Use This Skill

Invoke this skill when:

  • Adding conversation history
  • Implementing long-term memory
  • Building personalized agents
  • Managing context windows

Parameter Schema

ParameterTypeRequiredDescriptionDefault
taskstringYesMemory goal-
memory_typeenumNobuffer, summary, vector, hybridhybrid
persistenceenumNosession, user, globalsession

Quick Start

from langchain.memory import ConversationBufferWindowMemory

# Simple buffer (last k messages)
memory = ConversationBufferWindowMemory(k=10)

# With summarization
from langchain.memory import ConversationSummaryBufferMemory
memory = ConversationSummaryBufferMemory(llm=llm, max_token_limit=2000)

# Vector store memory
from langchain.memory import VectorStoreRetrieverMemory
memory = VectorStoreRetrieverMemory(retriever=vectorstore.as_retriever())

Memory Types

TypeUse CaseProsCons
BufferShort chatsSimpleNo compression
SummaryLong chatsCompactLoses detail
VectorSemantic recallRelevantSlower
HybridProductionBest of allComplex

Multi-Layer Architecture

class ProductionMemory:
    def __init__(self):
        self.short_term = BufferMemory(k=10)    # Recent
        self.summary = SummaryMemory()           # Compressed
        self.long_term = VectorMemory()          # Semantic

Troubleshooting

IssueSolution
Context overflowAdd summarization
Slow retrievalCache, reduce k
Irrelevant recallImprove embeddings
Memory not persistingCheck storage backend

Best Practices

  • Use multi-layer memory for production
  • Set token limits to prevent overflow
  • Add metadata (timestamps, importance)
  • Implement TTL for old memories
  • rag-systems - Vector retrieval
  • llm-integration - Context management
  • ai-agent-basics - Agent architecture

References

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です