Skip to content

Commit 9696c5d

Browse files
committed
send agent messages to reviewer
1 parent dbeb884 commit 9696c5d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

backend/src/tools/handlers/spawn-agents.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,15 @@ export const handleSpawnAgents = ((params: {
7575
)
7676
}
7777

78-
const conversationHistoryMessage: CoreMessage = {
79-
role: 'user',
80-
content: `For context, the following is the conversation history between the user and an assistant:\n\n${JSON.stringify(
81-
mutableState.messages,
82-
null,
83-
2
84-
)}`,
85-
}
86-
8778
const triggerSpawnAgents = async () => {
79+
const conversationHistoryMessage: CoreMessage = {
80+
role: 'user',
81+
content: `For context, the following is the conversation history between the user and an assistant:\n\n${JSON.stringify(
82+
mutableState.messages,
83+
null,
84+
2
85+
)}`,
86+
}
8887
// Initialize registry and get all templates
8988
await agentRegistry.initialize(fileContext)
9089
const allTemplates = agentRegistry.getAllTemplates()

0 commit comments

Comments
 (0)