OpenSesame can integrate directly into your langchain workflows with only a few lines of code

Step 1. Install the OpenSesame SDK:

Step 2. Set up the OpenSesame_langchain client and retrieve your custom callback_manager.

Step 3. Add the callback_manager to your Langchain chain.

Example 1: Using LLMChain

Example 2: Using RetrievalQA

The call_back manager is used to send your requests to OpenSesame. It can be added to any of your Langchain worflows. Agents will be handled seperately