UNPKG

@promptbook/remote-server

Version:

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

39 lines (38 loc) 1.71 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'; export { setTimeoutToolRuntimeAdapter } from './setTimeoutToolRuntimeAdapter'; export type { CancelTimeoutToolResult, ListTimeoutsToolResult, SetTimeoutToolResult, TimeoutToolListItem, TimeoutToolRuntimeAdapter, TimeoutToolRuntimeContext, UpdateTimeoutToolResult, } from './TimeoutToolRuntimeAdapter'; /** * `USE TIMEOUT` commitment definition. * * The `USE TIMEOUT` commitment enables timeout wake-ups and scoped timeout management. * * @private [🪔] Maybe export the commitments through some package */ export declare class UseTimeoutCommitmentDefinition extends BaseCommitmentDefinition<'USE TIMEOUT'> { constructor(); get requiresContent(): boolean; /** * Short one-line description of `USE TIMEOUT`. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for `USE TIMEOUT`. */ 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 `USE TIMEOUT` tool function implementations. */ getToolFunctions(): Record<string_javascript_name, ToolFunction>; }