Rename potentially_relevant_details to environment_details

This commit is contained in:
Saoud Rizwan
2024-09-13 18:22:47 -04:00
parent 9f480c6a3e
commit 9f8c68abd8
2 changed files with 12 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ export function truncateHalfConversation(
): Anthropic.Messages.MessageParam[] {
// API expects messages to be in user-assistant order, and tool use messages must be followed by tool results. We need to maintain this structure while truncating.
// Always keep the first Task message (this includes the project's file structure in potentially_relevant_details)
// Always keep the first Task message (this includes the project's file structure in environment_details)
const truncatedMessages = [messages[0]]
// Remove half of user-assistant pairs