UNPKG

@promptbook/utils

Version:

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

47 lines (46 loc) 1.61 kB
import { string_javascript_name } from '../../_packages/types.index'; import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * USE TIME commitment definition * * The `USE TIME` commitment indicates that the agent should be able to determine the current date and time. * * Example usage in agent source: * * ```book * USE TIME * USE TIME Prefer the user's local timezone. * ``` * * @private [🪔] Maybe export the commitments through some package */ export declare class UseTimeCommitmentDefinition extends BaseCommitmentDefinition<'USE TIME'> { constructor(); get requiresContent(): boolean; /** * Short one-line description of USE TIME. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for USE TIME commitment. */ get documentation(): string; applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements; /** * Gets human-readable titles for tool functions provided by this commitment. */ getToolTitles(): Record<string_javascript_name, string>; /** * Gets the `get_current_time` tool function implementation. */ getToolFunctions(): Record<string_javascript_name, ToolFunction>; } /** * Note: [💞] Ignore a discrepancy between file name and entity name */