This commit is contained in:
Swifty
2026-01-23 13:15:01 +01:00
parent b049c7a756
commit 0af5835030
2 changed files with 5 additions and 3 deletions

View File

@@ -6,8 +6,6 @@ from openai.types.chat import ChatCompletionToolParam
from backend.api.features.chat.model import ChatSession
from backend.api.features.chat.tracking import track_tool_called
logger = logging.getLogger(__name__)
from .add_understanding import AddUnderstandingTool
from .agent_output import AgentOutputTool
from .base import BaseTool
@@ -24,6 +22,8 @@ from .search_docs import SearchDocsTool
if TYPE_CHECKING:
from backend.api.features.chat.response_model import StreamToolOutputAvailable
logger = logging.getLogger(__name__)
# Single source of truth for all tools
TOOL_REGISTRY: dict[str, BaseTool] = {
"add_understanding": AddUnderstandingTool(),

View File

@@ -39,7 +39,9 @@ def _get_posthog_client() -> Posthog | None:
settings.secrets.posthog_api_key,
host=settings.secrets.posthog_host,
)
logger.info(f"PostHog client initialized with host: {settings.secrets.posthog_host}")
logger.info(
f"PostHog client initialized with host: {settings.secrets.posthog_host}"
)
return _posthog_client