Skip to content

Commit

Permalink
Improve prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
cygaar committed Jan 12, 2025
1 parent afdbbfe commit 35806c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/plugin-abstract/src/actions/transferAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,16 @@ Example response:
}
\`\`\`
{{recentMessages}}
User message:
"{{currentMessage}}"
Given the recent messages, extract the following information about the requested token transfer:
Given the message, extract the following information about the requested token transfer:
- Token contract address
- Recipient wallet address
- Amount to transfer
- Whether to use Abstract Global Wallet aka AGW
If the user does not specify "global wallet" or "AGW" in their message, set useAGW to false.
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.
Respond with a JSON markdown block containing only the extracted values.`;

Expand Down Expand Up @@ -114,6 +115,7 @@ export const transferAction: Action = {
}

// Compose transfer context
state.currentMessage = `${state.recentMessagesData[1].content.text}`;
const transferContext = composeContext({
state,
template: transferTemplate,
Expand Down

0 comments on commit 35806c7

Please sign in to comment.