bind() method on RunnableLambda doesn't accept input parameters as documented #7835
Open
5 tasks done
Labels
auto:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
When attempting to bind an input parameter to a
RunnableLambda
:Error Message and Stack Trace (if applicable)
TypeScript throws the following errors:
Object literal may only specify known properties, and 'b' does not exist in type 'Partial<RunnableConfig<Record<string, any>>>'
Argument of type '{ a: number; }' is not assignable to parameter of type '{ a: number; b: number; }'
Description
The
bind()
method onRunnableLambda
is not working as documented in the official LangChain.js documentation (https://js.langchain.com/docs/how_to/binding/). When trying to bind input parameters to a runnable, TypeScript reports that the parameters are not valid properties ofRunnableConfig
.System Info
The text was updated successfully, but these errors were encountered: