fix: add entity_id to the ComposioToolSet (#6805)

* fix: add entity_id to the ComposioToolSet

* feat: Add Composio API key to environment variables

* fix: Update Gmail Agent starter project to load API key from database

* fix: Configure Gmail Agent starter project to load OpenAI API key from database

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Jean-Baptiste <jb.molle@vescape.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
jbmolle 2025-02-25 16:41:57 +01:00 committed by GitHub
commit ea0c24e366
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 56 additions and 58 deletions

View file

@ -369,7 +369,7 @@ class ComposioAPIComponent(LCToolComponent):
if not self.api_key:
msg = "Composio API Key is required"
raise ValueError(msg)
return ComposioToolSet(api_key=self.api_key)
return ComposioToolSet(api_key=self.api_key, entity_id=self.entity_id)
except ValueError as e:
logger.error(f"Error building Composio wrapper: {e}")
msg = "Please provide a valid Composio API Key in the component settings"

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,7 @@
DEFAULT_SUPERUSER = "langflow"
DEFAULT_SUPERUSER_PASSWORD = "langflow" # noqa: S105
VARIABLES_TO_GET_FROM_ENVIRONMENT = [
"COMPOSIO_API_KEY",
"OPENAI_API_KEY",
"ANTHROPIC_API_KEY",
"GOOGLE_API_KEY",