UNPKG

@promptbook/remote-client

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

40 lines (39 loc) 1.57 kB
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements'; import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions'; import type { string_javascript_name } from '../../types/string_person_fullname'; import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition'; /** * USE CALENDAR commitment definition. * * `USE CALENDAR` enables calendar tooling so the agent can read and manage events * in one configured Google Calendar. * * Authentication is expected through runtime context provided by the host app UI. * Hosts can provide manual wallet tokens or host-managed OAuth tokens. * * @private [🪔] Maybe export the commitments through some package */ export declare class UseCalendarCommitmentDefinition extends BaseCommitmentDefinition<'USE CALENDAR'> { constructor(); /** * Short one-line description of USE CALENDAR. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for USE CALENDAR 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 calendar tool function implementations. */ getToolFunctions(): Record<string_javascript_name, ToolFunction>; }