// Planu — Agent Spec Generator: Schema Formatter
// SPEC-016a: Formats agent knowledge base schema as markdown.
/**
 * Format agent schema as markdown for design_schema.
 */
export function formatAgentSchemaAsMarkdown(schema, title) {
    const lines = [
        `## Agent Data Schema: ${title}`,
        '',
        '> Knowledge base structure, conversation state, and memory persistence.',
        '',
        '```json',
        JSON.stringify(schema, null, 2),
        '```',
        '',
        '### Schema Notes',
        '',
        '- `conversationState` — persisted per session; TTL configurable',
        '- `memoryPersistence` — user-level memory across sessions',
    ];
    if ('knowledgeBase' in schema) {
        lines.push('- `knowledgeBase` — vector store entries; use cosine similarity for retrieval');
    }
    return lines.join('\n');
}
//# sourceMappingURL=schema-formatter.js.map