From 72d701df3e02230ab349013055961d459ea69077 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Mon, 29 Sep 2025 15:41:27 +0800 Subject: [PATCH] perf: increase timeout for calling runtime apis --- pkg/plugin/handler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/plugin/handler.py b/pkg/plugin/handler.py index 5effee4c..b138fd42 100644 --- a/pkg/plugin/handler.py +++ b/pkg/plugin/handler.py @@ -536,7 +536,7 @@ class RuntimeConnectionHandler(handler.Handler): { 'event_context': event_context, }, - timeout=30, + timeout=60, ) return result @@ -546,7 +546,7 @@ class RuntimeConnectionHandler(handler.Handler): result = await self.call_action( LangBotToRuntimeAction.LIST_TOOLS, {}, - timeout=10, + timeout=20, ) return result['tools'] @@ -581,7 +581,7 @@ class RuntimeConnectionHandler(handler.Handler): 'tool_name': tool_name, 'tool_parameters': parameters, }, - timeout=30, + timeout=60, ) return result['tool_response'] @@ -602,7 +602,7 @@ class RuntimeConnectionHandler(handler.Handler): { 'command_context': command_context, }, - timeout=30, + timeout=60, ) async for ret in gen: