refactor: thread explicit sessions through app retrieval paths (#38309)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Byron.wang
2026-07-02 17:00:47 +00:00
committed by GitHub
co-authored by autofix-ci[bot]
parent dcc06dee20
commit 2f0c6c10bd
121 changed files with 1356 additions and 677 deletions
+2
View File
@@ -6,6 +6,7 @@ from typing import Any, Union, override
from urllib.parse import urlencode
import httpx
from sqlalchemy.orm import Session
from core.helper import ssrf_proxy
from core.tools.__base.tool import Tool
@@ -379,6 +380,7 @@ class ApiTool(Tool):
@override
def _invoke(
self,
session: Session,
user_id: str,
tool_parameters: dict[str, Any],
conversation_id: str | None = None,