debugging.py 473 B

123456789101112131415161718
  1. from pydantic import BaseModel
  2. from core.plugin.manager.base import BasePluginManager
  3. class PluginDebuggingManager(BasePluginManager):
  4. def get_debugging_key(self, tenant_id: str) -> str:
  5. """
  6. Get the debugging key for the given tenant.
  7. """
  8. class Response(BaseModel):
  9. key: str
  10. response = self._request_with_plugin_daemon_response("POST", f"plugin/{tenant_id}/debugging/key", Response)
  11. return response.key