Class: SolidAgent::AgentManifest::Parsers::GitHubPromptParser
- Inherits:
-
BaseParser
- Object
- BaseParser
- SolidAgent::AgentManifest::Parsers::GitHubPromptParser
- Defined in:
- lib/solid_agent/agent_manifest/parsers/github_prompt_parser.rb
Overview
GitHubPromptParser handles GitHub Copilot's .prompt.md format.
GitHub Copilot prompt files use Markdown with YAML frontmatter, supporting variables, tool references, and agent configuration.
Constant Summary
Constants inherited from BaseParser
Class Method Summary collapse
Methods inherited from BaseParser
Class Method Details
.format_name ⇒ Object
24 25 26 |
# File 'lib/solid_agent/agent_manifest/parsers/github_prompt_parser.rb', line 24 def format_name :github_prompt end |
.parse_string(content) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/solid_agent/agent_manifest/parsers/github_prompt_parser.rb', line 28 def parse_string(content) frontmatter, body = extract_frontmatter(content) Manifest.new( name: extract_name(frontmatter, body), description: frontmatter["description"], version: "1.0.0", # Model model: normalize_github_model(frontmatter["model"]), config: {}, # Tools are GitHub-specific references tools: parse_github_tools(frontmatter["tools"]), # Template with GitHub variable syntax instructions: body, template: body, # Preserve GitHub-specific config extensions: { github_prompt: extract_github_extensions(frontmatter) } ) end |