fix: removing redundant initialisations in composio components (#7485)
removing redundant initialisations
This commit is contained in:
parent
24a052f70c
commit
7dd75a658c
2 changed files with 0 additions and 21 deletions
|
|
@ -66,8 +66,6 @@ class ComposioBaseComponent(Component):
|
|||
_bool_variables: set[str] = set()
|
||||
_actions_data: dict[str, dict[str, Any]] = {}
|
||||
_default_tools: set[str] = set()
|
||||
_readonly_actions: frozenset[str] = frozenset()
|
||||
_action_fields_cache: dict[str, set[str]] = {}
|
||||
_display_to_key_map: dict[str, str] = {}
|
||||
_key_to_display_map: dict[str, str] = {}
|
||||
_sanitized_names: dict[str, str] = {}
|
||||
|
|
|
|||
|
|
@ -81,27 +81,8 @@ class ComposioGmailAPIComponent(ComposioBaseComponent):
|
|||
_all_fields = {field for action_data in _actions_data.values() for field in action_data["action_fields"]}
|
||||
_bool_variables = {"is_html", "include_spam_trash"}
|
||||
|
||||
# Cache for action fields mapping
|
||||
_action_fields_cache: dict[str, set[str]] = {}
|
||||
_readonly_actions = frozenset(
|
||||
[
|
||||
"GMAIL_FETCH_EMAILS",
|
||||
"GMAIL_GET_PROFILE",
|
||||
"GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID",
|
||||
"GMAIL_FETCH_MESSAGE_BY_THREAD_ID",
|
||||
"GMAIL_LIST_THREADS",
|
||||
"GMAIL_LIST_LABELS",
|
||||
"GMAIL_GET_PEOPLE",
|
||||
]
|
||||
)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self._all_fields = {
|
||||
field for action_data in self._actions_data.values() for field in action_data["action_fields"]
|
||||
}
|
||||
|
||||
self._bool_variables = {"is_html", "include_spam_trash"}
|
||||
self._default_tools = {
|
||||
self.sanitize_action_name("GMAIL_SEND_EMAIL").replace(" ", "-"),
|
||||
self.sanitize_action_name("GMAIL_FETCH_EMAILS").replace(" ", "-"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue