You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prompt:=fmt.Sprintf(`Analyze the following conversation and determine if the goal has been achieved.
184
+
prompt:=fmt.Sprintf(`Analyze the following conversation between two agents and determine if the stated goal has been achieved or is clearly being fulfilled.
145
185
146
186
Goal: %s
147
187
148
188
Conversation:
149
189
%s
150
190
151
-
Has the goal been achieved? Respond with only "YES" or "NO".`, goal, conversationSummary.String())
191
+
When evaluating, consider:
192
+
- Has the goal been explicitly completed (e.g., a clear confirmation message)?
193
+
- Has the goal been effectively achieved even without an explicit final confirmation? For example, if all required information has been gathered and the action is being processed, or both parties are acting as if the goal is accomplished, consider it achieved.
194
+
- Look at the overall intent and progression of the conversation, not just the last message.
195
+
196
+
Based on the full conversation context, has the goal been achieved or effectively fulfilled? Respond with only "YES" or "NO".`, goal, conversationSummary.String())
152
197
153
198
messages:= []ChatMessage{
154
-
{Role: "system", Content: "You are a helpful assistant that analyzes conversations and determines if goals have been achieved."},
199
+
{Role: "system", Content: "You are an expert evaluator that analyzes conversations between two agents and determines if a stated goal has been achieved or effectively fulfilled. Consider the overall intent, actions taken, and progression of the conversation. A goal can be considered achieved if the necessary actions have been completed or are clearly being executed, even without an explicit final confirmation message."},
0 commit comments