UNPKG

@promptbook/browser

Version:

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

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