-
Couldn't load subscription status.
- Fork 2.8k
475/simple sequential chain #834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
104f4eb to
3e8659c
Compare
3e8659c to
078dbc2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@agola11 (not to do this in PR) but thoughts on adding a new callback method called handleChainIntermediateResult could be used in lots of places and might be a good answer for some things we've been discussing?
|
@kwkr outputKeys has been merged |
078dbc2 to
e10c922
Compare
e10c922 to
146b004
Compare
* add simple sequential chain implementation * add tests * add docs * fix linting errors * add full input chains validation --------- Co-authored-by: harry_squater <[email protected]>
addresses #475
Added SimpleSequentialChain implementation based on the one from the python version
This is my first PR here so please excuse me if I messed some conventions up. The functionality is there but due to some differences between Python and TS classes, I wasn't sure how should I proceed with the validation that is included in the Python version.
I also added the some example docs site for this specific class as it's done for the
LLM.Few things to consider:
outputKeyis not available on theBaseChainbut as a part of some chains (for exampleLLMChain). Because I usedBaseChainas a type of thechainsthat are passed to theSimpleSequentialChainthe way to check for this would be to do some casting and then check if the propertyoutputKeyis available on each chain. I would appreciate some input on how I should proceed with this.I would appreciate some hints on this @nfcampos. Thanks in advance for any input!