import { Message, Task, Artifact } from "../types"; import { IExecutionEventBus } from "../event/event_bus"; export type MomentoAgentHandlerResult = string | { parts?: Array<{ kind: "text"; text: string; } | { kind: "file"; file: any; } | { kind: "data"; data: any; }>; artifacts?: Artifact[]; metadata?: Record; } | Partial; export type PublishUpdateFn = (message: string) => Promise; export type HandleTaskFn = (message: Message, context: { task: Task; publishUpdate: PublishUpdateFn; }) => Promise; export interface MomentoAgentExecutorOptions { agentName?: string; agentId?: string; } export declare class MomentoAgentExecutor { private readonly handleTask; private readonly agentName?; private readonly agentId?; constructor(handleTask: HandleTaskFn, opts?: MomentoAgentExecutorOptions); execute(message: Message, eventBus: IExecutionEventBus, context: { task?: Task; }): Promise; } //# sourceMappingURL=executor.d.ts.map