n8n
Version:
n8n Workflow Automation Tool
29 lines (28 loc) • 934 B
TypeScript
import type { AuthenticatedRequest } from '@n8n/db';
import { AgentExecutionService } from './agent-execution.service';
export declare class AgentThreadsController {
private readonly agentExecutionService;
constructor(agentExecutionService: AgentExecutionService);
listThreads(req: AuthenticatedRequest<{
projectId: string;
agentId: string;
}, {}, {}, {
cursor?: string;
limit?: string;
}>): Promise<{
threads: import("./agent-execution.service").ThreadListItem[];
nextCursor: string | null;
}>;
getThread(req: AuthenticatedRequest<{
projectId: string;
agentId: string;
threadId: string;
}>): Promise<import("./agent-execution.service").ThreadDetail>;
deleteThread(req: AuthenticatedRequest<{
projectId: string;
agentId: string;
threadId: string;
}>): Promise<{
success: boolean;
}>;
}