fix(settings): support type-safe thinkingLevel and propagate to AgentHarness

This commit is contained in:
yiling
2026-06-22 09:58:35 +08:00
parent c20ef0e4b6
commit bea81a207a
9 changed files with 151 additions and 13 deletions
+4
View File
@@ -97,12 +97,16 @@ If you need to create files in the local filesystem (for example, a temporary fi
systemPrompt += `\n\nYour current model supports the following input types: ${modelConfig.input.join(', ')}.`
}
const agentConfig = agent.config as PrismaJson.AgentConfig | null | undefined
const thinkingLevel = agentConfig?.thinkingLevel || 'off'
const { session, harness } = await createAgentSession({
teamId: params.teamId,
agentId: params.agentId,
providerName,
modelId,
systemPrompt,
thinkingLevel,
teamSkills: teamSkills.map((s) => ({
id: s.id,
name: s.name,