mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-10-11 20:03:53 +00:00
27 lines
488 B
Python
27 lines
488 B
Python
import json
|
|
import time
|
|
from fastapi import (
|
|
APIRouter,
|
|
Body,
|
|
)
|
|
|
|
from typing import List
|
|
from pilot.configs.model_config import LOGDIR
|
|
from pilot.utils import build_logger
|
|
|
|
from pilot.openapi.api_view_model import (
|
|
Result,
|
|
)
|
|
|
|
|
|
|
|
router = APIRouter()
|
|
logger = build_logger("agent_mange", LOGDIR + "agent_mange.log")
|
|
|
|
|
|
@router.get("/v1/mange/agent/list", response_model=Result[str])
|
|
async def get_agent_list():
|
|
logger.info(f"get_agent_list!")
|
|
|
|
return Result.succ(None)
|