dify/api/core/plugin/manager/debugging.py

18 lines
473 B
Python
Raw Normal View History

2024-09-20 14:43:01 +08:00
from pydantic import BaseModel
from core.plugin.manager.base import BasePluginManager
class PluginDebuggingManager(BasePluginManager):
def get_debugging_key(self, tenant_id: str) -> str:
"""
Get the debugging key for the given tenant.
"""
class Response(BaseModel):
key: str
2024-09-20 15:08:39 +08:00
response = self._request_with_plugin_daemon_response("POST", f"plugin/{tenant_id}/debugging/key", Response)
2024-09-20 14:43:01 +08:00
return response.key