๐ ๏ธ Configure Tools
Learn how to configure tools
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
For example, if youโre using the Image Analyzer tool, youโll need to provide an OpenAI API key. Similarly, other tools might require their own specific configuration parameters to function properly.
Import required libraries
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:
Get Image Analyser Action from Composio
Invoke the agent
How to add metadata at App-level?
Above we saw how to add metadata at the Action-level. Hereโs an example of how to add metadata at the App-level:
Was this page helpful?