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

Property 'lc_runnable' is protected but type 'Runnable<RunInput, RunOutput, CallOptions>' is not a class derived #46

Open
bsonmez opened this issue Jul 5, 2024 · 0 comments

Comments

@bsonmez
Copy link

bsonmez commented Jul 5, 2024

Hello everyone,

I'm getting the error below while deploying the repo from the template. Did not change anything on the source code.

./app/ai_sdk/agent/action.ts:18:31
Type error: Type 'ChatPromptTemplate<any, any>' does not satisfy the constraint 'Runnable<any, any, RunnableConfig>'.
  Property 'lc_runnable' is protected but type 'Runnable<RunInput, RunOutput, CallOptions>' is not a class derived from 'Runnable<RunInput, RunOutput, CallOptions>'.

  16 |     const tools = [new TavilySearchResults({ maxResults: 1 })];
  17 |
> 18 |     const prompt = await pull<ChatPromptTemplate>(
     |                               ^
  19 |       "hwchase17/openai-tools-agent",
  20 |     );
  21 |
@bsonmez bsonmez changed the title Cannot find module '@langchain/core' or its corresponding type declarations. Property 'lc_runnable' is protected but type 'Runnable<RunInput, RunOutput, CallOptions>' is not a class derived Jul 5, 2024
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

1 participant