Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the agent system from topic-based sentiment analysis to asset-based sentiment tracking. The changes replace a string-based sentiment model with a numeric scoring system (1-100) and expand tool capabilities to include web scraping alongside Twitter search.
Key changes:
- Refactored data model from
TopicSummarytoAssetSummarywith numeric sentiment scoring (1-100 scale) - Added
WebSearchtool for scraping cryptocurrency market websites - Updated
TwitterSearchtool interface fromRun()toExecute()method and improved error handling - Introduced configurable query options pattern for flexible agent behavior
- Updated dependencies including cogito upgrade from v0.3.3 to v0.5.0
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| types/agent.go | Changed data model from TopicSummary to AssetSummary with numeric sentiment |
| agent/agent.go | Added QueryOptions pattern, switched from ContentReview to ExecuteTools, improved extraction error handling |
| agent/twitter.go | Renamed Run() to Execute(), added timeout error handling, updated default date range |
| agent/web.go | New file implementing WebSearch tool for website scraping |
| agent/errors.go | New utility for detecting timeout errors |
| agent/assets.go | New file defining default crypto assets list |
| agent/websites.go | New file defining default market data websites |
| agent/kols.go | New file defining Key Opinion Leaders list for Twitter monitoring |
| agent/agent_test.go | Updated test to verify asset sentiment analysis with new query pattern |
| go.mod | Updated cogito dependency and added local replace directive |
| go.sum | Updated dependency checksums for various packages |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
rapidfix
approved these changes
Nov 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.