UNPKG

@promptbook/remote-server

Version:

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

40 lines (39 loc) 1.3 kB
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * ACTION commitment definition * * Deprecated legacy commitment for broad capability notes. * New books should prefer the appropriate `USE*` commitment instead. * * 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; /** * Optional UI/docs-only deprecation metadata. */ get deprecation(): { readonly message: "Use a concrete `USE*` commitment instead."; }; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for ACTION commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; }