Skip to content

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

344 B
Raw Blame
import * as color from 'src/ui/colors';

import type { ErrorSpan } from 'effect-errors/types';

export const maybeAdviseSpansUsage = (spans: ErrorSpan[] | undefined): string[] => {
  if (spans === undefined || spans.length === 0) {
    return [' ', color.gray('ℹ️  Consider using spans to improve errors reporting.')];
  }

  return [];
};