NAME
SignalWire::POM::Section - one section of a Prompt Object Model document
SYNOPSIS
use SignalWire::POM::Section;
my $section = SignalWire::POM::Section->new(
title => 'Greeting',
body => 'You are a helpful assistant.',
bullets => ['Be polite', 'Be concise'],
);
my $sub = $section->add_subsection(
title => 'Tone',
body => 'Speak warmly.',
);
print $section->render_markdown;
print $section->render_xml;
DESCRIPTION
SignalWire::POM::Section is a Perl port of signalwire.pom.pom.Section from the Python SignalWire SDK. Both implementations render byte-for-byte identical Markdown/XML/JSON output so prompts authored in either language can be consumed interchangeably.
SEE ALSO
SignalWire::POM::PromptObjectModel — the top-level container that holds a list of Sections.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 320:
Non-ASCII character seen before =encoding in '—'. Assuming UTF-8