Skip to content

tools.length read properties of undefined #155

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

Open
ramirobg94 opened this issue Mar 6, 2025 · 3 comments
Open

tools.length read properties of undefined #155

ramirobg94 opened this issue Mar 6, 2025 · 3 comments

Comments

@ramirobg94
Copy link

Description

When using the runner I have this error:

node_modules/@baseai/core/src/pipes/pipes.ts:191

TypeError: Cannot read properties of undefined (reading 'length')

if (tools.length) {

Code example

No response

Additional context

No response

@mwong-12
Copy link

Same issue when trying to run the basic example.

Looks like it is failing here with an empty array provided :
if (tools.length)
I suspect this should be
if(tools.length>0) ?

I can't get any of the examples working because of this so I am giving up unfortunately.

@themadeye
Copy link

Same issue here when I'm trying to run some examples. Hope the team will look into this, it's blocking our learning path so far.

@stevahnes
Copy link

I encountered the same issue. I think the Langbase team decided to focus on the langbase package instead of BaseAI. I was able to deploy my pipe and memory after moving to langbase.

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

4 participants