From 18a236c5af9b0e1de48a0988f0cc4764d4fcc1f8 Mon Sep 17 00:00:00 2001 From: Manthan Gupta Date: Fri, 27 Sep 2024 08:18:52 +0530 Subject: [PATCH] formatting the imports --- phi/playground/operator.py | 2 +- phi/playground/playground.py | 6 +++--- phi/playground/routes.py | 7 ++++--- phi/playground/schemas.py | 3 ++- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/phi/playground/operator.py b/phi/playground/operator.py index ff8ccf8c22..3d959f1a95 100644 --- a/phi/playground/operator.py +++ b/phi/playground/operator.py @@ -1,8 +1,8 @@ from typing import List, Optional from phi.agent.agent import Agent, Tool, Toolkit, Function -from phi.utils.log import logger from phi.agent.session import AgentSession +from phi.utils.log import logger def format_tools(agent_tools): diff --git a/phi/playground/playground.py b/phi/playground/playground.py index 5eb4aa69c3..947b9dd21c 100644 --- a/phi/playground/playground.py +++ b/phi/playground/playground.py @@ -1,13 +1,13 @@ from typing import List, Optional + from fastapi import FastAPI from fastapi.routing import APIRouter from phi.agent.agent import Agent +from phi.api.playground import create_playground_endpoint, PlaygroundEndpointCreate +from phi.playground.routes import create_playground_routes from phi.playground.settings import PlaygroundSettings from phi.utils.log import logger -from phi.api.playground import create_playground_endpoint, PlaygroundEndpointCreate - -from .routes import create_playground_routes class Playground: diff --git a/phi/playground/routes.py b/phi/playground/routes.py index f1ecd737db..5af33f7efd 100644 --- a/phi/playground/routes.py +++ b/phi/playground/routes.py @@ -1,12 +1,13 @@ -from typing import List, Optional, Generator, Dict, cast, Union import base64 +from typing import List, Optional, Generator, Dict, cast, Union + from fastapi import APIRouter, HTTPException, UploadFile from fastapi.responses import StreamingResponse, JSONResponse from phi.agent.agent import Agent, RunResponse -from phi.utils.log import logger from phi.agent.session import AgentSession -from .operator import get_agent_by_id, get_session_title, format_tools +from phi.playground.operator import format_tools, get_agent_by_id, get_session_title +from phi.utils.log import logger from .schemas import ( AgentGetResponse, diff --git a/phi/playground/schemas.py b/phi/playground/schemas.py index 73a4d8da89..5155cd2276 100644 --- a/phi/playground/schemas.py +++ b/phi/playground/schemas.py @@ -1,5 +1,6 @@ -from typing import List, Optional, Any, Dict from pydantic import BaseModel +from typing import List, Optional, Any, Dict + from fastapi import UploadFile