Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 11 lines 357 Bytes
Raw
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 };