Skip to main content

Module section

Module section 

Source
Expand description

Section-based prompt composition

Each section can be:

  • Static: constant string, cacheable
  • Dynamic: computed at runtime, not cacheable

Predefined sections are available for common prompt components:

  • Red flags warning table
  • Skill priority rules
  • Tool usage guidelines

Structs§

PromptSection
A prompt section with name, content, and cacheability
SectionBuilder
Builder for creating prompt sections

Enums§

SectionContent
Section content type

Functions§

red_flags_section
Red flags warning section - prevents common AI reasoning errors
skill_priority_section
Skill priority rules section - defines skill invocation order
skill_rules_section
Skill invocation rules section - mandatory skill check before action
tool_guidelines_section
Tool usage guidelines section - how to use tools effectively