Skip to content

Commit

Permalink
formatting the imports
Browse files Browse the repository at this point in the history
  • Loading branch information
manthanguptaa committed Sep 27, 2024
1 parent 9b7b96c commit 18a236c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion phi/playground/operator.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
6 changes: 3 additions & 3 deletions phi/playground/playground.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
7 changes: 4 additions & 3 deletions phi/playground/routes.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
3 changes: 2 additions & 1 deletion phi/playground/schemas.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down

0 comments on commit 18a236c

Please sign in to comment.