Skip to content

Commit bb173a3

Browse files
committed
chore(agent): remove unused checkpoint messages and advanced model constants
1 parent 161e173 commit bb173a3

File tree

1 file changed

+4
-2
lines changed
  • entrypoints/sidepanel/utils/agent

1 file changed

+4
-2
lines changed

entrypoints/sidepanel/utils/agent/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,10 @@ export class Agent<T extends PromptBasedToolName> {
257257
buildExtendedUserMessage(iteration: number, originalUserMessage: string, toolResults?: string) {
258258
if (iteration === 1) return `${originalUserMessage}\n\n${AGENT_INITIAL_GUIDANCE.build()}`
259259
const textBuilder = new TextBuilder(`${originalUserMessage}`)
260-
if (toolResults) textBuilder.insertContent(toolResults)
261-
textBuilder.insertContent(AGENT_TOOL_CALL_RESULT_GUIDANCE)
260+
if (toolResults) {
261+
textBuilder.insertContent(toolResults)
262+
textBuilder.insertContent(AGENT_TOOL_CALL_RESULT_GUIDANCE)
263+
}
262264
return textBuilder.build()
263265
}
264266

0 commit comments

Comments
 (0)