UNPKG

@promptbook/browser

Version:

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

33 lines (32 loc) 1.11 kB
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * AGENT MESSAGE commitment definition * * The AGENT MESSAGE commitment defines a message from the agent in the conversation history. * It is used to pre-fill the chat with a conversation history or to provide few-shot examples. * * Example usage in agent source: * * ```book * AGENT MESSAGE What seems to be the issue? * ``` * * @private [🪔] Maybe export the commitments through some package */ export declare class AgentMessageCommitmentDefinition extends BaseCommitmentDefinition<'AGENT MESSAGE'> { constructor(); /** * Short one-line description of AGENT MESSAGE. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for AGENT MESSAGE commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; }