@juspay/neurolink 9.43.0 → 9.44.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/browser/neurolink.min.js +258 -258
  3. package/dist/cli/commands/authProviders.d.ts +1 -1
  4. package/dist/cli/commands/task.js +1 -1
  5. package/dist/cli/errorHandler.js +1 -1
  6. package/dist/cli/factories/commandFactory.js +1 -1
  7. package/dist/cli/loop/conversationSelector.d.ts +2 -2
  8. package/dist/cli/loop/optionsSchema.d.ts +2 -2
  9. package/dist/cli/loop/session.d.ts +1 -1
  10. package/dist/cli/utils/audioFileUtils.d.ts +1 -1
  11. package/dist/cli/utils/envManager.d.ts +1 -1
  12. package/dist/cli/utils/videoFileUtils.d.ts +1 -1
  13. package/dist/client/auth.d.ts +3 -3
  14. package/dist/client/httpClient.d.ts +20 -20
  15. package/dist/client/index.d.ts +3 -3
  16. package/dist/client/interceptors.d.ts +1 -1
  17. package/dist/client/reactHooks.d.ts +1 -1
  18. package/dist/client/reactHooks.tsx +2 -2
  19. package/dist/client/sseClient.d.ts +1 -1
  20. package/dist/client/streamingClient.d.ts +1 -1
  21. package/dist/client/wsClient.d.ts +1 -1
  22. package/dist/files/fileTools.d.ts +1 -1
  23. package/dist/lib/agent/directTools.d.ts +2 -2
  24. package/dist/lib/client/auth.d.ts +3 -3
  25. package/dist/lib/client/httpClient.d.ts +20 -20
  26. package/dist/lib/client/index.d.ts +3 -3
  27. package/dist/lib/client/interceptors.d.ts +1 -1
  28. package/dist/lib/client/reactHooks.d.ts +1 -1
  29. package/dist/lib/client/sseClient.d.ts +1 -1
  30. package/dist/lib/client/streamingClient.d.ts +1 -1
  31. package/dist/lib/client/wsClient.d.ts +1 -1
  32. package/dist/lib/files/fileTools.d.ts +1 -1
  33. package/dist/lib/rag/types.d.ts +1 -68
  34. package/dist/lib/server/types.d.ts +3 -847
  35. package/dist/lib/server/types.js +3 -64
  36. package/dist/lib/tasks/tools/taskTools.d.ts +1 -1
  37. package/dist/lib/types/analytics.d.ts +1 -1
  38. package/dist/lib/types/cli.d.ts +1 -1
  39. package/dist/lib/types/clientTypes.d.ts +38 -20
  40. package/dist/lib/types/configTypes.d.ts +1 -1
  41. package/dist/lib/types/configTypes.js +0 -1
  42. package/dist/lib/types/index.d.ts +8 -6
  43. package/dist/lib/types/index.js +3 -0
  44. package/dist/lib/types/ragTypes.d.ts +69 -0
  45. package/dist/lib/types/sdkTypes.d.ts +1 -2
  46. package/dist/lib/types/serverTypes.d.ts +858 -0
  47. package/dist/lib/types/serverTypes.js +68 -0
  48. package/dist/lib/types/streamTypes.d.ts +2 -2
  49. package/dist/lib/types/typeAliases.d.ts +1 -37
  50. package/dist/lib/workflow/config.d.ts +3 -3
  51. package/dist/rag/errors/RAGError.d.ts +1 -1
  52. package/dist/rag/types.d.ts +1 -68
  53. package/dist/server/types.d.ts +3 -847
  54. package/dist/server/types.js +3 -64
  55. package/dist/types/analytics.d.ts +1 -1
  56. package/dist/types/cli.d.ts +1 -1
  57. package/dist/types/clientTypes.d.ts +38 -20
  58. package/dist/types/configTypes.d.ts +1 -1
  59. package/dist/types/index.d.ts +8 -6
  60. package/dist/types/index.js +3 -0
  61. package/dist/types/ragTypes.d.ts +69 -0
  62. package/dist/types/sdkTypes.d.ts +1 -2
  63. package/dist/types/serverTypes.d.ts +858 -0
  64. package/dist/types/serverTypes.js +67 -0
  65. package/dist/types/streamTypes.d.ts +2 -2
  66. package/dist/types/typeAliases.d.ts +1 -37
  67. package/dist/workflow/config.d.ts +3 -3
  68. package/package.json +1 -1
@@ -698,71 +698,4 @@ export type RAGCommandArgs = {
698
698
  /** Use Graph RAG */
699
699
  graph?: boolean;
700
700
  };
701
- /**
702
- * RAG configuration for generate() and stream() APIs.
703
- *
704
- * When provided, NeuroLink automatically:
705
- * 1. Loads the specified files
706
- * 2. Chunks them using the selected strategy
707
- * 3. Generates embeddings
708
- * 4. Stores in an in-memory vector store
709
- * 5. Creates a search tool the AI can invoke on demand
710
- *
711
- * @example
712
- * ```typescript
713
- * const result = await neurolink.generate({
714
- * input: { text: "What is RAG?" },
715
- * provider: "vertex",
716
- * rag: {
717
- * files: ["./docs/guide.md", "./docs/api.md"],
718
- * strategy: "markdown",
719
- * chunkSize: 512,
720
- * topK: 5,
721
- * }
722
- * });
723
- * ```
724
- */
725
- export type RAGConfig = {
726
- /** File paths to load and index for retrieval */
727
- files: string[];
728
- /**
729
- * Chunking strategy to use. If not specified, auto-detected from file extension.
730
- * @default "recursive"
731
- */
732
- strategy?: ChunkingStrategy;
733
- /**
734
- * Maximum chunk size in characters.
735
- * @default 1000
736
- */
737
- chunkSize?: number;
738
- /**
739
- * Overlap between adjacent chunks in characters.
740
- * @default 200
741
- */
742
- chunkOverlap?: number;
743
- /**
744
- * Number of top results to retrieve per query.
745
- * @default 5
746
- */
747
- topK?: number;
748
- /**
749
- * Tool name visible to the AI model.
750
- * @default "search_knowledge_base"
751
- */
752
- toolName?: string;
753
- /**
754
- * Tool description for the AI model explaining what the knowledge base contains.
755
- * @default "Search the loaded documents for relevant information to answer the user's question"
756
- */
757
- toolDescription?: string;
758
- /**
759
- * Embedding model provider for generating embeddings.
760
- * Defaults to the same provider used for generation.
761
- */
762
- embeddingProvider?: string;
763
- /**
764
- * Embedding model name.
765
- * Defaults to the provider's default embedding model.
766
- */
767
- embeddingModel?: string;
768
- };
701
+ export type { RAGConfig } from "../types/ragTypes.js";