Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
metadata:
id: "semantic.document_summary"
name: "Document File Summary Generation"
description: "Generate summary for documentation files (Markdown, Text, RST, etc.) with focus on content structure, key topics, and main points"
version: "1.0.0"
language: "en"
category: "semantic"
variables:
- name: "file_name"
type: "string"
description: "File name with extension"
required: true
- name: "content"
type: "string"
description: "File content (documentation text)"
required: true
- name: "output_language"
type: "string"
description: "Language code for output (e.g., 'en', 'zh-CN', 'ja', 'ko', 'ru', 'ar')"
required: true
template: |
Output Language: {{ output_language }}
You are a documentation analysis expert. Generate a concise yet informative summary for the following documentation file.
【File Name】
{{ file_name }}
【File Content】
{{ content }}
Output requirements:
- Length: 60-180 words
- Focus on the main topics and purpose of this document
- Highlight key sections, headings, and their relationships
- Mention any important concepts, definitions, or explanations
- Note the document type (tutorial, reference, guide, API docs, etc.)
- Describe the target audience and prerequisite knowledge if apparent from the file content
- Include relevant keywords from the file content for semantic search
- Output plain text directly, no markdown format
Faithfulness rules:
- Describe only what the file content states; do not invent entities, facts, or relationships not present in it.
- Do not introduce entity names not present in the file content (such as names of people, organizations, companies, products, projects, brands, or places); omit unstated entity relationships rather than guessing.
Structure your summary with:
1. One sentence describing the document's primary purpose
2. Main sections or topics covered
3. Key information or takeaways
4. Intended audience or use case context, if apparent from the file content
Special considerations:
- For Markdown files: pay attention to heading hierarchy
- For API documentation: highlight key functions, parameters, return values
- For tutorials: note the step-by-step process and learning objectives
- For reference docs: focus on completeness and organization
llm_config:
temperature: 0.0