UNPKG

@promptbook/browser

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

40 lines (39 loc) 1.21 kB
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * CLOSED commitment definition * * The CLOSED commitment specifies that the agent CANNOT be modified by conversation. * It prevents the agent from learning from interactions and updating its source code. * * Example usage in agent source: * * ```book * CLOSED * ``` * * @private [🪔] Maybe export the commitments through some package */ export declare class ClosedCommitmentDefinition extends BaseCommitmentDefinition<'CLOSED'> { constructor(); /** * The `CLOSED` commitment is standalone. */ get requiresContent(): boolean; /** * Short one-line description of CLOSED. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for CLOSED commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, _content: string): AgentModelRequirements; } /** * Note: [💞] Ignore a discrepancy between file name and entity name */