UNPKG

@promptbook/browser

Version:

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

29 lines (28 loc) 970 B
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * COMPONENT commitment definition * * The COMPONENT commitment defines a UI component that the agent can render in the chat. * * @private [🪔] Maybe export the commitments through some package */ export declare class ComponentCommitmentDefinition extends BaseCommitmentDefinition<'COMPONENT'> { constructor(); /** * Short one-line description of COMPONENT. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for COMPONENT commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; } /** * Note: [💞] Ignore a discrepancy between file name and entity name */