@aigentyc/chat-sdk 0.5.5 → 0.7.0
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/context7.json +1 -1
- package/dist/{ChatInterface-Bo0dU48x.d.cts → ChatInterface-CJwumV6Z.d.cts} +1 -1
- package/dist/{ChatInterface-D5tY6WT1.d.ts → ChatInterface-jIlVCXyV.d.ts} +1 -1
- package/dist/{SlotsContext-hUp2jze9.d.ts → SlotsContext-BFyBOPC2.d.ts} +1 -1
- package/dist/{SlotsContext-p_bTEjGT.d.cts → SlotsContext-CvGHgMRZ.d.cts} +1 -1
- package/dist/ai-elements.cjs +2 -2
- package/dist/ai-elements.cjs.map +1 -1
- package/dist/ai-elements.js +2 -2
- package/dist/ai-elements.js.map +1 -1
- package/dist/{chunk-G63CLUHC.js → chunk-2HJZDMY2.js} +134 -9
- package/dist/chunk-2HJZDMY2.js.map +1 -0
- package/dist/{chunk-ZPOCKCBF.js → chunk-4DC55YI3.js} +3 -3
- package/dist/{chunk-ZPOCKCBF.js.map → chunk-4DC55YI3.js.map} +1 -1
- package/dist/{chunk-7TMQBROA.js → chunk-7N5ELRVH.js} +4 -4
- package/dist/{chunk-7TMQBROA.js.map → chunk-7N5ELRVH.js.map} +1 -1
- package/dist/{chunk-AQTN4QLR.cjs → chunk-MN7RYGXK.cjs} +6 -6
- package/dist/{chunk-AQTN4QLR.cjs.map → chunk-MN7RYGXK.cjs.map} +1 -1
- package/dist/{chunk-7MHR4BSJ.cjs → chunk-SOU2OES4.cjs} +21 -21
- package/dist/{chunk-7MHR4BSJ.cjs.map → chunk-SOU2OES4.cjs.map} +1 -1
- package/dist/{chunk-JJRLHXHZ.cjs → chunk-XV7N7UXF.cjs} +133 -8
- package/dist/chunk-XV7N7UXF.cjs.map +1 -0
- package/dist/components.cjs +15 -15
- package/dist/components.d.cts +3 -3
- package/dist/components.d.ts +3 -3
- package/dist/components.js +4 -4
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/hooks.cjs +4 -4
- package/dist/hooks.d.cts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +1 -1
- package/dist/i18n.d.cts +1 -1
- package/dist/i18n.d.ts +1 -1
- package/dist/index.cjs +25 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +9 -9
- package/dist/styles.css +1 -1
- package/dist/theme.d.cts +1 -1
- package/dist/theme.d.ts +1 -1
- package/dist/tools.cjs +5 -5
- package/dist/tools.d.cts +2 -2
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +2 -2
- package/dist/{types-DRa1zFlN.d.ts → types-BxvFxOg1.d.cts} +9 -0
- package/dist/{types-DRa1zFlN.d.cts → types-BxvFxOg1.d.ts} +9 -0
- package/package.json +5 -5
- package/dist/chunk-G63CLUHC.js.map +0 -1
- package/dist/chunk-JJRLHXHZ.cjs.map +0 -1
package/context7.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RefObject, ComponentType } from 'react';
|
|
3
|
-
import { h as LiveChatState, g as LiveChatMessage, b as ChatProviderProps, f as ChatMessage, c as ChatAttachmentInput, d as ChatConfig, e as ChatEventCallbacks } from './types-
|
|
3
|
+
import { h as LiveChatState, g as LiveChatMessage, b as ChatProviderProps, f as ChatMessage, c as ChatAttachmentInput, d as ChatConfig, e as ChatEventCallbacks } from './types-BxvFxOg1.js';
|
|
4
4
|
|
|
5
5
|
type ChatStatus$1 = "idle" | "streaming" | "error";
|
|
6
6
|
interface ActiveTool$1 {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RefObject, ComponentType } from 'react';
|
|
3
|
-
import { h as LiveChatState, g as LiveChatMessage, b as ChatProviderProps, f as ChatMessage, c as ChatAttachmentInput, d as ChatConfig, e as ChatEventCallbacks } from './types-
|
|
3
|
+
import { h as LiveChatState, g as LiveChatMessage, b as ChatProviderProps, f as ChatMessage, c as ChatAttachmentInput, d as ChatConfig, e as ChatEventCallbacks } from './types-BxvFxOg1.cjs';
|
|
4
4
|
|
|
5
5
|
type ChatStatus$1 = "idle" | "streaming" | "error";
|
|
6
6
|
interface ActiveTool$1 {
|
package/dist/ai-elements.cjs
CHANGED
|
@@ -1424,7 +1424,7 @@ var ContextReasoningUsage = ({
|
|
|
1424
1424
|
...props
|
|
1425
1425
|
}) => {
|
|
1426
1426
|
const { usage, modelId } = useContextValue();
|
|
1427
|
-
const reasoningTokens = usage?.reasoningTokens ?? 0;
|
|
1427
|
+
const reasoningTokens = usage?.outputTokenDetails?.reasoningTokens ?? 0;
|
|
1428
1428
|
if (children) {
|
|
1429
1429
|
return children;
|
|
1430
1430
|
}
|
|
@@ -1457,7 +1457,7 @@ var ContextCacheUsage = ({
|
|
|
1457
1457
|
...props
|
|
1458
1458
|
}) => {
|
|
1459
1459
|
const { usage, modelId } = useContextValue();
|
|
1460
|
-
const cacheTokens = usage?.
|
|
1460
|
+
const cacheTokens = usage?.inputTokenDetails?.cacheReadTokens ?? 0;
|
|
1461
1461
|
if (children) {
|
|
1462
1462
|
return children;
|
|
1463
1463
|
}
|