agent
agent copied to clipboard
support openai from langchain
Thanks so much for this! Do you think it would make sense to have separate Langchain-specific examples?
Hi, sorry for the delay in responding. I've been swamped with work but am getting back to it now. I agree with your suggestion and have started implementing the changes you recommended. But, I'm struggling to integrate the lang chain interface with the OpenAI interface because I want to use the prompt template to define the actors' types. Could you please take a look? Maybe you'll have an idea... (you can find the the prompt template here)
Since this PR, I've switched to using the Vercel AI SDK which allows for using an adapter for LangChain: https://sdk.vercel.ai/docs/reference/stream-helpers/langchain-adapter