Skip to content

Commit

Permalink
Merge pull request #273 from polywrap/main
Browse files Browse the repository at this point in the history
Main to dev
  • Loading branch information
nerfZael authored Jun 24, 2024
2 parents 3b3ffb9 + fd2ddf8 commit cd05771
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion autotx/agents/DelegateResearchTokensAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
research: {{ "tasks": "Automatically monitor and alert the user about price changes for a specific token." }}
research: {{ "tasks": "Analyze the profitability of mining Ethereum tokens." }}
IMPORTANT: When querying for a number of tokens accross multiple categories, make sure to specify the number of tokens and the categories and that there should be no duplicates.
IMPORTANT: When querying for a number of tokens across multiple categories, make sure to specify the number of tokens and the categories and that there should be no duplicates.
You MUST call the research tool once and pass in multiple tasks if needed.
"""
)
Expand Down
13 changes: 7 additions & 6 deletions autotx/cli.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import uuid
from dotenv import load_dotenv

from autotx import db
from autotx.wallets.safe_smart_wallet import SafeSmartWallet
load_dotenv()
import uvicorn

import uuid
import uvicorn
from typing import cast
import click

from autotx.wallets.safe_smart_wallet import SafeSmartWallet
from autotx.utils.configuration import AppConfig
from autotx.utils.is_dev_env import is_dev_env
from autotx.setup import print_agent_address, setup_agents
from autotx.server import setup_server
from autotx.AutoTx import AutoTx, Config
from autotx.utils.ethereum.helpers.show_address_balances import show_address_balances

Expand Down Expand Up @@ -80,6 +77,8 @@ def run(prompt: str | None, non_interactive: bool, verbose: bool, logs: str | No
@click.option("-p", "--port", type=int, help="Port to run the server on")
@click.option("-d", "--dev", is_flag=True, help="Run the server in development mode")
def serve(verbose: bool, logs: str | None, max_rounds: int | None, cache: bool, port: int | None, dev: bool) -> None:
from autotx.server import setup_server

print_autotx_info()

setup_server(verbose, logs, max_rounds, cache, dev, check_valid_safe=True)
Expand All @@ -88,6 +87,8 @@ def serve(verbose: bool, logs: str | None, max_rounds: int | None, cache: bool,
@main.command()
@click.option("-n", "--name", type=str, help="Name of the application to create")
def new_app(name: str) -> None:
from autotx import db

print(f"Creating new application: {name}")

app = db.create_app(name, uuid.uuid4().hex)
Expand Down

0 comments on commit cd05771

Please sign in to comment.