UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

48 lines (47 loc) 1.75 kB
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * TEMPLATE commitment definition * * Deprecated legacy commitment for response templates and output structure. * New books should prefer `WRITING SAMPLE` and `WRITING RULES`. * * Legacy example usage in agent source: * * ```book * TEMPLATE Always structure your response with: 1) Summary, 2) Details, 3) Next steps * TEMPLATE Use the following format: **Question:** [user question] | **Answer:** [your answer] * ``` * * When used without content, it enables template mode which instructs the agent * to follow any template patterns defined in other commitments or context. * * @private [🪔] Maybe export the commitments through some package */ export declare class TemplateCommitmentDefinition extends BaseCommitmentDefinition<'TEMPLATE' | 'TEMPLATES'> { constructor(type?: 'TEMPLATE' | 'TEMPLATES'); /** * Short one-line description of TEMPLATE. */ get description(): string; /** * Optional UI/docs-only deprecation metadata. */ get deprecation(): { readonly message: "Use `WRITING SAMPLE` and `WRITING RULES` instead."; readonly replacedBy: readonly ["WRITING SAMPLE", "WRITING RULES"]; }; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for TEMPLATE commitment. */ get documentation(): string; /** * TEMPLATE can be used with or without content. */ get requiresContent(): boolean; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; }