mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-01 13:25:18 +08:00
fix(interactions): align adapter manifests and close timed-out streams
This commit is contained in:
@@ -114,11 +114,13 @@ class RunnerInvoker:
|
||||
raise
|
||||
except asyncio.TimeoutError:
|
||||
next_result.cancel()
|
||||
await asyncio.gather(next_result, return_exceptions=True)
|
||||
await self._close_generator(gen, descriptor)
|
||||
raise
|
||||
finally:
|
||||
if not next_result.done():
|
||||
next_result.cancel()
|
||||
await asyncio.gather(next_result, return_exceptions=True)
|
||||
|
||||
def _remaining_deadline_seconds(
|
||||
self,
|
||||
|
||||
@@ -86,7 +86,10 @@ spec:
|
||||
- get_file_url
|
||||
- call_platform_api
|
||||
- interaction.request
|
||||
- send_interaction
|
||||
- get_interaction_capabilities
|
||||
- interaction.acknowledge
|
||||
- update_interaction
|
||||
|
||||
platform_specific_apis:
|
||||
- action: check_access_token
|
||||
|
||||
@@ -65,6 +65,8 @@ spec:
|
||||
- leave_group
|
||||
- call_platform_api
|
||||
- interaction.request
|
||||
- send_interaction
|
||||
- get_interaction_capabilities
|
||||
|
||||
platform_specific_apis:
|
||||
- action: get_channel
|
||||
|
||||
@@ -266,6 +266,9 @@ spec:
|
||||
- call_platform_api
|
||||
- interaction.request
|
||||
- interaction.acknowledge
|
||||
- send_interaction
|
||||
- update_interaction
|
||||
- get_interaction_capabilities
|
||||
|
||||
platform_specific_apis:
|
||||
- action: check_tenant_access_token
|
||||
|
||||
@@ -146,6 +146,8 @@ spec:
|
||||
- get_group_member_info
|
||||
- call_platform_api
|
||||
- interaction.request
|
||||
- send_interaction
|
||||
- get_interaction_capabilities
|
||||
|
||||
platform_specific_apis:
|
||||
- action: check_access_token
|
||||
|
||||
@@ -77,6 +77,8 @@ spec:
|
||||
- leave_group
|
||||
- call_platform_api
|
||||
- interaction.request
|
||||
- send_interaction
|
||||
- get_interaction_capabilities
|
||||
|
||||
platform_specific_apis:
|
||||
- action: pin_message
|
||||
|
||||
@@ -192,6 +192,9 @@ spec:
|
||||
- call_platform_api
|
||||
- interaction.request
|
||||
- interaction.acknowledge
|
||||
- send_interaction
|
||||
- update_interaction
|
||||
- get_interaction_capabilities
|
||||
|
||||
platform_specific_apis:
|
||||
- action: is_websocket_mode
|
||||
|
||||
Reference in New Issue
Block a user