29 lines
701 B
TypeScript
29 lines
701 B
TypeScript
import type { AgentConfig } from "@opencode-ai/sdk"
|
|
|
|
export type AgentFactory = (model?: string) => AgentConfig
|
|
|
|
export function isGptModel(model: string): boolean {
|
|
return model.startsWith("openai/") || model.startsWith("github-copilot/gpt-")
|
|
}
|
|
|
|
export type BuiltinAgentName =
|
|
| "Sisyphus"
|
|
| "oracle"
|
|
| "librarian"
|
|
| "explore"
|
|
| "frontend-ui-ux-engineer"
|
|
| "document-writer"
|
|
| "multimodal-looker"
|
|
|
|
export type OverridableAgentName =
|
|
| "build"
|
|
| BuiltinAgentName
|
|
|
|
export type AgentName = BuiltinAgentName
|
|
|
|
export type AgentOverrideConfig = Partial<AgentConfig> & {
|
|
prompt_append?: string
|
|
}
|
|
|
|
export type AgentOverrides = Partial<Record<OverridableAgentName, AgentOverrideConfig>>
|