File size: 232 Bytes
cd6f98e
 
 
 
 
 
1
2
3
4
5
6
7
export default interface AgentWork {
  run: () => Promise<void>;
  conclude: () => Promise<void>;
  next: () => AgentWork | undefined;
  onError: (e: unknown) => boolean; // Handles errors and returns whether to continue retrying
}