mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-13 21:21:08 +00:00
feat: Add dbgpt client and add api v2
This commit is contained in:
18
dbgpt/client/app.py
Normal file
18
dbgpt/client/app.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from dbgpt.client.client import Client
|
||||
|
||||
|
||||
async def get_app(client: Client, app_id: str):
|
||||
"""Get an app.
|
||||
Args:
|
||||
client (Client): The dbgpt client.
|
||||
app_id (str): The app id.
|
||||
"""
|
||||
return await client.get("/apps/" + app_id)
|
||||
|
||||
|
||||
async def list_app(client: Client):
|
||||
"""List apps.
|
||||
Args:
|
||||
client (Client): The dbgpt client.
|
||||
"""
|
||||
return await client.get("/apps")
|
Reference in New Issue
Block a user