Skip to content

Problems with Tool Calling #783

@msluszniak

Description

@msluszniak

Description

When prompted sequentially about creating a meeting in calendar, two times I got empty response and then strange error:

[React] { [Error: [object Object]] code: 1, cause: undefined }
 ERROR  [Error: [object Object]] 

Code: errorUtils.ts
   6 |
   7 |   constructor(code: number, message: string, cause?: unknown) {
>  8 |     super(message);
     |     ^
   9 |     this.code = code;
  10 |     this.message = message;
  11 |     this.cause = cause;
Call Stack
  RnExecutorchError#constructor (packages/react-native-executorch/src/errors/errorUtils.ts:8:5)
  parseUnknownError (packages/react-native-executorch/src/errors/errorUtils.ts:28:31)
  forward (packages/react-native-executorch/src/controllers/LLMController.ts:232:30)

Reference:

Image

Steps to reproduce

  1. Open llm > Tool Calling app in demo apps.
  2. Ask about creating a meeting as in the reference image above.
  3. Observe strange behaviour.

Snack or a link to a repository

demo apps

React Native Executorch version

main

React Native version

81.5

Platforms

Platform agnostic

JavaScript runtime

Hermes

Workflow

Expo Go

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

No response

AI model

Tool calling model from llm demo app

Performance logs

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

Labels

modelIssues related to exporting, improving, fixing ML models

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions