@promptbook/remote-client
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
36 lines (35 loc) • 1.3 kB
TypeScript
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
/**
* KNOWLEDGE commitment definition
*
* The KNOWLEDGE commitment adds specific knowledge, facts, or context to the agent
* using RAG (Retrieval-Augmented Generation) approach for external sources.
*
* Supports both direct text knowledge and external sources like PDFs.
*
* Example usage in agent source:
*
* ```book
* KNOWLEDGE The company was founded in 2020 and specializes in AI-powered solutions
* KNOWLEDGE https://example.com/company-handbook.pdf
* KNOWLEDGE https://example.com/product-documentation.pdf
* ```
*
* @private [🪔] Maybe export the commitments through some package
*/
export declare class KnowledgeCommitmentDefinition extends BaseCommitmentDefinition<'KNOWLEDGE'> {
constructor();
/**
* Short one-line description of KNOWLEDGE.
*/
get description(): string;
/**
* Markdown documentation for KNOWLEDGE commitment.
*/
get documentation(): string;
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
}
/**
* Note: [💞] Ignore a discrepancy between file name and entity name
*/