import type { PlatformClient } from "./client"; import type { Task } from "./types"; /** * API for managing tasks within workflows. * * @example * ```typescript * const client = new PlatformClient({ apiKey: 'your-key' }); * * // Create a task * const task = await client.tasks.create({ * workflowId: 123, * agentId: 456, * description: 'Process the data', * body: 'Additional details' * }); * * // Create a task with dependencies * const task2 = await client.tasks.create({ * workflowId: 123, * agentId: 456, * description: 'Follow-up task', * dependencies: [task.id] * }); * ``` */ export declare class TasksAPI { private client; constructor(client: PlatformClient); /** * Create a new task in a workflow. * @param params - Parameters object * @param params.workflowId - The workflow ID to create the task in * @param params.agentId - The agent ID to assign the task to * @param params.description - Short description of the task * @param params.body - Detailed task body (defaults to description) * @param params.input - Input data for the task * @param params.dependencies - Array of task IDs this task depends on * @returns The created task */ create(params: { workflowId: number | string; agentId: number | string; description: string; body?: string; input?: string; dependencies?: (number | string)[]; }): Promise; /** * Get a task by ID. * @param params - Parameters object * @param params.workflowId - The workflow ID * @param params.id - The task ID * @returns The task */ get(params: { workflowId: number | string; id: number | string; }): Promise; /** * List all tasks in a workflow. * @param params - Parameters object * @param params.workflowId - The workflow ID * @returns Array of tasks */ list(params: { workflowId: number | string; }): Promise; /** * Update an existing task. * @param params - Parameters object * @param params.workflowId - The workflow ID * @param params.id - The task ID to update * @param params.description - New description (optional) * @param params.body - New body (optional) * @param params.input - New input (optional) * @param params.status - New status (optional) * @param params.assigneeAgentId - New assignee agent ID (optional) * @param params.dependencies - New dependencies (optional) * @returns The updated task */ update(params: { workflowId: number | string; id: number | string; description?: string; body?: string; input?: string; status?: string; assigneeAgentId?: number; dependencies?: number[]; }): Promise; /** * Delete a task. * @param params - Parameters object * @param params.workflowId - The workflow ID * @param params.id - The task ID to delete */ delete(params: { workflowId: number | string; id: number | string; }): Promise; } //# sourceMappingURL=tasks-api.d.ts.map