Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
LachsBagel committed Oct 8, 2024
1 parent ef2a4ad commit 1023dd0
Show file tree
Hide file tree
Showing 45 changed files with 39 additions and 35 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/mor-agents-build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ jobs:
# Pull necessary Docker images
echo -e "\${YELLOW}Pulling Docker images...${NC}"
sudo docker pull lachsbagel/moragents_dockers-nginx:amd64-0.1.1
sudo docker pull lachsbagel/moragents_dockers-agents:amd64-0.1.1
sudo docker pull lachsbagel/moragents_dockers-nginx:amd64-0.2.0
sudo docker pull lachsbagel/moragents_dockers-agents:amd64-0.2.0
# Start Docker containers
echo -e "\${YELLOW}Starting Docker containers...${NC}"
sudo docker run -d --name agents -p 8080:5000 --restart always -v /var/lib/agents -v /app/src lachsbagel/moragents_dockers-agents:amd64-0.1.1
sudo docker run -d --name nginx -p 3333:80 lachsbagel/moragents_dockers-nginx:amd64-0.1.1
sudo docker run -d --name agents -p 8080:5000 --restart always -v /var/lib/agents -v /app/src lachsbagel/moragents_dockers-agents:amd64-0.2.0
sudo docker run -d --name nginx -p 3333:80 lachsbagel/moragents_dockers-nginx:amd64-0.2.0
echo -e "\${GREEN}Setup complete!${NC}"
EOF
Expand Down
4 changes: 2 additions & 2 deletions build_assets/macOS/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Welcome to MORagents v0.1.1 Installer</title>
<title>Welcome to MORagents v0.2.0 Installer</title>
<style>
body {
font-family: Arial, sans-serif;
Expand All @@ -29,7 +29,7 @@
</style>
</head>
<body>
<h1>Welcome to MORagents v0.1.1 Installer</h1>
<h1>Welcome to MORagents v0.2.0 Installer</h1>
<p>
Thank you for choosing to install MORagents on your system. This installer
will guide you through the process of setting up MORagents and its
Expand Down
20 changes: 12 additions & 8 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@

class AgentDockerConfig:
MACOS_APPLE_IMAGE_NAMES = [
"lachsbagel/moragents_dockers-nginx:apple-0.1.1",
"lachsbagel/moragents_dockers-agents:apple-0.1.1"
"lachsbagel/moragents_dockers-nginx:apple-0.2.0",
"lachsbagel/moragents_dockers-agents:apple-0.2.0"
]
MACOS_INTEL_IMAGE_NAMES = [
"lachsbagel/moragents_dockers-nginx:amd64-0.1.1",
"lachsbagel/moragents_dockers-agents:amd64-0.1.1"
"lachsbagel/moragents_dockers-nginx:amd64-0.2.0",
"lachsbagel/moragents_dockers-agents:amd64-0.2.0"
]
WINDOWS_IMAGE_NAMES = [
"lachsbagel/moragents_dockers-nginx:amd64-0.1.1",
"lachsbagel/moragents_dockers-agents:amd64-0.1.1"
"lachsbagel/moragents_dockers-nginx:amd64-0.2.0",
"lachsbagel/moragents_dockers-agents:amd64-0.2.0"
]
LINUX_IMAGE_NAMES = [ # TODO, may need linux specific tagged images
"lachsbagel/moragents_dockers-nginx:amd64-0.1.1",
"lachsbagel/moragents_dockers-agents:amd64-0.1.1"
"lachsbagel/moragents_dockers-nginx:amd64-0.2.0",
"lachsbagel/moragents_dockers-agents:amd64-0.2.0"
]

@staticmethod
Expand All @@ -50,6 +50,10 @@ class AgentDockerConfigDeprecate:
"morpheus/price_fetcher_agent:latest",
"moragents_dockers-nginx:latest",
"moragents_dockers-agents:latest",
"lachsbagel/moragents_dockers-nginx:apple-0.0.9",
"lachsbagel/moragents_dockers-agents:apple-0.0.9",
"lachsbagel/moragents_dockers-nginx:amd64-0.0.9",
"lachsbagel/moragents_dockers-agents:amd64-0.0.9",
"lachsbagel/moragents_dockers-nginx:apple-0.1.0",
"lachsbagel/moragents_dockers-agents:apple-0.1.0",
"lachsbagel/moragents_dockers-nginx:amd64-0.1.0",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import logging
import re
import urllib.parse
from news_agent.src.config import Config
from news_agent.src.tools import clean_html, is_within_time_window, fetch_rss_feed
from src.agents.news_agent.config import Config
from src.agents.news_agent.tools import clean_html, is_within_time_window, fetch_rss_feed
import pyshorteners

logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dateutil import parser
import re
from html import unescape
from news_agent.src.config import Config
from news_agent.config import Config
import logging
import urllib.parse

Expand Down
2 changes: 1 addition & 1 deletion submodules/moragents_dockers/agents/src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Config:
"upload_required": False,
},
{
"path": "news_agent.src.agent",
"path": "src.agents.news_agent.agent",
"class": "NewsAgent",
"description": "Fetches and analyzes cryptocurrency news for potential price impacts.",
"name": "crypto news agent",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from helpers import request_claim, provide_receiver_address, confirm_transaction
from submodules.benchmarks.claim_agent_benchmarks.config import Config
from submodules.moragents_dockers.agents.tests.claim_agent_benchmarks.config import Config


def test_claim_process():
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from submodules.benchmarks.claim_agent_benchmarks.config import Config
from submodules.benchmarks.claim_agent_benchmarks.adapters.claim_adapter import ClaimAdapter
from submodules.moragents_dockers.agents.tests.claim_agent_benchmarks.config import Config
from submodules.moragents_dockers.agents.tests.claim_agent_benchmarks.adapters.claim_adapter import ClaimAdapter

claim_adapter = ClaimAdapter(Config.URL, Config.HEADERS)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import pytest
import logging
from submodules.benchmarks.news_agent_benchmarks.config import Config
from submodules.benchmarks.news_agent_benchmarks.helpers import ask_news_agent, extract_classification
from submodules.moragents_dockers.agents.tests.news_agent_benchmarks.config import Config
from submodules.moragents_dockers.agents.tests.news_agent_benchmarks.helpers import ask_news_agent, extract_classification

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import time
import argparse
from helpers import ask_data_agent, compare_usd_values, extract_agent_usd_value
from submodules.benchmarks.price_fetching.config import coins, price_prompts, mcap_prompts, price_error_tolerance, mcap_error_tolerance, loop_delay
from submodules.moragents_dockers.agents.tests.price_fetching import coins, price_prompts, mcap_prompts, price_error_tolerance, mcap_error_tolerance, loop_delay
from adapters.coingecko_adapter import CoingeckoAdapter
from adapters.defillama_adapter import DefillamaAdapter

Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from submodules.benchmarks.claim_agent_benchmarks.helpers import request_claim, confirm_transaction
from submodules.benchmarks.claim_agent_benchmarks.config import Config
from submodules.benchmarks.claim_agent_benchmarks.helpers import request_claim
from submodules.moragents_dockers.agents.tests.claim_agent_benchmarks.config import Config


def test_claim_process():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Configuration object
class Config:
WEB3RPCURL = {
"1": "https://cloudflare-eth.com",
"1": "https://eth.llamarpc.com/",
}

DISTRIBUTION_PROXY_ADDRESS = "0x47176B2Af9885dC6C4575d4eFd63895f7Aaa4790"
Expand Down
4 changes: 2 additions & 2 deletions submodules/moragents_dockers/docker-compose-apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.8"

services:
agents:
image: lachsbagel/moragents_dockers-agents:apple-0.1.1
image: lachsbagel/moragents_dockers-agents:apple-0.2.0
build:
dockerfile: Dockerfile-apple
context: ./agents
Expand All @@ -18,7 +18,7 @@ services:
- BASE_URL=http://host.docker.internal:11434

nginx:
image: lachsbagel/moragents_dockers-nginx:apple-0.1.1
image: lachsbagel/moragents_dockers-nginx:apple-0.2.0
build:
context: ./frontend
dockerfile: Dockerfile
Expand Down
4 changes: 2 additions & 2 deletions submodules/moragents_dockers/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.8"

services:
agents:
image: lachsbagel/moragents_dockers-agents:amd64-0.1.1
image: lachsbagel/moragents_dockers-agents:amd64-0.2.0
build:
dockerfile: Dockerfile
context: ./agents
Expand All @@ -18,7 +18,7 @@ services:
- BASE_URL=http://host.docker.internal:11434

nginx:
image: lachsbagel/moragents_dockers-nginx:amd64-0.1.1
image: lachsbagel/moragents_dockers-nginx:amd64-0.2.0
build:
context: ./frontend
dockerfile: Dockerfile
Expand Down
4 changes: 2 additions & 2 deletions submodules/moragents_dockers/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion submodules/moragents_dockers/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Morpheus AI",
"private": true,
"version": "0.1.1",
"version": "0.2.0",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand Down
2 changes: 1 addition & 1 deletion wizard_windows.iss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Setup]
AppName=MORagents
AppVersion=0.1.1
AppVersion=0.2.0
DefaultDirName={commonpf}\MORagents
OutputDir=.\MORagentsWindowsInstaller
OutputBaseFilename=MORagentsSetup
Expand Down

0 comments on commit 1023dd0

Please sign in to comment.