Skip to content

Commit 211a434

Browse files
committed
Update the twitter summary
1 parent b209606 commit 211a434

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ coverage
6767
.eslintcache
6868

6969
agent/content
70+
agent/xuserlabels.json
71+
packages/plugin-data-enrich/data
7072

7173
eliza.manifest
7274
eliza.manifest.sgx

packages/plugin-data-enrich/src/social.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ export const socialProvider: Provider = {
8989
}
9090

9191
const ABSTRACTOR_INSTRUCTION = `
92-
Please summary the user information by the provided biography and post tweets.
92+
Please summary the twitter account information by the provided biography and post tweets.
9393
The total words count should be between 20 and 30.
94-
If the user is not related to web3 or crypto, just return "The user is not related to Web3".`;
94+
The summary result should not contain the words 'user'/'account', use their original names instead.
95+
If the account is not related to web3 or crypto, just return "The item is not related to Web3".`;
9596

9697
const TW_ABSTRACTOR_PREFIX: string = "ABSTRACTOR_KEY_TW_PROFILE_PREFIX_";
9798
const TW_ABSTRACTOR_POST_COUNT = 20;
@@ -159,7 +160,7 @@ export class twitterDataProvider {
159160
});
160161
//console.log(response);
161162
summary = response;
162-
if (response && response.includes("The user is not related to Web3")) {
163+
if (response && response.includes("The item is not related to Web3")) {
163164
summary = "";
164165
}
165166
} catch (error) {

0 commit comments

Comments
 (0)