mirror of
https://github.com/langgenius/dify.git
synced 2026-02-25 02:35:12 +00:00
Some checks failed
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Has been cancelled
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Has been cancelled
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Has been cancelled
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Has been cancelled
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Has been cancelled
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Has been cancelled
19 lines
527 B
Python
19 lines
527 B
Python
"""Sandbox debug utilities. TODO: Remove this module when sandbox debugging is complete."""
|
|
|
|
from typing import Any
|
|
|
|
from core.callback_handler.agent_tool_callback_handler import print_text
|
|
|
|
SANDBOX_DEBUG_ENABLED = True
|
|
|
|
|
|
def sandbox_debug(tag: str, message: str, data: Any = None) -> None:
|
|
if not SANDBOX_DEBUG_ENABLED:
|
|
return
|
|
|
|
print_text(f"\n[{tag}]\n", color="blue")
|
|
if data is not None:
|
|
print_text(f"{message}: {data}\n", color="blue")
|
|
else:
|
|
print_text(f"{message}\n", color="blue")
|