Expand description
System prompt generation with modular architecture
This module provides flexible system prompt generation with template-based composition and context-aware customization.
Re-exports§
pub use cache_aware::sort_tool_definitions;pub use context::PromptContext;pub use few_shot::DEFAULT_FEW_SHOT_BUDGET_TOKENS;pub use few_shot::FEW_SHOT_SECTION_HEADER;pub use few_shot::FewShotExample;pub use few_shot::FewShotStore;pub use few_shot::render_few_shot_section;pub use guidelines::append_deferred_tools_prompt_section;pub use guidelines::append_runtime_tool_prompt_sections_for_model;pub use guidelines::append_runtime_tool_prompt_sections_for_profile;pub use harness_limits::upsert_harness_limits_section;pub use resources::PromptTemplate;pub use resources::apply_system_prompt_layers;pub use resources::discover_prompt_templates;pub use resources::expand_prompt_template;pub use resources::find_prompt_template;pub use resources::resolve_system_prompt_layers;pub use runtime_contract::RuntimePromptContract;pub use runtime_contract::append_runtime_mode_sections;pub use static_prompts::agent_identity_label;pub use static_prompts::default_lightweight_prompt;pub use static_prompts::default_system_prompt;pub use static_prompts::minimal_instruction_text;pub use static_prompts::specialized_instruction_text;pub use static_prompts::specialized_system_prompt;pub use system::SystemPromptReport;pub use system::apply_coordinator_role_guidance;pub use system::apply_output_style;pub use system::generate_lightweight_instruction;pub use system::generate_specialized_instruction;pub use system::generate_system_instruction_with_context_and_report;pub use system::measure_system_prompt_size;pub use system_prompt_cache::PROMPT_CACHE;pub use system_prompt_cache::SystemPromptCache;pub use temporal::generate_temporal_date_context;
Modules§
- cache_
aware - context
- few_
shot - Minimal few-shot example infrastructure.
- guidelines
- harness_
limits - output_
styles - render
- Prompt environment and interaction rendering helpers.
- resources
- Shared prompt resource discovery for system prompt layers and prompt templates.
- runtime_
contract - sections
- static_
prompts - Static prompt text, constants, and cached static prompt builders.
- system
- System instructions and prompt management.
- system_
prompt_ cache - temporal