@juspay/neurolink 11.7.1 → 11.8.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.
@@ -1,3 +1,17 @@
1
+ /**
2
+ * One chunk on the engine's stream.
3
+ *
4
+ * `reasoning` is carried alongside `content` rather than instead of it: the
5
+ * providers that emit extended thinking (direct Anthropic, Google AI Studio,
6
+ * Vertex) push a chunk with empty `content` and the thinking delta in
7
+ * `reasoning`, so a channel typed `{ content: string }` alone would drop
8
+ * every thinking delta the moment those providers move onto the engine —
9
+ * silently, since the text path would keep working.
10
+ */
11
+ export type AgenticLoopChunk = {
12
+ content: string;
13
+ reasoning?: string;
14
+ };
1
15
  export type AgenticLoopToolCall = {
2
16
  id: string;
3
17
  name: string;
@@ -97,9 +111,7 @@ export type AgenticLoopAdapter<TConversation = unknown, TRaw = unknown> = {
97
111
  } | undefined;
98
112
  buildStepRequest(conversation: TConversation, step: number): AgenticLoopStepRequest;
99
113
  executeStep(request: AgenticLoopStepRequest, channel: {
100
- push(chunk: {
101
- content: string;
102
- }): void;
114
+ push(chunk: AgenticLoopChunk): void;
103
115
  }, signal: AbortSignal): Promise<AgenticLoopStepResult<TRaw>>;
104
116
  buildToolResultMessages(conversation: TConversation, stepResult: AgenticLoopStepResult<TRaw>, toolResults: AgenticLoopToolCallResult[]): TConversation;
105
117
  mapFinishReason(rawStopReason: string | undefined, hadToolCalls: boolean): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "11.7.1",
3
+ "version": "11.8.1",
4
4
  "packageManager": "pnpm@10.15.1",
5
5
  "description": "TypeScript AI SDK with 24+ LLM providers behind one consistent API. MCP-native (connect any MCP server), voice TTS/STT/realtime, RAG, agents, memory, context compaction. OpenAI · Anthropic · Gemini · Bedrock · Azure · Ollama · DeepSeek · NVIDIA NIM and more.",
6
6
  "author": {
@@ -212,7 +212,8 @@
212
212
  "test:vector-chroma": "npx tsx test/continuous-test-suite-vector-chroma.ts",
213
213
  "test:vector-pgvector": "npx tsx test/continuous-test-suite-vector-pgvector.ts",
214
214
  "test:vector-pinecone": "npx tsx test/continuous-test-suite-vector-pinecone.ts",
215
- "test:bedrock-loop-characterization": "tsx test/continuous-test-suite-bedrock-loop-characterization.ts"
215
+ "test:bedrock-loop-characterization": "tsx test/continuous-test-suite-bedrock-loop-characterization.ts",
216
+ "test:sagemaker-streaming": "tsx test/continuous-test-suite-sagemaker-streaming.ts"
216
217
  },
217
218
  "files": [
218
219
  "dist",