Initialization Parameters
When setting up Composio tools, you might need to provide various configuration parameters like API keys, session IDs, or custom settings. These parameters can be specified at two levels:- App-level: Parameters that apply to all actions within a specific tool/app
- Action-level: Specific parameters needed for individual actions
Import Prompt template & Initialize ChatOpenAI & composio toolset client
During the initialization of the
ComposioToolSet client, we can add metadata to actions & apps. In this example, we’re adding an OpenAI API key for the IMAGE_ANALYSER_ANALYSE action: