@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
26 lines (25 loc) • 891 B
TypeScript
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;
}