Skip to content

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

@bsonmez

Description

@bsonmez

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 |

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions