Skip to content

Commit 35806c7

Browse files
committed
Improve prompt
1 parent afdbbfe commit 35806c7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/plugin-abstract/src/actions/transferAction.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,16 @@ Example response:
6969
}
7070
\`\`\`
7171
72-
{{recentMessages}}
72+
User message:
73+
"{{currentMessage}}"
7374
74-
Given the recent messages, extract the following information about the requested token transfer:
75+
Given the message, extract the following information about the requested token transfer:
7576
- Token contract address
7677
- Recipient wallet address
7778
- Amount to transfer
7879
- Whether to use Abstract Global Wallet aka AGW
7980
80-
If the user does not specify "global wallet" or "AGW" in their message, set useAGW to false.
81+
If the user did not specify "global wallet", "AGW", "agw", or "abstract global wallet" in their message, set useAGW to false, otherwise set it to true.
8182
8283
Respond with a JSON markdown block containing only the extracted values.`;
8384

@@ -114,6 +115,7 @@ export const transferAction: Action = {
114115
}
115116

116117
// Compose transfer context
118+
state.currentMessage = `${state.recentMessagesData[1].content.text}`;
117119
const transferContext = composeContext({
118120
state,
119121
template: transferTemplate,

0 commit comments

Comments
 (0)