register create_notion_page tool with interrupt_on

This commit is contained in:
CREDO23 2026-02-10 15:27:47 +02:00
parent 9fa923051c
commit c9542c8603
2 changed files with 8 additions and 7 deletions

View file

@ -273,6 +273,7 @@ async def create_surfsense_deep_agent(
system_prompt=system_prompt,
context_schema=SurfSenseContextSchema,
checkpointer=checkpointer,
interrupt_on={"create_notion_page": True},
)
return agent

View file

@ -45,6 +45,7 @@ from langchain_core.tools import BaseTool
from app.db import ChatVisibility
from .create_notion_page import create_create_notion_page_tool
from .display_image import create_display_image_tool
from .generate_image import create_generate_image_tool
from .knowledge_base import create_search_knowledge_base_tool
@ -202,13 +203,12 @@ BUILTIN_TOOLS: list[ToolDefinition] = [
# =========================================================================
# ADD YOUR CUSTOM TOOLS BELOW
# =========================================================================
# Example:
# ToolDefinition(
# name="my_custom_tool",
# description="What my tool does",
# factory=lambda deps: create_my_custom_tool(...),
# requires=["search_space_id"],
# ),
ToolDefinition(
name="create_notion_page",
description="Create a new page in the user's Notion workspace",
factory=lambda deps: create_create_notion_page_tool(),
requires=[],
),
]