perf: increase timeout for calling runtime apis

This commit is contained in:
Junyan Qin
2025-09-29 15:41:27 +08:00
parent 1191b34fd4
commit 72d701df3e
+4 -4
View File
@@ -536,7 +536,7 @@ class RuntimeConnectionHandler(handler.Handler):
{ {
'event_context': event_context, 'event_context': event_context,
}, },
timeout=30, timeout=60,
) )
return result return result
@@ -546,7 +546,7 @@ class RuntimeConnectionHandler(handler.Handler):
result = await self.call_action( result = await self.call_action(
LangBotToRuntimeAction.LIST_TOOLS, LangBotToRuntimeAction.LIST_TOOLS,
{}, {},
timeout=10, timeout=20,
) )
return result['tools'] return result['tools']
@@ -581,7 +581,7 @@ class RuntimeConnectionHandler(handler.Handler):
'tool_name': tool_name, 'tool_name': tool_name,
'tool_parameters': parameters, 'tool_parameters': parameters,
}, },
timeout=30, timeout=60,
) )
return result['tool_response'] return result['tool_response']
@@ -602,7 +602,7 @@ class RuntimeConnectionHandler(handler.Handler):
{ {
'command_context': command_context, 'command_context': command_context,
}, },
timeout=30, timeout=60,
) )
async for ret in gen: async for ret in gen: