UNPKG

@promptbook/remote-server

Version:

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

39 lines (38 loc) 1.51 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 SPAWN commitment definition. * * The `USE SPAWN` commitment enables creating new persistent child agents through one tool call. * * @private [🪔] Maybe export the commitments through some package */ export declare class UseSpawnCommitmentDefinition extends BaseCommitmentDefinition<'USE SPAWN'> { constructor(); get requiresContent(): boolean; /** * Short one-line description of USE SPAWN. */ get description(): string; /** * Icon for this commitment. */ get icon(): string; /** * Markdown documentation for USE SPAWN 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 browser-safe `spawn_agent` implementation. * * Node.js runtime overrides this through `getAllCommitmentsToolFunctionsForNode`. */ getToolFunctions(): Record<string_javascript_name, ToolFunction>; }