类 MarkdownSkillParser.ParsedMarkdown
java.lang.Object
io.agentscope.core.skill.util.MarkdownSkillParser.ParsedMarkdown
- 封闭类:
MarkdownSkillParser
Result of parsing markdown with frontmatter.
Contains both the extracted metadata and the markdown content.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Get the markdown content (without frontmatter).Get the metadata extracted from YAML frontmatter.booleanCheck if frontmatter exists.toString()
-
构造器详细资料
-
ParsedMarkdown
Create a parsed markdown result.- 参数:
metadata- YAML metadata (never null, can be empty)content- Markdown content (never null, can be empty)
-
-
方法详细资料
-
getMetadata
Get the metadata extracted from YAML frontmatter.- 返回:
- Metadata map (never null, can be empty)
-
getContent
Get the markdown content (without frontmatter).- 返回:
- Markdown content (never null, can be empty)
-
hasFrontmatter
public boolean hasFrontmatter()Check if frontmatter exists.- 返回:
- true if metadata is not empty
-
toString
-