Skip to content

Error with insufficient permissions in tool calling example #774

@msluszniak

Description

@msluszniak

Description

When running tool calling example, I prompted to create an event in calendar. However, I received an error:

[React] [Error: Uncaught (in promise, id: 0) Error: Calling the 'getCalendarsAsync' function has failed
→ Caused by: CALENDAR permission is required to do this operation]

I suppose program should ask me for permissions every time it has insufficient ones.

Steps to reproduce

  • Run the tool calling example from llm apps.
  • If it ask you for permissions, do not grant them (in my case there is no such pop-up)
  • Create a task that will require permission like calendar.

Snack or a link to a repository

llm demo app from this repo

React Native Executorch version

main aka pre 0.7 release

React Native version

0.81

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo Go

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

No response

AI model

Hammer 2.1

Performance logs

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions