chenbhao commited on
Commit
dfa548a
·
1 Parent(s): 6b1c6af

fix: FriendEmotionTool.call()

Browse files
Files changed (1) hide show
  1. src/tools/FriendEmotionTool.ts +6 -8
src/tools/FriendEmotionTool.ts CHANGED
@@ -99,14 +99,12 @@ export const FriendEmotionTool = buildTool({
99
  }
100
 
101
  return {
102
- content: [{
103
- type: 'text' as const,
104
- text: `Avatar emotion set to ${emotion}.${
105
- moodDelta !== undefined
106
- ? ` Your mood ${moodDelta > 0 ? '+' : ''}${moodDelta} → ${moodIndex}%`
107
- : ''
108
- }`,
109
- }],
110
  };
111
  },
112
  mapToolResultToToolResultBlockParam(output: Output, toolUseID: string) {
 
99
  }
100
 
101
  return {
102
+ data: {
103
+ ok: true,
104
+ emotion,
105
+ moodDelta,
106
+ moodIndex,
107
+ },
 
 
108
  };
109
  },
110
  mapToolResultToToolResultBlockParam(output: Output, toolUseID: string) {