codetether-agent 4.7.0-a-002.4

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
pub(crate) struct PromptSections<'a> {
    pub system_prompt: String,
    pub guardrails: String,
    pub capabilities: String,
    pub trapdoor: &'a str,
    pub memory_protocol: &'a str,
    pub workflow_templates: String,
    pub writeback: &'a str,
    pub core: String,
    pub prefetch: String,
    pub ids: String,
}

pub(crate) fn render(parts: PromptSections<'_>) -> String {
    format!(
        "{}\n\n{}\n\n{}\n\n{}\n\n{}\n\n{}\n\n{}\n\n{}\n\n{}{}",
        parts.system_prompt,
        parts.guardrails,
        parts.capabilities,
        parts.trapdoor,
        parts.memory_protocol,
        parts.workflow_templates,
        parts.writeback,
        parts.core,
        parts.prefetch,
        parts.ids
    )
}