Skip to content

Commit 8386e83

Browse files
committed
fix: remove unnecessary comment in tool_result ID validation logic
1 parent a3e1da2 commit 8386e83

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/core/task/Task.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,6 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
861861
}
862862

863863
// Validate and fix tool_result IDs against the previous assistant message
864-
// Walk backwards to find the previous assistant message without creating intermediate arrays
865864
let previousAssistantMessage: Anthropic.MessageParam | undefined
866865
for (let i = this.apiConversationHistory.length - 1; i >= 0; i--) {
867866
if (this.apiConversationHistory[i].role === "assistant") {

0 commit comments

Comments
 (0)