electron-agent-bridge
    Preparing search index...
    • Keep whole lines from the start of text while the estimate stays within maxTokens. If even the first line is too large, it is cut by characters and marked with an ellipsis.

      Parameters

      • text: string
      • maxTokens: number

      Returns FittedText