LangChain.Samples.Prompts example raises System.InvalidOperationException
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.1k
- Forks
- 141
- Avg merge
- 2d 18m
- Merged PRs (30d)
- 2
Description
Describe the bug
running the example LangChain.Samples.Prompts throws System.InvalidOperationException : 'Return values have multiple keys, 'run' only supported when one key currently'
Steps to reproduce the bug
set LangChain.Samples.Prompts as startup project and run.
exception will be thrown n LangChain.Base.BaseChain.RunAsync(..)
Expected behavior
No response
Screenshots
No response
NuGet package version
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the LangChain.Samples.Prompts example and inspect the exception path in LangChain.Base.BaseChain.RunAsync(...). Trace why the example produces multiple return keys while RunAsync expects one. Done means the sample runs without the reported System.InvalidOperationException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- ai
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100