UNPKG

@promptbook/remote-server

Version:

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

37 lines (36 loc) 1.13 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; }