Skip to content

Commit

Permalink
Use patched logger (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii authored May 3, 2024
1 parent a1bda0f commit 9f01784
Show file tree
Hide file tree
Showing 14 changed files with 140 additions and 140 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import typer
from loguru import logger
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.markets.agent_market import SortBy
from prediction_market_agent_tooling.markets.markets import (
MarketType,
Expand Down
254 changes: 127 additions & 127 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion prediction_market_agent/agents/custom_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Optional

import requests
from loguru import logger
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.markets.agent_market import AgentMarket
from prediction_market_agent_tooling.tools.utils import (
check_not_none,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
from datetime import timedelta

from dotenv import load_dotenv
from loguru import logger
from prediction_market_agent_tooling.benchmark.agents import AbstractBenchmarkedAgent
from prediction_market_agent_tooling.benchmark.benchmark import Benchmarker
from prediction_market_agent_tooling.benchmark.utils import (
OutcomePrediction,
Prediction,
)
from prediction_market_agent_tooling.gtypes import Probability
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.markets.markets import AgentMarket
from prediction_market_agent_tooling.tools.utils import check_not_none, utcnow
from pydantic import BaseModel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import random
import typing as t

from loguru import logger
from prediction_market_agent_tooling.deploy.agent import Answer, DeployableAgent
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.markets.agent_market import AgentMarket
from prediction_market_agent_tooling.markets.data_models import BetAmount
from prediction_market_agent_tooling.markets.omen.omen import OmenAgentMarket
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from langchain.prompts import ChatPromptTemplate
from langchain_core.callbacks import Callbacks
from langchain_openai import ChatOpenAI
from loguru import logger
from prediction_market_agent_tooling.gtypes import Probability
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.tools.utils import utcnow
from pydantic import BaseModel

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from datetime import timedelta

from loguru import logger
from prediction_market_agent_tooling.config import APIKeys, PrivateCredentials
from prediction_market_agent_tooling.deploy.agent import DeployableAgent
from prediction_market_agent_tooling.gtypes import xdai_type
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.markets.markets import MarketType
from prediction_market_agent_tooling.markets.omen.omen import (
redeem_from_all_user_positions,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from datetime import datetime, timedelta

from loguru import logger
from prediction_market_agent_tooling.config import PrivateCredentials
from prediction_market_agent_tooling.gtypes import ChecksumAddress, wei_type, xDai
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.markets.agent_market import FilterBy, SortBy
from prediction_market_agent_tooling.markets.categorize import infer_category
from prediction_market_agent_tooling.markets.markets import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from datetime import timedelta

from loguru import logger
from prediction_market_agent_tooling.config import PrivateCredentials
from prediction_market_agent_tooling.gtypes import HexAddress, HexBytes
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.markets.omen.data_models import RealityQuestion
from prediction_market_agent_tooling.markets.omen.omen_resolving import (
claim_bonds_on_realitio_questions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from datetime import datetime, timedelta

import typer
from loguru import logger
from prediction_market_agent_tooling.benchmark.agents import (
AbstractBenchmarkedAgent,
FixedAgent,
Expand All @@ -14,6 +13,7 @@
Prediction,
)
from prediction_market_agent_tooling.gtypes import Probability
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.markets.agent_market import (
AgentMarket,
FilterBy,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from crewai import Agent, Crew, Process, Task
from langchain_core.language_models import BaseChatModel
from langchain_openai import ChatOpenAI
from loguru import logger
from prediction_market_agent_tooling.deploy.agent import Answer
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.tools.parallelism import par_generator
from prediction_market_agent_tooling.tools.utils import utcnow
from pydantic import BaseModel
Expand Down
2 changes: 1 addition & 1 deletion prediction_market_agent/tools/streamlit_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import typing as t

import streamlit as st
from loguru import logger
from prediction_market_agent_tooling.loggers import logger

if t.TYPE_CHECKING:
from loguru import Message
Expand Down
2 changes: 1 addition & 1 deletion prediction_market_agent/tools/web_scrape/markdown.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import requests
import tenacity
from bs4 import BeautifulSoup
from loguru import logger
from markdownify import markdownify
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.tools.cache import persistent_inmemory_cache
from requests import Response

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ poetry = "^1.7.1"
poetry-plugin-export = "^1.6.0"
functions-framework = "^3.5.0"
cron-validator = "^1.0.8"
prediction-market-agent-tooling = { version = "^0.21.0", extras = ["langchain", "google", "mech-client"] }
prediction-market-agent-tooling = { version = "^0.22.0", extras = ["langchain", "google", "mech-client"] }
pydantic-settings = "^2.1.0"
autoflake = "^2.2.1"
isort = "^5.13.2"
Expand Down

0 comments on commit 9f01784

Please sign in to comment.