Class: SolidAgent::AgentManifest::Exporters::DotpromptExporter
- Inherits:
-
BaseExporter
- Object
- BaseExporter
- SolidAgent::AgentManifest::Exporters::DotpromptExporter
- Defined in:
- lib/solid_agent/agent_manifest/exporters/dotprompt_exporter.rb
Overview
DotpromptExporter converts Manifests to Google Genkit's .prompt format.
Class Method Summary collapse
-
.export(manifest, use_picoschema: true) ⇒ String
Export manifest to .prompt format.
- .format_name ⇒ Object
Class Method Details
.export(manifest, use_picoschema: true) ⇒ String
Export manifest to .prompt format
24 25 26 27 28 29 |
# File 'lib/solid_agent/agent_manifest/exporters/dotprompt_exporter.rb', line 24 def export(manifest, use_picoschema: true, **) frontmatter = build_dotprompt_frontmatter(manifest, use_picoschema) body = manifest.template || manifest.instructions || "" "#{frontmatter}\n#{body.strip}\n" end |
.format_name ⇒ Object
15 16 17 |
# File 'lib/solid_agent/agent_manifest/exporters/dotprompt_exporter.rb', line 15 def format_name :dotprompt end |