@promptbook/remote-client
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
35 lines (34 loc) • 1.26 kB
TypeScript
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
/**
* MEMORY commitment definition
*
* The MEMORY commitment is similar to KNOWLEDGE but has a focus on remembering past
* interactions and user preferences. It helps the agent maintain context about the
* user's history, preferences, and previous conversations.
*
* Example usage in agent source:
*
* ```book
* MEMORY User prefers detailed technical explanations
* MEMORY Previously worked on React projects
* MEMORY Timezone: UTC-5 (Eastern Time)
* ```
*
* @private [🪔] Maybe export the commitments through some package
*/
export declare class MemoryCommitmentDefinition extends BaseCommitmentDefinition<'MEMORY' | 'MEMORIES'> {
constructor(type?: 'MEMORY' | 'MEMORIES');
/**
* Short one-line description of MEMORY.
*/
get description(): string;
/**
* Markdown documentation for MEMORY commitment.
*/
get documentation(): string;
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
}
/**
* Note: [💞] Ignore a discrepancy between file name and entity name
*/