Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 04:45 UTC
| 1 | import * as color from 'src/ui/colors'; |
| 2 | |
| 3 | export const maybeWarnAboutPlainStrings = (isPlainString: boolean): string[] => { |
| 4 | if (!isPlainString) { |
| 5 | return []; |
| 6 | } |
| 7 | |
| 8 | return [ |
| 9 | ' ', |
| 10 | color.gray( |
| 11 | 'ℹ️ You used a plain string to represent a failure in the error channel (E). You should consider using tagged objects (with a _tag field), or yieldable errors such as Data.TaggedError and Schema.TaggedError for better handling experience.' |
| 12 | ), |
| 13 | ]; |
| 14 | }; |