Continue runtime and scheduler cleanup
This commit is contained in:
29
src/message-runtime-types.ts
Normal file
29
src/message-runtime-types.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import type {
|
||||
AgentType,
|
||||
Channel,
|
||||
PairedRoomRole,
|
||||
RegisteredGroup,
|
||||
} from './types.js';
|
||||
|
||||
export type ExecuteTurnFn = (args: {
|
||||
group: RegisteredGroup;
|
||||
prompt: string;
|
||||
chatJid: string;
|
||||
runId: string;
|
||||
channel: Channel;
|
||||
startSeq: number | null;
|
||||
endSeq: number | null;
|
||||
deliveryRole?: PairedRoomRole;
|
||||
hasHumanMessage?: boolean;
|
||||
forcedRole?: PairedRoomRole;
|
||||
forcedAgentType?: AgentType;
|
||||
}) => Promise<{
|
||||
outputStatus: 'success' | 'error';
|
||||
deliverySucceeded: boolean;
|
||||
visiblePhase: unknown;
|
||||
}>;
|
||||
|
||||
export type RoleToChannelMap = Record<
|
||||
'owner' | 'reviewer' | 'arbiter',
|
||||
Channel | null
|
||||
>;
|
||||
Reference in New Issue
Block a user