Move cancel function implementation from promptcontext to globals #612
Annotations
3 errors
packages/core/src/globals.ts#L66
You are throwing a new `CancelError` in the `cancel` function but it's not being caught anywhere. This could lead to an unhandled promise rejection. Please make sure to catch this error where the `cancel` function is being called. 🚀
|
packages/core/src/promptcontext.ts#L224
The `cancel` function has been removed from the `PromptContext`. If this function was being used elsewhere in the code, it could lead to a `TypeError` of `cancel` is not a function. Please ensure that the `cancel` function is not being used elsewhere in the code or provide an alternative implementation. 🧐
|
packages/core/src/types/prompt_template.d.ts#L2276
The `cancel` method has been removed from the `PromptContext` interface. This change could break existing implementations that rely on this method. Please ensure that this change is intentional and that all implementations of this interface have been updated accordingly. 🕵️♀️
|
This job succeeded
Loading