Skip to content
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

It's impossible to implement the chains.Chain interface because it depends on a private struct #1085

Open
kraney opened this issue Dec 7, 2024 · 1 comment

Comments

@kraney
Copy link

kraney commented Dec 7, 2024

Because ChainCallOption is defined as

type ChainCallOption func(*chainCallOption)

it's impossible to implement the Chains interface anywhere outside the chains package. You must support these options in the Call() method, but there is no way to read them. To do so, you would have to instantiate a struct that's private to the chains package.

@pnthang01
Copy link

Exactly, we need to make the struct public so we can make custom LLMChain from it. For now, I have to work around to make it work, that's painful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants