/** * `workflow` — starts a persisted workflow run in a dedicated chat session. */ import type { AgentTool } from '@earendil-works/pi-agent-core'; import type { WorkflowCatalog } from '../workflow/catalog.js'; import type { StartWorkflowRunServiceParams, WorkflowRunServiceResult } from '../../workflows/service/workflow-run-service.types.js'; export type WorkflowToolInput = { name?: string; args?: unknown; goal?: string; intent?: string; taskRunId?: string; }; export interface WorkflowToolDeps { catalog: WorkflowCatalog; getCurrentSessionKey?: () => string | undefined; getConfig: () => import('../../config/schema.js').Config | undefined; startWorkflowRun?: (params: StartWorkflowRunServiceParams) => Promise; } export declare function createWorkflowTool(deps: WorkflowToolDeps): AgentTool;