brainlid / langchain

Elixir implementation of an AI focused LangChain style framework.
https://hexdocs.pm/langchain/
Other
574 stars 68 forks source link

Set pattern match in `DataExtractionChain` to look for `role: :assistant` rather than `role: :function_call` #16

Closed amokan closed 12 months ago

amokan commented 12 months ago

... This appears to be the only valid result at this stage.

I see no place where you would expect to receive a response with role: :function_call in the current implementation after calling LLMChain.run().

Context here is #14 as I am able to reproduce the same error with the example in that issue as well as the example provided in the moduledoc for LangChain.Chains.DataExtractionChain.