Files
oh-my-opencode/src/agents/athena/model-parser.ts
T
ismeth 6153e37242 feat(02-01): add athena council execution primitives
- Add council execution result and member response types for orchestration
- Implement provider/model parser for BackgroundManager-compatible model input
- Add shared council prompt builder and export new athena modules
2026-04-15 15:40:05 +09:00

24 lines
442 B
TypeScript

export interface ParsedModel {
providerID: string
modelID: string
}
export function parseModelString(model: string): ParsedModel | null {
if (!model) {
return null
}
const slashIndex = model.indexOf("/")
if (slashIndex <= 0) {
return null
}
const providerID = model.substring(0, slashIndex)
const modelID = model.substring(slashIndex + 1)
if (!modelID) {
return null
}
return { providerID, modelID }
}