@athenaintel/react 0.9.23 → 0.10.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/dist/index.cjs +21 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +21 -8
- package/dist/index.js.map +1 -1
- package/package.json +10 -9
package/dist/index.cjs
CHANGED
|
@@ -24353,6 +24353,7 @@ const useAthenaRuntime = (config2) => {
|
|
|
24353
24353
|
workbench = [],
|
|
24354
24354
|
knowledgeBase = [],
|
|
24355
24355
|
systemPrompt,
|
|
24356
|
+
customToolConfigs,
|
|
24356
24357
|
threadId: threadIdProp
|
|
24357
24358
|
} = config2;
|
|
24358
24359
|
const resolvedResumeApiUrl = resumeApiUrl ?? apiUrl.replace(/\/api\/chat$/, "/api/resume");
|
|
@@ -24377,7 +24378,8 @@ const useAthenaRuntime = (config2) => {
|
|
|
24377
24378
|
model,
|
|
24378
24379
|
workbench,
|
|
24379
24380
|
knowledgeBase,
|
|
24380
|
-
systemPrompt
|
|
24381
|
+
systemPrompt,
|
|
24382
|
+
customToolConfigs
|
|
24381
24383
|
});
|
|
24382
24384
|
runConfigRef.current = {
|
|
24383
24385
|
enabledTools,
|
|
@@ -24385,7 +24387,8 @@ const useAthenaRuntime = (config2) => {
|
|
|
24385
24387
|
model,
|
|
24386
24388
|
workbench,
|
|
24387
24389
|
knowledgeBase,
|
|
24388
|
-
systemPrompt
|
|
24390
|
+
systemPrompt,
|
|
24391
|
+
customToolConfigs
|
|
24389
24392
|
};
|
|
24390
24393
|
const isExistingThread = !!threadIdProp;
|
|
24391
24394
|
const runtime = useAssistantTransportRuntime({
|
|
@@ -24495,7 +24498,8 @@ const useAthenaRuntime = (config2) => {
|
|
|
24495
24498
|
plan_mode_enabled: false,
|
|
24496
24499
|
workbench: currentRunConfig.workbench,
|
|
24497
24500
|
knowledge_base: currentRunConfig.knowledgeBase,
|
|
24498
|
-
...currentRunConfig.systemPrompt ? { system_prompt: currentRunConfig.systemPrompt } : {}
|
|
24501
|
+
...currentRunConfig.systemPrompt ? { system_prompt: currentRunConfig.systemPrompt } : {},
|
|
24502
|
+
...currentRunConfig.customToolConfigs ? { custom_tool_configs: currentRunConfig.customToolConfigs } : {}
|
|
24499
24503
|
},
|
|
24500
24504
|
persistToolInvocationLogs: true
|
|
24501
24505
|
};
|
|
@@ -24923,6 +24927,7 @@ function AthenaStandalone({
|
|
|
24923
24927
|
workbench,
|
|
24924
24928
|
knowledgeBase,
|
|
24925
24929
|
systemPrompt,
|
|
24930
|
+
customToolConfigs,
|
|
24926
24931
|
threadId,
|
|
24927
24932
|
linkClicks,
|
|
24928
24933
|
citationLinks
|
|
@@ -24941,6 +24946,7 @@ function AthenaStandalone({
|
|
|
24941
24946
|
workbench,
|
|
24942
24947
|
knowledgeBase,
|
|
24943
24948
|
systemPrompt,
|
|
24949
|
+
customToolConfigs,
|
|
24944
24950
|
threadId
|
|
24945
24951
|
});
|
|
24946
24952
|
const athenaConfig = useAthenaConfigValue({
|
|
@@ -24967,6 +24973,7 @@ function useAthenaRuntimeHook(config2) {
|
|
|
24967
24973
|
workbench: config2.workbench,
|
|
24968
24974
|
knowledgeBase: config2.knowledgeBase,
|
|
24969
24975
|
systemPrompt: config2.systemPrompt,
|
|
24976
|
+
customToolConfigs: config2.customToolConfigs,
|
|
24970
24977
|
threadId: remoteId
|
|
24971
24978
|
});
|
|
24972
24979
|
}
|
|
@@ -24985,6 +24992,7 @@ function AthenaWithThreadList({
|
|
|
24985
24992
|
workbench,
|
|
24986
24993
|
knowledgeBase,
|
|
24987
24994
|
systemPrompt,
|
|
24995
|
+
customToolConfigs,
|
|
24988
24996
|
linkClicks,
|
|
24989
24997
|
citationLinks
|
|
24990
24998
|
}) {
|
|
@@ -25004,7 +25012,8 @@ function AthenaWithThreadList({
|
|
|
25004
25012
|
frontendToolIds,
|
|
25005
25013
|
workbench,
|
|
25006
25014
|
knowledgeBase,
|
|
25007
|
-
systemPrompt
|
|
25015
|
+
systemPrompt,
|
|
25016
|
+
customToolConfigs
|
|
25008
25017
|
});
|
|
25009
25018
|
runtimeConfigRef.current = {
|
|
25010
25019
|
apiUrl,
|
|
@@ -25017,7 +25026,8 @@ function AthenaWithThreadList({
|
|
|
25017
25026
|
frontendToolIds,
|
|
25018
25027
|
workbench,
|
|
25019
25028
|
knowledgeBase,
|
|
25020
|
-
systemPrompt
|
|
25029
|
+
systemPrompt,
|
|
25030
|
+
customToolConfigs
|
|
25021
25031
|
};
|
|
25022
25032
|
const runtimeHook = React.useCallback(
|
|
25023
25033
|
() => useAthenaRuntimeHook(runtimeConfigRef.current),
|
|
@@ -25073,6 +25083,7 @@ function AthenaProvider({
|
|
|
25073
25083
|
workbench,
|
|
25074
25084
|
knowledgeBase,
|
|
25075
25085
|
systemPrompt,
|
|
25086
|
+
customToolConfigs,
|
|
25076
25087
|
threadId: threadIdProp,
|
|
25077
25088
|
enableThreadList = false,
|
|
25078
25089
|
theme,
|
|
@@ -25124,6 +25135,7 @@ function AthenaProvider({
|
|
|
25124
25135
|
workbench,
|
|
25125
25136
|
knowledgeBase,
|
|
25126
25137
|
systemPrompt,
|
|
25138
|
+
customToolConfigs,
|
|
25127
25139
|
linkClicks,
|
|
25128
25140
|
citationLinks,
|
|
25129
25141
|
children
|
|
@@ -25146,6 +25158,7 @@ function AthenaProvider({
|
|
|
25146
25158
|
workbench,
|
|
25147
25159
|
knowledgeBase,
|
|
25148
25160
|
systemPrompt,
|
|
25161
|
+
customToolConfigs,
|
|
25149
25162
|
threadId: threadIdProp,
|
|
25150
25163
|
linkClicks,
|
|
25151
25164
|
citationLinks,
|
|
@@ -64923,9 +64936,9 @@ const DEFAULT_SUGGESTIONS = [
|
|
|
64923
64936
|
prompt: "Search the web for the latest developments in enterprise AI adoption, then create a document summarizing the key trends, market data, and strategic implications."
|
|
64924
64937
|
},
|
|
64925
64938
|
{
|
|
64926
|
-
icon:
|
|
64927
|
-
title: "
|
|
64928
|
-
prompt: "
|
|
64939
|
+
icon: ChartColumn,
|
|
64940
|
+
title: "Analyze data and visualize insights",
|
|
64941
|
+
prompt: "Generate a sample quarterly sales dataset across 4 product categories, then create an interactive chart showing revenue trends and category performance over time."
|
|
64929
64942
|
},
|
|
64930
64943
|
{
|
|
64931
64944
|
icon: Presentation,
|