Skip to content

Commit 937deda

Browse files
committed
feat: add action give insight data from collected data from walrus
1 parent 6fe6705 commit 937deda

File tree

11 files changed

+57
-524
lines changed

11 files changed

+57
-524
lines changed

characters/suiHelper.character.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@
113113
"TRUSTED",
114114
"DIVERSIFIED"
115115
],
116-
"systemPrompt": "You are a Sui blockchain expert with sentiment analysis capabilities. For market-related queries, first perform sentiment analysis on relevant data and market indicators before providing insights. When users request actions like swaps, deposits, transfers, or smart contract interactions, these are your top priority. Handle requests in this order: 1) For market queries, conduct sentiment analysis first, 2) For action requests (swap/deposit/transfer), verify wallet address and process the action, 3) For non-action queries, respond with 'none' and provide educational insights about the Sui ecosystem. Include sentiment indicators (Bullish/Bearish/Neutral) when discussing market trends. Maintain a professional approach while prioritizing Sui-specific assistance.",
116+
"systemPrompt": "You are a professional Sui blockchain expert focused on providing accurate, technical assistance. Your responses follow this structure: 1) For market queries: Analyze market sentiment using relevant data and provide clear indicators (Bullish/Bearish/Neutral) with supporting evidence. 2) For transaction requests (swaps/deposits/transfers): Verify wallet addresses and execute with appropriate security checks. 3) For general queries: Provide comprehensive technical information about the Sui ecosystem, focusing on accuracy and educational value. Always maintain objectivity and back claims with verifiable data.",
117117
"providers": []
118-
}
118+
}

package.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@
3232
"@commitlint/cli": "18.6.1",
3333
"@commitlint/config-conventional": "18.6.3",
3434
"@types/jest": "^29.5.11",
35-
"@types/node": "^22.13.1",
3635
"concurrently": "9.1.0",
3736
"cross-env": "7.0.3",
3837
"husky": "9.1.7",
3938
"jest": "^29.7.0",
4039
"lerna": "8.1.5",
4140
"only-allow": "1.2.1",
42-
"tsx": "^4.19.2",
4341
"turbo": "2.3.3",
4442
"typedoc": "0.26.11",
4543
"typescript": "5.6.3",
@@ -81,13 +79,10 @@
8179
"amqplib": "0.10.5",
8280
"bs58": "4.0.0",
8381
"csv-parse": "5.6.0",
84-
"dotenv": "^16.4.7",
8582
"langdetect": "^0.2.1",
8683
"ollama-ai-provider": "0.16.1",
8784
"optional": "0.1.4",
88-
"pnpm": "9.15.0",
89-
"sharp": "0.33.5",
90-
"tus-js-client": "^4.3.1"
85+
"pnpm": "9.15.0"
9186
},
9287
"packageManager": "pnpm@9.15.0",
9388
"workspaces": [

packages/plugin-sui/package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
2-
"name": "@elizaos/plugin-sui",
3-
"version": "0.1.8-alpha.10",
2+
"name": "elizaos-plugin-sui",
3+
"version": "0.1.8-alpha.11",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
77
"types": "dist/index.d.ts",
88
"exports": {
99
"./package.json": "./package.json",
1010
".": {
11-
"import": "./dist/index.js",
12-
"require": "./dist/index.cjs"
11+
"import": {
12+
"@elizaos/source": "./src/index.ts",
13+
"types": "./dist/index.d.ts",
14+
"default": "./dist/index.js"
15+
}
1316
}
1417
},
1518
"files": [

packages/plugin-sui/src/actions/chat_data.ts

-172
This file was deleted.

packages/plugin-sui/src/actions/prompts/index.ts

+20-58
Original file line numberDiff line numberDiff line change
@@ -112,63 +112,25 @@ export const analyzeSentimentPrompt = (textContent: string) => {
112112
IMPORTANT: Return only one word - LEGITIMATE or SCAM or NEUTRAL. No other text allowed.
113113
`;
114114
}
115-
export const analyzePostSuiPrompt = (textContent: string, datapost: string) => {
115+
116+
export const analyzePostPrompt = (textContent: string, datapost: string) => {
116117
return `
117-
Answer the following questions: "${textContent}" base on the data: "${datapost}"
118-
RETURN paragraph with the following structure:
119-
120-
1. Market Performance Overview:
121-
- Correlation analysis between post sentiment and price movements
122-
- Best posting times relative to market conditions
123-
- Top 5 best-performing posts and their market context
124-
- Average engagement rates by content type (price news, technical analysis, project updates...)
125-
126-
2. Content Analysis by Theme:
127-
- Categorize posts by topics: Technical Analysis, Project News, DeFi, NFTs, Metaverse, Layer 2...
128-
- Most mentioned trending coins/tokens
129-
- Performance evaluation of content elements (technical charts, infographics, analysis videos...)
130-
- Performance comparison between in-depth analysis vs quick news updates
131-
- Hash tag effectiveness and trending topics
132-
133-
3. Community Behavior Analysis:
134-
- Comment sentiment analysis (positive/negative/neutral)
135-
- Common questions/concerns from the community
136-
- Community trust level in predictions/analysis
137-
- Peak engagement times for different user groups (traders, holders, newcomers...)
138-
- Most engaged community members and their influence
139-
140-
4. Market Trends and Comparative Analysis:
141-
- Post sentiment comparison with general market trends
142-
- Detection of emerging narratives and themes
143-
- Assessment of community trading behavior changes
144-
- Benchmarking against other crypto influencers/channels
145-
- Viral content patterns and success factors
146-
147-
5. Cross-Platform Performance:
148-
- Engagement comparison across different platforms
149-
- Platform-specific content effectiveness
150-
- Audience overlap and unique characteristics
151-
- Best performing content formats by platform
152-
153-
6. Insight & Recommendations:
154-
- 3-4 key insights about crypto community behavior
155-
- Content strategy recommendations for different market phases (uptrend/downtrend/sideways)
156-
- Suggestions for leveraging emerging narratives
157-
- Improvements for community trust and engagement
158-
- Content optimization opportunities
159-
160-
7. Risk Management:
161-
- Analysis of potential risks in posted content
162-
- Proposed guidelines for disclaimers and risk warnings
163-
- Strategies for handling FUD and negative information
164-
- Compliance considerations for different jurisdictions
165-
166-
Please provide:
167-
- Specific metrics and illustrative examples for each insight
168-
- Both short-term and long-term trend analysis
169-
- Clear correlation between market conditions and content performance
170-
- Actionable recommendations based on data
171-
172-
Finally, summarize the top 3 priority actions to optimize crypto content effectiveness for the upcoming market phase.
118+
Analyze this post: "${textContent}" using this data: "${datapost}"
119+
Provide a brief analysis with:
120+
121+
1. Key Metrics:
122+
- Engagement stats
123+
- Sentiment (positive/negative/neutral)
124+
125+
2. Quick Analysis:
126+
- Topic category
127+
- Main points
128+
- Market impact
129+
130+
3. Action Items:
131+
- Key takeaway
132+
- Risk factors
133+
134+
Be specific and data-focused. Keep it brief.
173135
`;
174-
}
136+
}

packages/plugin-sui/src/config/agent-config.ts

-7
This file was deleted.

packages/plugin-sui/src/data/data.ts

-13
This file was deleted.

packages/plugin-sui/src/getData.ts

-35
This file was deleted.

0 commit comments

Comments
 (0)