Skip to content

Commit

Permalink
Fix: improved CLI functionality
Browse files Browse the repository at this point in the history
- Added logging and error handling to the NEAR Swarm CLI.
- Introduced dynamic strategy import functionality in the CLI.
- Enhanced the .gitignore to exclude log files.
- Updated pyproject.toml to include new configurations for type checking and LLM integration.
- Refined README.md to clarify agent capabilities and external connections.
- Improved market data management with new API integrations and caching mechanisms.
- Removed outdated example strategies and test files to streamline the project.
- Updated requirements.txt to reflect new dependencies and versions.
  • Loading branch information
jbarnes850 committed Dec 13, 2024
1 parent 5a4049e commit 06a3259
Show file tree
Hide file tree
Showing 31 changed files with 1,619 additions and 2,398 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ eggs/
.eggs/
lib/
lib64/
logs/
parts/
sdist/
var/
Expand Down
79 changes: 48 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,52 +55,69 @@ graph TB
Core[Agent Core]
style Core fill:black,stroke:#00C1DE,stroke-width:3px,color:white
%% Integration Layer
NEAR_Int[NEAR Integration]
LLM_Int[LLM Integration]
Mem[Memory Manager]
style NEAR_Int fill:black,stroke:#00C1DE,stroke-width:2px,color:white
style LLM_Int fill:black,stroke:#00C1DE,stroke-width:2px,color:white
style Mem fill:black,stroke:#00C1DE,stroke-width:2px,color:white
%% External Services
NEAR[NEAR Protocol]
LLM[Hyperbolic AI]
Storage[State Storage]
style NEAR fill:#00C1DE,stroke:black,stroke-width:2px,color:black
%% Agent Capabilities
OnChain[Onchain Actions]
AI[AI Reasoning]
Memory[Agent Memory]
style OnChain fill:black,stroke:#00C1DE,stroke-width:2px,color:white
style AI fill:black,stroke:#00C1DE,stroke-width:2px,color:white
style Memory fill:black,stroke:#00C1DE,stroke-width:2px,color:white
%% External Systems
Blockchain[NEAR Protocol]
LLM[Language Models]
Storage[Persistent State]
style Blockchain fill:#00C1DE,stroke:black,stroke-width:2px,color:black
style LLM fill:#00C1DE,stroke:black,stroke-width:2px,color:black
style Storage fill:#00C1DE,stroke:black,stroke-width:2px,color:black
%% Swarm Agents
%% Swarm Intelligence Layer
subgraph Swarm[AI Swarm]
direction TB
Agent1[Market Analyzer]
Agent2[Risk Manager]
Agent3[Strategy Optimizer]
Analyzer[Market Analyzer<br/>Identifies Opportunities]
Risk[Risk Manager<br/>Validates Safety]
Strategy[Strategy Optimizer<br/>Improves Performance]
style Agent1 fill:black,stroke:#00C1DE,stroke-width:2px,color:white
style Agent2 fill:black,stroke:#00C1DE,stroke-width:2px,color:white
style Agent3 fill:black,stroke:#00C1DE,stroke-width:2px,color:white
style Analyzer fill:black,stroke:#00C1DE,stroke-width:2px,color:white
style Risk fill:black,stroke:#00C1DE,stroke-width:2px,color:white
style Strategy fill:black,stroke:#00C1DE,stroke-width:2px,color:white
end
style Swarm fill:none,stroke:#00C1DE,stroke-width:3px,color:white
%% Connections
Core --> NEAR_Int
Core --> LLM_Int
Core --> Mem
%% Consensus Layer
subgraph Consensus[Consensus System]
direction TB
Voting[Voting Mechanism]
Confidence[Confidence Scoring]
style Voting fill:black,stroke:#00C1DE,stroke-width:2px,color:white
style Confidence fill:black,stroke:#00C1DE,stroke-width:2px,color:white
end
style Consensus fill:none,stroke:#00C1DE,stroke-width:3px,color:white
%% Core Connections
Core --> OnChain
Core --> AI
Core --> Memory
Core --> Swarm
NEAR_Int <--> NEAR
LLM_Int <--> LLM
Mem <--> Storage
Core --> Consensus
%% External Connections
OnChain <--> Blockchain
AI <--> LLM
Memory <--> Storage
%% Swarm Connections
Agent1 <--> Agent2
Agent2 <--> Agent3
Agent3 <--> Agent1
Analyzer <--> Risk
Risk <--> Strategy
Strategy <--> Analyzer
%% Consensus Connections
Swarm <--> Consensus
%% Labels
classDef label fill:none,stroke:none,color:white
class Core,NEAR_Int,LLM_Int,Mem,NEAR,LLM,Storage,Agent1,Agent2,Agent3 label
class Core,OnChain,AI,Memory,Blockchain,LLM,Storage,Analyzer,Risk,Strategy,Voting,Confidence label
%% Title
classDef title fill:none,stroke:none,color:#00C1DE,font-size:18px
Expand Down
7 changes: 7 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Development dependencies
pylint>=2.8.0
black>=21.5b2
isort>=5.9.0
mypy>=0.910
pyright>=0.0.13
types-aiohttp>=3.8.0
Loading

0 comments on commit 06a3259

Please sign in to comment.