UNPKG

@promptbook/google

Version:

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

40 lines (39 loc) 1.53 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 USER LOCATION commitment definition. * * The `USE USER LOCATION` commitment enables an agent to retrieve user location from runtime context. * * @private [🪔] Maybe export the commitments through some package */ export declare class UseUserLocationCommitmentDefinition extends BaseCommitmentDefinition<'USE USER LOCATION'> { constructor(); get requiresContent(): boolean; /** * Short one-line description of USE USER LOCATION. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for USE USER LOCATION 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_user_location` tool function implementation. */ getToolFunctions(): Record<string_javascript_name, ToolFunction>; } /** * Note: [💞] Ignore a discrepancy between file name and entity name */