From ac187df9282b357ac0fb95dcf6d13b7efafbeb04 Mon Sep 17 00:00:00 2001 From: huanghuoguoguo Date: Sat, 10 Oct 2026 23:59:08 +0800 Subject: [PATCH] refactor(api): reuse application API for assistant pipeline reads --- src/langbot/pkg/api/http/service/assistant_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/langbot/pkg/api/http/service/assistant_tools.py b/src/langbot/pkg/api/http/service/assistant_tools.py index a850f428e..d2d02126c 100644 --- a/src/langbot/pkg/api/http/service/assistant_tools.py +++ b/src/langbot/pkg/api/http/service/assistant_tools.py @@ -285,7 +285,7 @@ async def execute_tool(ap, context, name: str, arguments: dict): compact['query'] = {key: args[key] for key in ('search', 'action', 'resource_type', 'actor') if args.get(key)} return compact if name == 'get_pipeline': - return await ap.pipeline_service.get_pipeline(context, args['pipeline_uuid']) + return await getattr(ap, 'application_api', ap.pipeline_service).get_pipeline(context, args['pipeline_uuid']) if name == 'get_knowledge_schema': return { 'creation': await ap.knowledge_service.get_engine_creation_schema(context, args['plugin_id']),