Revert "feat(librarian): conditionally enable thinking based on model type"
This reverts commit f033b30549a396db90e148756130cddec1fcdb2b.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import type { AgentConfig } from "@opencode-ai/sdk"
|
||||
import type { AgentPromptMetadata } from "./types"
|
||||
import { isGeminiModel } from "./types"
|
||||
import { createAgentToolRestrictions } from "../shared/permission-compat"
|
||||
|
||||
export const LIBRARIAN_PROMPT_METADATA: AgentPromptMetadata = {
|
||||
@@ -29,7 +28,7 @@ export function createLibrarianAgent(model: string): AgentConfig {
|
||||
"call_omo_agent",
|
||||
])
|
||||
|
||||
const base = {
|
||||
return {
|
||||
description:
|
||||
"Specialized codebase understanding agent for multi-repository analysis, searching remote codebases, retrieving official documentation, and finding implementation examples using GitHub CLI, Context7, and Web Search. MUST BE USED when users ask to look up code in remote repositories, explain library internals, or find usage examples in open source.",
|
||||
mode: "subagent" as const,
|
||||
@@ -323,11 +322,5 @@ grep_app_searchGitHub(query: "useQuery")
|
||||
|
||||
`,
|
||||
}
|
||||
|
||||
if (isGeminiModel(model)) {
|
||||
return base
|
||||
}
|
||||
|
||||
return { ...base, thinking: { type: "enabled", budgetTokens: 32000 } }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user