UNPKG

@promptbook/remote-server

Version:

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

34 lines (33 loc) 1.14 kB
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * INTERNAL MESSAGE commitment definition * * The INTERNAL MESSAGE commitment stores model-internal trace records related to one interaction * (for example tool calls, raw request/response payloads, or reasoning metadata). * * Example usage in agent source: * * ```book * INTERNAL MESSAGE * {"kind":"TOOL_CALL","toolCall":{"name":"search"}} * ``` * * @private Internal commitment used by self-learning sampling. */ export declare class InternalMessageCommitmentDefinition extends BaseCommitmentDefinition<'INTERNAL MESSAGE'> { constructor(); /** * Short one-line description of INTERNAL MESSAGE. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for INTERNAL MESSAGE commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; }