6153e37242
- 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
24 lines
442 B
TypeScript
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 }
|
|
}
|