UNPKG

@promptbook/vercel

Version:

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

33 lines (32 loc) 1.2 kB
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * ACTION commitment definition * * The ACTION commitment defines specific actions or capabilities that the agent can perform. * This helps define what the agent is capable of doing and how it should approach tasks. * * Example usage in agent source: * * ```book * ACTION Can generate code snippets and explain programming concepts * ACTION Able to analyze data and provide insights * ``` * * @private [🪔] Maybe export the commitments through some package */ export declare class ActionCommitmentDefinition extends BaseCommitmentDefinition<'ACTION' | 'ACTIONS'> { constructor(type?: 'ACTION' | 'ACTIONS'); /** * Short one-line description of ACTION. */ get description(): string; /** * Markdown documentation for ACTION commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; } /** * Note: [💞] Ignore a discrepancy between file name and entity name */