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 | import type { ErrorSpan } from 'effect-errors/types'; |
| 4 | |
| 5 | export const maybeAdviseSpansUsage = (spans: ReadonlyArray<ErrorSpan> | undefined): string[] => { |
| 6 | if (spans === undefined || spans.length === 0) { |
| 7 | return [' ', color.gray('ℹ️ Consider using spans to improve errors reporting.')]; |
| 8 | } |
| 9 | |
| 10 | return []; |
| 11 | }; |