UNPKG

@mastra/core

Version:
21 lines • 1.01 kB
import type { AgentBackgroundConfig, ToolBackgroundConfig } from './types.js'; /** * Tool shape accepted by the prompt generator. Callers may pass raw `Tool`s * (config on `background`) or converted `CoreTool`s (config on * `backgroundConfig`); both are honored. */ export interface BackgroundPromptTool { background?: ToolBackgroundConfig; backgroundConfig?: ToolBackgroundConfig; description?: string; } /** * Generates the system prompt section that tells the LLM about background task capabilities. * * Only tools that `resolveBackgroundConfig` could actually dispatch to the * background are listed (agent-level opt-in, falling back to tool-level * config — see `isToolBackgroundEligible`). Returns undefined if no tools are * background-eligible (nothing to inject). */ export declare function generateBackgroundTaskSystemPrompt(tools: Record<string, BackgroundPromptTool>, agentConfig?: AgentBackgroundConfig): string | undefined; //# sourceMappingURL=system-prompt.d.ts.map