Files
oh-my-opencode/src/tools/athena-council/council-launcher.ts
T

19 lines
624 B
TypeScript
Raw Normal View History

import type { CouncilLauncher, CouncilLaunchInput } from "../../agents/athena/council-orchestrator"
import type { BackgroundManager } from "../../features/background-agent"
export function createCouncilLauncher(manager: BackgroundManager): CouncilLauncher {
return {
launch(input: CouncilLaunchInput) {
return manager.launch({
description: input.description,
prompt: input.prompt,
agent: input.agent,
parentSessionID: input.parentSessionID,
parentMessageID: input.parentMessageID,
parentAgent: input.parentAgent,
model: input.model,
})
},
}
}