diff --git a/cookbook/tools/openbb_tools.py b/cookbook/tools/openbb_tools.py index 2b2383eac..47e6676ec 100644 --- a/cookbook/tools/openbb_tools.py +++ b/cookbook/tools/openbb_tools.py @@ -5,17 +5,10 @@ agent = Agent(tools=[OpenBBTools()], debug_mode=True, show_tool_calls=True) # Example usage showing stock analysis -agent.print_response( - "Get me the current stock price and key information for Apple (AAPL)" -) +agent.print_response("Get me the current stock price and key information for Apple (AAPL)") # Example showing market analysis -agent.print_response( - "What are the top gainers in the market today?" -) +agent.print_response("What are the top gainers in the market today?") # Example showing economic indicators -agent.print_response( - "Show me the latest GDP growth rate and inflation numbers for the US" -) - +agent.print_response("Show me the latest GDP growth rate and inflation numbers for the US") diff --git a/cookbook/tools/postgres_tool.py b/cookbook/tools/postgres_tool.py index acaa62c3f..d0e72e731 100644 --- a/cookbook/tools/postgres_tool.py +++ b/cookbook/tools/postgres_tool.py @@ -2,13 +2,7 @@ from phi.tools.postgres import PostgresTools # Initialize PostgresTools with connection details -postgres_tools = PostgresTools( - host="localhost", - port=5532, - db_name="ai", - user="ai", - password="ai" -) +postgres_tools = PostgresTools(host="localhost", port=5532, db_name="ai", user="ai", password="ai") # Create an agent with the PostgresTools agent = Agent(tools=[postgres_tools]) diff --git a/cookbook/tools/searxng_tools.py b/cookbook/tools/searxng_tools.py index a2cba59f2..016968290 100644 --- a/cookbook/tools/searxng_tools.py +++ b/cookbook/tools/searxng_tools.py @@ -2,13 +2,7 @@ from phi.tools.searxng import Searxng # Initialize Searxng with your Searxng instance URL -searxng = Searxng( - host="http://localhost:53153", - engines=[], - fixed_max_results=5, - news=True, - science=True -) +searxng = Searxng(host="http://localhost:53153", engines=[], fixed_max_results=5, news=True, science=True) # Create an agent with Searxng agent = Agent(tools=[searxng]) diff --git a/phi/tools/postgres.py b/phi/tools/postgres.py index 7854ebc54..c43e5cba4 100644 --- a/phi/tools/postgres.py +++ b/phi/tools/postgres.py @@ -3,7 +3,9 @@ try: import psycopg2 except ImportError: - raise ImportError("`psycopg2` not installed. Please install using `pip install psycopg2`. If you face issues, try `pip install psycopg2-binary`.") + raise ImportError( + "`psycopg2` not installed. Please install using `pip install psycopg2`. If you face issues, try `pip install psycopg2-binary`." + ) from phi.tools import Toolkit from phi.utils.log import logger diff --git a/pyproject.toml b/pyproject.toml index 51a58ff89..56f9bd10e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "phidata" -version = "2.5.25" +version = "2.5.26" description = "Build AI Agents with memory, knowledge and tools." requires-python = ">=3.7" readme = "README.md"