We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 161e173 commit bb173a3Copy full SHA for bb173a3
entrypoints/sidepanel/utils/agent/index.ts
@@ -257,8 +257,10 @@ export class Agent<T extends PromptBasedToolName> {
257
buildExtendedUserMessage(iteration: number, originalUserMessage: string, toolResults?: string) {
258
if (iteration === 1) return `${originalUserMessage}\n\n${AGENT_INITIAL_GUIDANCE.build()}`
259
const textBuilder = new TextBuilder(`${originalUserMessage}`)
260
- if (toolResults) textBuilder.insertContent(toolResults)
261
- textBuilder.insertContent(AGENT_TOOL_CALL_RESULT_GUIDANCE)
+ if (toolResults) {
+ textBuilder.insertContent(toolResults)
262
+ textBuilder.insertContent(AGENT_TOOL_CALL_RESULT_GUIDANCE)
263
+ }
264
return textBuilder.build()
265
}
266
0 commit comments