UNPKG

@promptbook/utils

Version:

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

35 lines (34 loc) 1.11 kB
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * IMPORT commitment definition * * The IMPORT commitment tells the agent to import content from another agent at the current location. * * Example usage in agent source: * * ```book * IMPORT https://s6.ptbk.io/benjamin-white * ``` * * @private [🪔] Maybe export the commitments through some package */ export declare class ImportCommitmentDefinition extends BaseCommitmentDefinition<'IMPORT' | 'IMPORTS'> { constructor(type?: 'IMPORT' | 'IMPORTS'); /** * Short one-line description of IMPORT. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for IMPORT commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; } /** * Note: [💞] Ignore a discrepancy between file name and entity name */