@assistant-ui/react-ai-sdk 1.3.25 → 1.3.27
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.
- package/dist/frontendTools.d.ts +9 -5
- package/dist/frontendTools.d.ts.map +1 -1
- package/dist/frontendTools.js +36 -35
- package/dist/frontendTools.js.map +1 -1
- package/dist/index.d.ts +9 -11
- package/dist/index.js +9 -10
- package/dist/injectQuoteContext.d.ts +6 -2
- package/dist/injectQuoteContext.d.ts.map +1 -1
- package/dist/injectQuoteContext.js +46 -53
- package/dist/injectQuoteContext.js.map +1 -1
- package/dist/modelContentEnvelope.d.ts +12 -10
- package/dist/modelContentEnvelope.d.ts.map +1 -1
- package/dist/modelContentEnvelope.js +17 -15
- package/dist/modelContentEnvelope.js.map +1 -1
- package/dist/node_modules/.pnpm/@types_json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts +141 -0
- package/dist/node_modules/.pnpm/@types_json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts.map +1 -0
- package/dist/packages/assistant-stream/dist/core/AssistantStream.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/AssistantStreamChunk.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/accumulators/AssistantMessageStream.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/accumulators/assistant-message-accumulator.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/modules/assistant-stream.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/modules/text.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/modules/tool-call.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/serialization/PlainText.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/serialization/assistant-transport/AssistantTransport.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/serialization/data-stream/DataStream.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/serialization/ui-message-stream/UIMessageStream.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/tool/ToolExecutionStream.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/tool/schema-utils.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/tool/schema-utils.js +50 -0
- package/dist/packages/assistant-stream/dist/core/tool/schema-utils.js.map +1 -0
- package/dist/packages/assistant-stream/dist/core/tool/tool-types.d.ts +43 -0
- package/dist/packages/assistant-stream/dist/core/tool/tool-types.d.ts.map +1 -0
- package/dist/packages/assistant-stream/dist/core/tool/toolResultStream.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/utils/stream/AssistantMetaTransformStream.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/utils/stream/AssistantTransformStream.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/core/utils/types.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/index.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/resumable/createResumableAssistantStreamResponse.d.ts +6 -0
- package/dist/packages/assistant-stream/dist/resumable/createResumableAssistantStreamResponse.d.ts.map +1 -0
- package/dist/packages/assistant-stream/dist/resumable/createResumableAssistantStreamResponse.js +6 -0
- package/dist/packages/assistant-stream/dist/resumable/createResumableAssistantStreamResponse.js.map +1 -0
- package/dist/packages/assistant-stream/dist/resumable/index.d.ts +1 -0
- package/dist/packages/assistant-stream/dist/utils/json/json-value.d.ts +10 -0
- package/dist/packages/assistant-stream/dist/utils/json/json-value.d.ts.map +1 -0
- package/dist/packages/assistant-stream/dist/utils.d.ts +1 -0
- package/dist/ui/adapters/aiSDKFormatAdapter.d.ts +8 -4
- package/dist/ui/adapters/aiSDKFormatAdapter.d.ts.map +1 -1
- package/dist/ui/adapters/aiSDKFormatAdapter.js +24 -20
- package/dist/ui/adapters/aiSDKFormatAdapter.js.map +1 -1
- package/dist/ui/getVercelAIMessages.d.ts +7 -3
- package/dist/ui/getVercelAIMessages.d.ts.map +1 -1
- package/dist/ui/getVercelAIMessages.js +7 -3
- package/dist/ui/getVercelAIMessages.js.map +1 -1
- package/dist/ui/resumable.d.ts +18 -15
- package/dist/ui/resumable.d.ts.map +1 -1
- package/dist/ui/resumable.js +21 -20
- package/dist/ui/resumable.js.map +1 -1
- package/dist/ui/use-chat/AssistantChatTransport.d.ts +17 -14
- package/dist/ui/use-chat/AssistantChatTransport.d.ts.map +1 -1
- package/dist/ui/use-chat/AssistantChatTransport.js +98 -108
- package/dist/ui/use-chat/AssistantChatTransport.js.map +1 -1
- package/dist/ui/use-chat/useAISDKRuntime.d.ts +43 -33
- package/dist/ui/use-chat/useAISDKRuntime.d.ts.map +1 -1
- package/dist/ui/use-chat/useAISDKRuntime.js +176 -204
- package/dist/ui/use-chat/useAISDKRuntime.js.map +1 -1
- package/dist/ui/use-chat/useChatRuntime.d.ts +19 -12
- package/dist/ui/use-chat/useChatRuntime.d.ts.map +1 -1
- package/dist/ui/use-chat/useChatRuntime.js +60 -81
- package/dist/ui/use-chat/useChatRuntime.js.map +1 -1
- package/dist/ui/use-chat/useExternalHistory.d.ts +8 -4
- package/dist/ui/use-chat/useExternalHistory.d.ts.map +1 -1
- package/dist/ui/use-chat/useExternalHistory.js +178 -200
- package/dist/ui/use-chat/useExternalHistory.js.map +1 -1
- package/dist/ui/use-chat/useStreamingTiming.d.ts +7 -3
- package/dist/ui/use-chat/useStreamingTiming.d.ts.map +1 -1
- package/dist/ui/use-chat/useStreamingTiming.js +60 -75
- package/dist/ui/use-chat/useStreamingTiming.js.map +1 -1
- package/dist/ui/utils/convertMessage.d.ts +29 -20
- package/dist/ui/utils/convertMessage.d.ts.map +1 -1
- package/dist/ui/utils/convertMessage.js +219 -286
- package/dist/ui/utils/convertMessage.js.map +1 -1
- package/dist/ui/utils/sliceMessagesUntil.d.ts +6 -2
- package/dist/ui/utils/sliceMessagesUntil.d.ts.map +1 -1
- package/dist/ui/utils/sliceMessagesUntil.js +10 -10
- package/dist/ui/utils/sliceMessagesUntil.js.map +1 -1
- package/dist/ui/utils/toCreateMessage.d.ts +7 -3
- package/dist/ui/utils/toCreateMessage.d.ts.map +1 -1
- package/dist/ui/utils/toCreateMessage.js +34 -38
- package/dist/ui/utils/toCreateMessage.js.map +1 -1
- package/dist/ui/utils/vercelAttachmentAdapter.d.ts +6 -2
- package/dist/ui/utils/vercelAttachmentAdapter.d.ts.map +1 -1
- package/dist/ui/utils/vercelAttachmentAdapter.js +37 -35
- package/dist/ui/utils/vercelAttachmentAdapter.js.map +1 -1
- package/dist/usage.d.ts +15 -12
- package/dist/usage.d.ts.map +1 -1
- package/dist/usage.js +80 -99
- package/dist/usage.js.map +1 -1
- package/package.json +12 -11
- package/src/ui/use-chat/useAISDKRuntime.test.ts +2 -2
- package/src/ui/utils/convertMessage.test.ts +28 -0
- package/src/ui/utils/convertMessage.ts +24 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/frontendTools.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { JSONSchema7 } from "./node_modules/.pnpm/@types_json-schema@7.0.15/node_modules/@types/json-schema/index.js";
|
|
2
|
+
import { ToolSet } from "ai";
|
|
3
|
+
|
|
4
|
+
//#region src/frontendTools.d.ts
|
|
5
|
+
declare const frontendTools: (tools: Record<string, {
|
|
6
|
+
description?: string;
|
|
7
|
+
parameters: JSONSchema7;
|
|
6
8
|
}>) => ToolSet;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { frontendTools };
|
|
7
11
|
//# sourceMappingURL=frontendTools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontendTools.d.ts","
|
|
1
|
+
{"version":3,"file":"frontendTools.d.ts","names":[],"sources":["../src/frontendTools.ts"],"mappings":";;;;cAqCa,aAAA,GACX,KAAA,EAAO,MAAA;EAAiB,WAAA;EAAsB,UAAA,EAAY,WAAA;AAAA,OACzD,OAAA"}
|
package/dist/frontendTools.js
CHANGED
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { jsonSchema } from "ai";
|
|
2
1
|
import { unwrapModelContentEnvelope } from "./modelContentEnvelope.js";
|
|
2
|
+
import { jsonSchema } from "ai";
|
|
3
|
+
//#region src/frontendTools.ts
|
|
3
4
|
const toAISDKContent = (parts) => ({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
}),
|
|
5
|
+
type: "content",
|
|
6
|
+
value: parts.map((part) => {
|
|
7
|
+
if (part.type === "text") return {
|
|
8
|
+
type: "text",
|
|
9
|
+
text: part.text
|
|
10
|
+
};
|
|
11
|
+
return part.mediaType.startsWith("image/") ? {
|
|
12
|
+
type: "image-data",
|
|
13
|
+
data: part.data,
|
|
14
|
+
mediaType: part.mediaType
|
|
15
|
+
} : {
|
|
16
|
+
type: "file-data",
|
|
17
|
+
data: part.data,
|
|
18
|
+
mediaType: part.mediaType,
|
|
19
|
+
...part.filename !== void 0 && { filename: part.filename }
|
|
20
|
+
};
|
|
21
|
+
})
|
|
23
22
|
});
|
|
24
23
|
const defaultToModelOutput = ({ output }) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
const { modelContent } = unwrapModelContentEnvelope(output);
|
|
25
|
+
if (modelContent !== void 0) return toAISDKContent(modelContent);
|
|
26
|
+
return typeof output === "string" ? {
|
|
27
|
+
type: "text",
|
|
28
|
+
value: output
|
|
29
|
+
} : {
|
|
30
|
+
type: "json",
|
|
31
|
+
value: output ?? null
|
|
32
|
+
};
|
|
32
33
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
const frontendTools = (tools) => Object.fromEntries(Object.entries(tools).map(([name, t]) => [name, {
|
|
35
|
+
...t.description !== void 0 && { description: t.description },
|
|
36
|
+
inputSchema: jsonSchema(t.parameters),
|
|
37
|
+
toModelOutput: defaultToModelOutput
|
|
38
|
+
}]));
|
|
39
|
+
//#endregion
|
|
40
|
+
export { frontendTools };
|
|
41
|
+
|
|
41
42
|
//# sourceMappingURL=frontendTools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontendTools.js","
|
|
1
|
+
{"version":3,"file":"frontendTools.js","names":[],"sources":["../src/frontendTools.ts"],"sourcesContent":["import { jsonSchema, type ToolSet } from \"ai\";\nimport type { JSONSchema7 } from \"json-schema\";\nimport type { ToolModelContentPart } from \"assistant-stream\";\nimport { unwrapModelContentEnvelope } from \"./modelContentEnvelope\";\n\nconst toAISDKContent = (parts: readonly ToolModelContentPart[]) => ({\n type: \"content\" as const,\n value: parts.map((part) => {\n if (part.type === \"text\") {\n return { type: \"text\" as const, text: part.text };\n }\n const isImage = part.mediaType.startsWith(\"image/\");\n return isImage\n ? {\n type: \"image-data\" as const,\n data: part.data,\n mediaType: part.mediaType,\n }\n : {\n type: \"file-data\" as const,\n data: part.data,\n mediaType: part.mediaType,\n ...(part.filename !== undefined && { filename: part.filename }),\n };\n }),\n});\n\nconst defaultToModelOutput = ({ output }: { output: unknown }) => {\n const { modelContent } = unwrapModelContentEnvelope(output);\n if (modelContent !== undefined) {\n return toAISDKContent(modelContent);\n }\n return typeof output === \"string\"\n ? { type: \"text\" as const, value: output }\n : { type: \"json\" as const, value: (output ?? null) as any };\n};\n\nexport const frontendTools = (\n tools: Record<string, { description?: string; parameters: JSONSchema7 }>,\n): ToolSet =>\n Object.fromEntries(\n Object.entries(tools).map(([name, t]) => [\n name,\n {\n ...(t.description !== undefined && { description: t.description }),\n inputSchema: jsonSchema(t.parameters),\n toModelOutput: defaultToModelOutput,\n },\n ]),\n ) as ToolSet;\n"],"mappings":";;;AAKA,MAAM,kBAAkB,WAA4C;CAClE,MAAM;CACN,OAAO,MAAM,KAAK,SAAS;EACzB,IAAI,KAAK,SAAS,QAChB,OAAO;GAAE,MAAM;GAAiB,MAAM,KAAK;EAAK;EAGlD,OADgB,KAAK,UAAU,WAAW,QAC7B,IACT;GACE,MAAM;GACN,MAAM,KAAK;GACX,WAAW,KAAK;EAClB,IACA;GACE,MAAM;GACN,MAAM,KAAK;GACX,WAAW,KAAK;GAChB,GAAI,KAAK,aAAa,KAAA,KAAa,EAAE,UAAU,KAAK,SAAS;EAC/D;CACN,CAAC;AACH;AAEA,MAAM,wBAAwB,EAAE,aAAkC;CAChE,MAAM,EAAE,iBAAiB,2BAA2B,MAAM;CAC1D,IAAI,iBAAiB,KAAA,GACnB,OAAO,eAAe,YAAY;CAEpC,OAAO,OAAO,WAAW,WACrB;EAAE,MAAM;EAAiB,OAAO;CAAO,IACvC;EAAE,MAAM;EAAiB,OAAQ,UAAU;CAAa;AAC9D;AAEA,MAAa,iBACX,UAEA,OAAO,YACL,OAAO,QAAQ,KAAK,EAAE,KAAK,CAAC,MAAM,OAAO,CACvC,MACA;CACE,GAAI,EAAE,gBAAgB,KAAA,KAAa,EAAE,aAAa,EAAE,YAAY;CAChE,aAAa,WAAW,EAAE,UAAU;CACpC,eAAe;AACjB,CACF,CAAC,CACH"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/// <reference types="@assistant-ui/core/store" />
|
|
2
2
|
/// <reference types="@assistant-ui/core/react" />
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export type
|
|
12
|
-
export { getThreadMessageTokenUsage, useThreadTokenUsage } from "./usage.js";
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
3
|
+
import { frontendTools } from "./frontendTools.js";
|
|
4
|
+
import { useAISDKRuntime } from "./ui/use-chat/useAISDKRuntime.js";
|
|
5
|
+
import { UseChatRuntimeOptions, useChatRuntime } from "./ui/use-chat/useChatRuntime.js";
|
|
6
|
+
import { RESUMABLE_STREAM_ID_HEADER } from "./packages/assistant-stream/dist/resumable/createResumableAssistantStreamResponse.js";
|
|
7
|
+
import { AssistantChatResumableOptions, ResumableClientStorage, createResumableSessionStorage } from "./ui/resumable.js";
|
|
8
|
+
import { AssistantChatTransport } from "./ui/use-chat/AssistantChatTransport.js";
|
|
9
|
+
import { injectQuoteContext } from "./injectQuoteContext.js";
|
|
10
|
+
import { ThreadTokenUsage, TokenUsageExtractableMessage, getThreadMessageTokenUsage, useThreadTokenUsage } from "./usage.js";
|
|
11
|
+
export { type AssistantChatResumableOptions, AssistantChatTransport, RESUMABLE_STREAM_ID_HEADER, type ResumableClientStorage, type ThreadTokenUsage, type TokenUsageExtractableMessage, type UseChatRuntimeOptions, createResumableSessionStorage, frontendTools, getThreadMessageTokenUsage, injectQuoteContext, useAISDKRuntime, useChatRuntime, useThreadTokenUsage };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { getThreadMessageTokenUsage, useThreadTokenUsage }
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { frontendTools } from "./frontendTools.js";
|
|
2
|
+
import { useAISDKRuntime } from "./ui/use-chat/useAISDKRuntime.js";
|
|
3
|
+
import { RESUMABLE_STREAM_ID_HEADER } from "./packages/assistant-stream/dist/resumable/createResumableAssistantStreamResponse.js";
|
|
4
|
+
import { createResumableSessionStorage } from "./ui/resumable.js";
|
|
5
|
+
import { AssistantChatTransport } from "./ui/use-chat/AssistantChatTransport.js";
|
|
6
|
+
import { useChatRuntime } from "./ui/use-chat/useChatRuntime.js";
|
|
7
|
+
import { injectQuoteContext } from "./injectQuoteContext.js";
|
|
8
|
+
import { getThreadMessageTokenUsage, useThreadTokenUsage } from "./usage.js";
|
|
9
|
+
export { AssistantChatTransport, RESUMABLE_STREAM_ID_HEADER, createResumableSessionStorage, frontendTools, getThreadMessageTokenUsage, injectQuoteContext, useAISDKRuntime, useChatRuntime, useThreadTokenUsage };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { UIMessage } from "ai";
|
|
2
|
+
|
|
3
|
+
//#region src/injectQuoteContext.d.ts
|
|
2
4
|
/**
|
|
3
5
|
* Injects quote context into messages as markdown blockquotes.
|
|
4
6
|
*
|
|
@@ -20,5 +22,7 @@ import type { UIMessage } from "ai";
|
|
|
20
22
|
* }
|
|
21
23
|
* ```
|
|
22
24
|
*/
|
|
23
|
-
|
|
25
|
+
declare function injectQuoteContext(messages: UIMessage[]): UIMessage[];
|
|
26
|
+
//#endregion
|
|
27
|
+
export { injectQuoteContext };
|
|
24
28
|
//# sourceMappingURL=injectQuoteContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injectQuoteContext.d.ts","
|
|
1
|
+
{"version":3,"file":"injectQuoteContext.d.ts","names":[],"sources":["../src/injectQuoteContext.ts"],"mappings":";;;;;AAoCA;;;;;;;;AAAoE;;;;;;;;;;;iBAApD,kBAAA,CAAmB,QAAA,EAAU,SAAA,KAAc,SAAS"}
|
|
@@ -1,58 +1,51 @@
|
|
|
1
|
+
//#region src/injectQuoteContext.ts
|
|
1
2
|
const getQuoteText = (metadata) => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return undefined;
|
|
10
|
-
const text = quote.text;
|
|
11
|
-
return typeof text === "string" ? text : undefined;
|
|
3
|
+
if (!metadata || typeof metadata !== "object") return void 0;
|
|
4
|
+
const custom = metadata.custom;
|
|
5
|
+
if (!custom || typeof custom !== "object") return void 0;
|
|
6
|
+
const quote = custom.quote;
|
|
7
|
+
if (!quote || typeof quote !== "object") return void 0;
|
|
8
|
+
const text = quote.text;
|
|
9
|
+
return typeof text === "string" ? text : void 0;
|
|
12
10
|
};
|
|
13
11
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return {
|
|
50
|
-
...msg,
|
|
51
|
-
parts: [
|
|
52
|
-
{ type: "text", text: `${blockquote}\n\n` },
|
|
53
|
-
...(msg.parts ?? []),
|
|
54
|
-
],
|
|
55
|
-
};
|
|
56
|
-
});
|
|
12
|
+
* Injects quote context into messages as markdown blockquotes.
|
|
13
|
+
*
|
|
14
|
+
* Use this in your route handler before `convertToModelMessages` so the LLM
|
|
15
|
+
* sees the quoted text that the user is referring to.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { convertToModelMessages, streamText } from "ai";
|
|
20
|
+
* import { injectQuoteContext } from "@assistant-ui/react-ai-sdk";
|
|
21
|
+
*
|
|
22
|
+
* export async function POST(req: Request) {
|
|
23
|
+
* const { messages } = await req.json();
|
|
24
|
+
* const result = streamText({
|
|
25
|
+
* model: myModel,
|
|
26
|
+
* messages: await convertToModelMessages(injectQuoteContext(messages)),
|
|
27
|
+
* });
|
|
28
|
+
* return result.toUIMessageStreamResponse();
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
function injectQuoteContext(messages) {
|
|
33
|
+
return messages.map((msg) => {
|
|
34
|
+
if (msg.role !== "user") return msg;
|
|
35
|
+
const text = getQuoteText(msg.metadata);
|
|
36
|
+
if (!text) return msg;
|
|
37
|
+
const blockquote = text.split(/\r?\n/).map((line) => `> ${line}`).join("\n");
|
|
38
|
+
if (msg.parts[0]?.type === "text" && msg.parts[0].text === `${blockquote}\n\n`) return msg;
|
|
39
|
+
return {
|
|
40
|
+
...msg,
|
|
41
|
+
parts: [{
|
|
42
|
+
type: "text",
|
|
43
|
+
text: `${blockquote}\n\n`
|
|
44
|
+
}, ...msg.parts ?? []]
|
|
45
|
+
};
|
|
46
|
+
});
|
|
57
47
|
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { injectQuoteContext };
|
|
50
|
+
|
|
58
51
|
//# sourceMappingURL=injectQuoteContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"injectQuoteContext.js","
|
|
1
|
+
{"version":3,"file":"injectQuoteContext.js","names":[],"sources":["../src/injectQuoteContext.ts"],"sourcesContent":["import type { UIMessage } from \"ai\";\n\nconst getQuoteText = (metadata: unknown): string | undefined => {\n if (!metadata || typeof metadata !== \"object\") return undefined;\n\n const custom = (metadata as Record<string, unknown>).custom;\n if (!custom || typeof custom !== \"object\") return undefined;\n\n const quote = (custom as Record<string, unknown>).quote;\n if (!quote || typeof quote !== \"object\") return undefined;\n\n const text = (quote as Record<string, unknown>).text;\n return typeof text === \"string\" ? text : undefined;\n};\n\n/**\n * Injects quote context into messages as markdown blockquotes.\n *\n * Use this in your route handler before `convertToModelMessages` so the LLM\n * sees the quoted text that the user is referring to.\n *\n * @example\n * ```ts\n * import { convertToModelMessages, streamText } from \"ai\";\n * import { injectQuoteContext } from \"@assistant-ui/react-ai-sdk\";\n *\n * export async function POST(req: Request) {\n * const { messages } = await req.json();\n * const result = streamText({\n * model: myModel,\n * messages: await convertToModelMessages(injectQuoteContext(messages)),\n * });\n * return result.toUIMessageStreamResponse();\n * }\n * ```\n */\nexport function injectQuoteContext(messages: UIMessage[]): UIMessage[] {\n return messages.map((msg) => {\n if (msg.role !== \"user\") return msg;\n\n const text = getQuoteText(msg.metadata);\n if (!text) return msg;\n\n const blockquote = text\n .split(/\\r?\\n/)\n .map((line) => `> ${line}`)\n .join(\"\\n\");\n\n const alreadyInjected =\n msg.parts[0]?.type === \"text\" &&\n msg.parts[0].text === `${blockquote}\\n\\n`;\n if (alreadyInjected) return msg;\n\n return {\n ...msg,\n parts: [\n { type: \"text\" as const, text: `${blockquote}\\n\\n` },\n ...(msg.parts ?? []),\n ],\n };\n });\n}\n"],"mappings":";AAEA,MAAM,gBAAgB,aAA0C;CAC9D,IAAI,CAAC,YAAY,OAAO,aAAa,UAAU,OAAO,KAAA;CAEtD,MAAM,SAAU,SAAqC;CACrD,IAAI,CAAC,UAAU,OAAO,WAAW,UAAU,OAAO,KAAA;CAElD,MAAM,QAAS,OAAmC;CAClD,IAAI,CAAC,SAAS,OAAO,UAAU,UAAU,OAAO,KAAA;CAEhD,MAAM,OAAQ,MAAkC;CAChD,OAAO,OAAO,SAAS,WAAW,OAAO,KAAA;AAC3C;;;;;;;;;;;;;;;;;;;;;;AAuBA,SAAgB,mBAAmB,UAAoC;CACrE,OAAO,SAAS,KAAK,QAAQ;EAC3B,IAAI,IAAI,SAAS,QAAQ,OAAO;EAEhC,MAAM,OAAO,aAAa,IAAI,QAAQ;EACtC,IAAI,CAAC,MAAM,OAAO;EAElB,MAAM,aAAa,KAChB,MAAM,OAAO,EACb,KAAK,SAAS,KAAK,MAAM,EACzB,KAAK,IAAI;EAKZ,IAFE,IAAI,MAAM,IAAI,SAAS,UACvB,IAAI,MAAM,GAAG,SAAS,GAAG,WAAW,OACjB,OAAO;EAE5B,OAAO;GACL,GAAG;GACH,OAAO,CACL;IAAE,MAAM;IAAiB,MAAM,GAAG,WAAW;GAAM,GACnD,GAAI,IAAI,SAAS,CAAC,CACpB;EACF;CACF,CAAC;AACH"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ToolModelContentPart } from "./packages/assistant-stream/dist/core/tool/tool-types.js";
|
|
2
|
+
//#region src/modelContentEnvelope.d.ts
|
|
2
3
|
declare const ENVELOPE_KEY = "__aui_modelContent";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type ModelContentEnvelope<TResult = unknown> = {
|
|
5
|
+
readonly [ENVELOPE_KEY]: readonly ToolModelContentPart[];
|
|
6
|
+
readonly value: TResult;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
declare function isModelContentEnvelope(value: unknown): value is ModelContentEnvelope;
|
|
9
|
+
declare function wrapModelContentEnvelope<TResult>(result: TResult, modelContent: readonly ToolModelContentPart[]): ModelContentEnvelope<TResult>;
|
|
10
|
+
declare function unwrapModelContentEnvelope(output: unknown): {
|
|
11
|
+
result: unknown;
|
|
12
|
+
modelContent?: readonly ToolModelContentPart[];
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ModelContentEnvelope, isModelContentEnvelope, unwrapModelContentEnvelope, wrapModelContentEnvelope };
|
|
14
16
|
//# sourceMappingURL=modelContentEnvelope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelContentEnvelope.d.ts","
|
|
1
|
+
{"version":3,"file":"modelContentEnvelope.d.ts","names":[],"sources":["../src/modelContentEnvelope.ts"],"mappings":";;cAEM,YAAA;AAAA,KAEM,oBAAA;EAAA,UACA,YAAA,YAAwB,oBAAA;EAAA,SACzB,KAAA,EAAO,OAAA;AAAA;AAAA,iBAGF,sBAAA,CACd,KAAA,YACC,KAAA,IAAS,oBAAoB;AAAA,iBAShB,wBAAA,SAAA,CACd,MAAA,EAAQ,OAAA,EACR,YAAA,WAAuB,oBAAA,KACtB,oBAAA,CAAqB,OAAA;AAAA,iBAIR,0BAAA,CAA2B,MAAA;EACzC,MAAA;EACA,YAAA,YAAwB,oBAAoB;AAAA"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
+
//#region src/modelContentEnvelope.ts
|
|
1
2
|
const ENVELOPE_KEY = "__aui_modelContent";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
typeof value === "object" &&
|
|
5
|
-
ENVELOPE_KEY in value &&
|
|
6
|
-
Array.isArray(value[ENVELOPE_KEY]));
|
|
3
|
+
function isModelContentEnvelope(value) {
|
|
4
|
+
return value != null && typeof value === "object" && ENVELOPE_KEY in value && Array.isArray(value[ENVELOPE_KEY]);
|
|
7
5
|
}
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
function wrapModelContentEnvelope(result, modelContent) {
|
|
7
|
+
return {
|
|
8
|
+
[ENVELOPE_KEY]: modelContent,
|
|
9
|
+
value: result
|
|
10
|
+
};
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
return { result: output };
|
|
12
|
+
function unwrapModelContentEnvelope(output) {
|
|
13
|
+
if (isModelContentEnvelope(output)) return {
|
|
14
|
+
result: output.value,
|
|
15
|
+
modelContent: output[ENVELOPE_KEY]
|
|
16
|
+
};
|
|
17
|
+
return { result: output };
|
|
19
18
|
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { isModelContentEnvelope, unwrapModelContentEnvelope, wrapModelContentEnvelope };
|
|
21
|
+
|
|
20
22
|
//# sourceMappingURL=modelContentEnvelope.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelContentEnvelope.js","
|
|
1
|
+
{"version":3,"file":"modelContentEnvelope.js","names":[],"sources":["../src/modelContentEnvelope.ts"],"sourcesContent":["import type { ToolModelContentPart } from \"assistant-stream\";\n\nconst ENVELOPE_KEY = \"__aui_modelContent\";\n\nexport type ModelContentEnvelope<TResult = unknown> = {\n readonly [ENVELOPE_KEY]: readonly ToolModelContentPart[];\n readonly value: TResult;\n};\n\nexport function isModelContentEnvelope(\n value: unknown,\n): value is ModelContentEnvelope {\n return (\n value != null &&\n typeof value === \"object\" &&\n ENVELOPE_KEY in value &&\n Array.isArray((value as Record<string, unknown>)[ENVELOPE_KEY])\n );\n}\n\nexport function wrapModelContentEnvelope<TResult>(\n result: TResult,\n modelContent: readonly ToolModelContentPart[],\n): ModelContentEnvelope<TResult> {\n return { [ENVELOPE_KEY]: modelContent, value: result };\n}\n\nexport function unwrapModelContentEnvelope(output: unknown): {\n result: unknown;\n modelContent?: readonly ToolModelContentPart[];\n} {\n if (isModelContentEnvelope(output)) {\n return {\n result: output.value,\n modelContent: output[ENVELOPE_KEY],\n };\n }\n return { result: output };\n}\n"],"mappings":";AAEA,MAAM,eAAe;AAOrB,SAAgB,uBACd,OAC+B;CAC/B,OACE,SAAS,QACT,OAAO,UAAU,YACjB,gBAAgB,SAChB,MAAM,QAAS,MAAkC,aAAa;AAElE;AAEA,SAAgB,yBACd,QACA,cAC+B;CAC/B,OAAO;GAAG,eAAe;EAAc,OAAO;CAAO;AACvD;AAEA,SAAgB,2BAA2B,QAGzC;CACA,IAAI,uBAAuB,MAAM,GAC/B,OAAO;EACL,QAAQ,OAAO;EACf,cAAc,OAAO;CACvB;CAEF,OAAO,EAAE,QAAQ,OAAO;AAC1B"}
|
package/dist/node_modules/.pnpm/@types_json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
|
|
2
|
+
// ==================================================================================================
|
|
3
|
+
// JSON Schema Draft 07
|
|
4
|
+
// ==================================================================================================
|
|
5
|
+
// https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
6
|
+
// --------------------------------------------------------------------------------------------------
|
|
7
|
+
/**
|
|
8
|
+
* Primitive type
|
|
9
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
10
|
+
*/
|
|
11
|
+
type JSONSchema7TypeName = "string" //
|
|
12
|
+
| "number" | "integer" | "boolean" | "object" | "array" | "null";
|
|
13
|
+
/**
|
|
14
|
+
* Primitive type
|
|
15
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
16
|
+
*/
|
|
17
|
+
type JSONSchema7Type = string //
|
|
18
|
+
| number | boolean | JSONSchema7Object | JSONSchema7Array | null;
|
|
19
|
+
// Workaround for infinite type recursion
|
|
20
|
+
interface JSONSchema7Object {
|
|
21
|
+
[key: string]: JSONSchema7Type;
|
|
22
|
+
}
|
|
23
|
+
// Workaround for infinite type recursion
|
|
24
|
+
// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540
|
|
25
|
+
interface JSONSchema7Array extends Array<JSONSchema7Type> {}
|
|
26
|
+
/**
|
|
27
|
+
* Meta schema
|
|
28
|
+
*
|
|
29
|
+
* Recommended values:
|
|
30
|
+
* - 'http://json-schema.org/schema#'
|
|
31
|
+
* - 'http://json-schema.org/hyper-schema#'
|
|
32
|
+
* - 'http://json-schema.org/draft-07/schema#'
|
|
33
|
+
* - 'http://json-schema.org/draft-07/hyper-schema#'
|
|
34
|
+
*
|
|
35
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
|
|
36
|
+
*/
|
|
37
|
+
type JSONSchema7Version = string;
|
|
38
|
+
/**
|
|
39
|
+
* JSON Schema v7
|
|
40
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
41
|
+
*/
|
|
42
|
+
type JSONSchema7Definition = JSONSchema7 | boolean;
|
|
43
|
+
interface JSONSchema7 {
|
|
44
|
+
$id?: string | undefined;
|
|
45
|
+
$ref?: string | undefined;
|
|
46
|
+
$schema?: JSONSchema7Version | undefined;
|
|
47
|
+
$comment?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
|
|
50
|
+
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
|
|
51
|
+
*/
|
|
52
|
+
$defs?: {
|
|
53
|
+
[key: string]: JSONSchema7Definition;
|
|
54
|
+
} | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
|
|
57
|
+
*/
|
|
58
|
+
type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
|
|
59
|
+
enum?: JSONSchema7Type[] | undefined;
|
|
60
|
+
const?: JSONSchema7Type | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
|
|
63
|
+
*/
|
|
64
|
+
multipleOf?: number | undefined;
|
|
65
|
+
maximum?: number | undefined;
|
|
66
|
+
exclusiveMaximum?: number | undefined;
|
|
67
|
+
minimum?: number | undefined;
|
|
68
|
+
exclusiveMinimum?: number | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
|
|
71
|
+
*/
|
|
72
|
+
maxLength?: number | undefined;
|
|
73
|
+
minLength?: number | undefined;
|
|
74
|
+
pattern?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
|
|
77
|
+
*/
|
|
78
|
+
items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined;
|
|
79
|
+
additionalItems?: JSONSchema7Definition | undefined;
|
|
80
|
+
maxItems?: number | undefined;
|
|
81
|
+
minItems?: number | undefined;
|
|
82
|
+
uniqueItems?: boolean | undefined;
|
|
83
|
+
contains?: JSONSchema7Definition | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
|
|
86
|
+
*/
|
|
87
|
+
maxProperties?: number | undefined;
|
|
88
|
+
minProperties?: number | undefined;
|
|
89
|
+
required?: string[] | undefined;
|
|
90
|
+
properties?: {
|
|
91
|
+
[key: string]: JSONSchema7Definition;
|
|
92
|
+
} | undefined;
|
|
93
|
+
patternProperties?: {
|
|
94
|
+
[key: string]: JSONSchema7Definition;
|
|
95
|
+
} | undefined;
|
|
96
|
+
additionalProperties?: JSONSchema7Definition | undefined;
|
|
97
|
+
dependencies?: {
|
|
98
|
+
[key: string]: JSONSchema7Definition | string[];
|
|
99
|
+
} | undefined;
|
|
100
|
+
propertyNames?: JSONSchema7Definition | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
103
|
+
*/
|
|
104
|
+
if?: JSONSchema7Definition | undefined;
|
|
105
|
+
then?: JSONSchema7Definition | undefined;
|
|
106
|
+
else?: JSONSchema7Definition | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
|
|
109
|
+
*/
|
|
110
|
+
allOf?: JSONSchema7Definition[] | undefined;
|
|
111
|
+
anyOf?: JSONSchema7Definition[] | undefined;
|
|
112
|
+
oneOf?: JSONSchema7Definition[] | undefined;
|
|
113
|
+
not?: JSONSchema7Definition | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
|
|
116
|
+
*/
|
|
117
|
+
format?: string | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
|
|
120
|
+
*/
|
|
121
|
+
contentMediaType?: string | undefined;
|
|
122
|
+
contentEncoding?: string | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
|
|
125
|
+
*/
|
|
126
|
+
definitions?: {
|
|
127
|
+
[key: string]: JSONSchema7Definition;
|
|
128
|
+
} | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
|
|
131
|
+
*/
|
|
132
|
+
title?: string | undefined;
|
|
133
|
+
description?: string | undefined;
|
|
134
|
+
default?: JSONSchema7Type | undefined;
|
|
135
|
+
readOnly?: boolean | undefined;
|
|
136
|
+
writeOnly?: boolean | undefined;
|
|
137
|
+
examples?: JSONSchema7Type | undefined;
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
export { JSONSchema7 };
|
|
141
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["JSONSchema4TypeName","JSONSchema4Type","JSONSchema4Object","JSONSchema4Array","key","Array","JSONSchema4Version","JSONSchema4","id","$ref","$schema","title","description","default","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","items","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","definitions","k","properties","patternProperties","dependencies","enum","type","allOf","anyOf","oneOf","not","extends","format","JSONSchema6TypeName","JSONSchema6Type","JSONSchema6Object","JSONSchema6Array","JSONSchema6Version","JSONSchema6Definition","JSONSchema6","$id","contains","propertyNames","const","examples","JSONSchema7TypeName","JSONSchema7Type","JSONSchema7Object","JSONSchema7Array","JSONSchema7Version","JSONSchema7Definition","JSONSchema7","$comment","$defs","if","then","else","contentMediaType","contentEncoding","readOnly","writeOnly","ValidationResult","ValidationError","valid","errors","property","message","validate","instance","schema","checkPropertyChange","value","mustBeValid","result"],"sources":["../../../../../../../../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;KA+iBYwD,mBAAAA;AAAAA;;;;;KAaAC,eAAAA;AAAAA,qBAINC,iBAAAA,GACAC,gBAAgB;AAAA;AAAA,UAILD,iBAAAA;EAAAA,CACZtD,GAAAA,WAAcqD,eAAe;AAAA;AAAA;AAAA;AAAA,UAKjBE,gBAAAA,SAAyBtD,KAAK,CAACoD,eAAAA;;;;;;;;;;;;KAapCG,kBAAAA;;;;;KAMAC,qBAAAA,GAAwBC,WAAW;AAAA,UAC9BA,WAAAA;EACbX,GAAAA;EACA1C,IAAAA;EACAC,OAAAA,GAAUkD,kBAAAA;EACVG,QAAAA;;;;;EAMAC,KAAAA;IAAAA,CACK5D,GAAAA,WAAcyD,qBAAAA;EAAAA;;;;EAMnBxB,IAAAA,GAAOmB,mBAAAA,GAAsBA,mBAAAA;EAC7BpB,IAAAA,GAAOqB,eAAAA;EACPH,KAAAA,GAAQG,eAAAA;;;;EAKR3C,UAAAA;EACAC,OAAAA;EACAC,gBAAAA;EACAC,OAAAA;EACAC,gBAAAA;;;;EAKAC,SAAAA;EACAC,SAAAA;EACAC,OAAAA;;;;EAKAE,KAAAA,GAAQsC,qBAAAA,GAAwBA,qBAAAA;EAChCvC,eAAAA,GAAkBuC,qBAAAA;EAClBrC,QAAAA;EACAC,QAAAA;EACAC,WAAAA;EACA0B,QAAAA,GAAWS,qBAAAA;;;;EAKXlC,aAAAA;EACAC,aAAAA;EACAC,QAAAA;EACAI,UAAAA;IAAAA,CACK7B,GAAAA,WAAcyD,qBAAAA;EAAAA;EAEnB3B,iBAAAA;IAAAA,CACK9B,GAAAA,WAAcyD,qBAAAA;EAAAA;EAEnB/B,oBAAAA,GAAuB+B,qBAAAA;EACvB1B,YAAAA;IAAAA,CACK/B,GAAAA,WAAcyD,qBAAAA;EAAAA;EAEnBR,aAAAA,GAAgBQ,qBAAAA;;;;EAKhBI,EAAAA,GAAKJ,qBAAAA;EACLK,IAAAA,GAAOL,qBAAAA;EACPM,IAAAA,GAAON,qBAAAA;;;;EAKPvB,KAAAA,GAAQuB,qBAAAA;EACRtB,KAAAA,GAAQsB,qBAAAA;EACRrB,KAAAA,GAAQqB,qBAAAA;EACRpB,GAAAA,GAAMoB,qBAAAA;;;;EAKNlB,MAAAA;;;;EAKAyB,gBAAAA;EACAC,eAAAA;;;;EAKAtC,WAAAA;IAAAA,CACK3B,GAAAA,WAAcyD,qBAAAA;EAAAA;;;;EAMnBlD,KAAAA;EACAC,WAAAA;EACAC,OAAAA,GAAU4C,eAAAA;EACVa,QAAAA;EACAC,SAAAA;EACAhB,QAAAA,GAAWE,eAAAA;AAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/packages/assistant-stream/dist/core/accumulators/assistant-message-accumulator.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|