tryAGI / tryAGI/LangChain

LangChain.Samples.Prompts example raises System.InvalidOperationException

Open
#339 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug providers
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.