Bug Description
An error occurred when using the Send Mail method of Composio's Gmail component: KeyError Details: type
Reproduction
Tested the send mail function, the email was sent successfully but the returned value is incorrect.
File "/app/.venv/lib/python3.12/site-packages/composio/core/models/_files.py", line 325, in substitute_file_downloads
self._substitute_file_downloads_recursively(
File "/app/.venv/lib/python3.12/site-packages/composio/core/models/_files.py", line 308, in _substitute_file_downloads_recursively
if isinstance(request[_param], dict) and params[_param]["type"] == "object":
~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'type'
Expected behavior
The issue has been resolved after modifying Composio's _files.py by adding conditional checks.
Who can help?
No response
Operating System
Windows11
Langflow Version
v1.9.1
Python Version
3.12
Screenshot
No response
Flow File
No response
Bug Description
An error occurred when using the Send Mail method of Composio's Gmail component: KeyError Details: type
Reproduction
Tested the send mail function, the email was sent successfully but the returned value is incorrect.
File "/app/.venv/lib/python3.12/site-packages/composio/core/models/_files.py", line 325, in substitute_file_downloads
self._substitute_file_downloads_recursively(
File "/app/.venv/lib/python3.12/site-packages/composio/core/models/_files.py", line 308, in _substitute_file_downloads_recursively
if isinstance(request[_param], dict) and params[_param]["type"] == "object":
~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'type'
Expected behavior
The issue has been resolved after modifying Composio's _files.py by adding conditional checks.
Who can help?
No response
Operating System
Windows11
Langflow Version
v1.9.1
Python Version
3.12
Screenshot
No response
Flow File
No response