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:
parent
73551b0d32
commit
ea0c24e366
3 changed files with 56 additions and 58 deletions
|
|
@ -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
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue