@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.d.ts CHANGED
@@ -245,7 +245,7 @@ export declare interface AthenaOrg {
245
245
  urlSafeOrgName: string;
246
246
  }
247
247
 
248
- export declare function AthenaProvider({ children, config, apiKey, token: tokenProp, agent, model, tools, frontendTools, apiUrl, backendUrl, appUrl, environment, workbench, knowledgeBase, systemPrompt, threadId: threadIdProp, enableThreadList, theme, linkClicks, citationLinks, posthog: posthogProp, }: AthenaProviderProps): ReactElement<unknown, string | JSXElementConstructor<any>> | null;
248
+ export declare function AthenaProvider({ children, config, apiKey, token: tokenProp, agent, model, tools, frontendTools, apiUrl, backendUrl, appUrl, environment, workbench, knowledgeBase, systemPrompt, customToolConfigs, threadId: threadIdProp, enableThreadList, theme, linkClicks, citationLinks, posthog: posthogProp, }: AthenaProviderProps): ReactElement<unknown, string | JSXElementConstructor<any>> | null;
249
249
 
250
250
  export declare interface AthenaProviderConfig {
251
251
  /** API key for standalone authentication when no token is provided. */
@@ -297,6 +297,19 @@ export declare interface AthenaProviderProps {
297
297
  knowledgeBase?: string[];
298
298
  /** System prompt override. */
299
299
  systemPrompt?: string;
300
+ /** Custom tool configurations (e.g. MCP servers).
301
+ * Passed through as `custom_tool_configs` in runConfig.custom.
302
+ *
303
+ * @example
304
+ * <AthenaProvider customToolConfigs={{
305
+ * mcp: {
306
+ * "my-server": {
307
+ * config: { transport: "streamable_http", url: "https://..." },
308
+ * }
309
+ * }
310
+ * }}>
311
+ */
312
+ customToolConfigs?: Record<string, unknown>;
300
313
  /** Thread ID override. Auto-generated if not provided. */
301
314
  threadId?: string;
302
315
  /** Enable thread list management (sidebar thread switching). */
@@ -355,6 +368,8 @@ export declare interface AthenaRuntimeConfig {
355
368
  knowledgeBase?: string[];
356
369
  /** System prompt override. */
357
370
  systemPrompt?: string;
371
+ /** Custom tool configurations (e.g. MCP servers). Passed as custom_tool_configs in runConfig. */
372
+ customToolConfigs?: Record<string, unknown>;
358
373
  /** Thread ID override. Auto-generated if not provided. */
359
374
  threadId?: string;
360
375
  }
package/dist/index.js CHANGED
@@ -24314,6 +24314,7 @@ const useAthenaRuntime = (config2) => {
24314
24314
  workbench = [],
24315
24315
  knowledgeBase = [],
24316
24316
  systemPrompt,
24317
+ customToolConfigs,
24317
24318
  threadId: threadIdProp
24318
24319
  } = config2;
24319
24320
  const resolvedResumeApiUrl = resumeApiUrl ?? apiUrl.replace(/\/api\/chat$/, "/api/resume");
@@ -24338,7 +24339,8 @@ const useAthenaRuntime = (config2) => {
24338
24339
  model,
24339
24340
  workbench,
24340
24341
  knowledgeBase,
24341
- systemPrompt
24342
+ systemPrompt,
24343
+ customToolConfigs
24342
24344
  });
24343
24345
  runConfigRef.current = {
24344
24346
  enabledTools,
@@ -24346,7 +24348,8 @@ const useAthenaRuntime = (config2) => {
24346
24348
  model,
24347
24349
  workbench,
24348
24350
  knowledgeBase,
24349
- systemPrompt
24351
+ systemPrompt,
24352
+ customToolConfigs
24350
24353
  };
24351
24354
  const isExistingThread = !!threadIdProp;
24352
24355
  const runtime = useAssistantTransportRuntime({
@@ -24456,7 +24459,8 @@ const useAthenaRuntime = (config2) => {
24456
24459
  plan_mode_enabled: false,
24457
24460
  workbench: currentRunConfig.workbench,
24458
24461
  knowledge_base: currentRunConfig.knowledgeBase,
24459
- ...currentRunConfig.systemPrompt ? { system_prompt: currentRunConfig.systemPrompt } : {}
24462
+ ...currentRunConfig.systemPrompt ? { system_prompt: currentRunConfig.systemPrompt } : {},
24463
+ ...currentRunConfig.customToolConfigs ? { custom_tool_configs: currentRunConfig.customToolConfigs } : {}
24460
24464
  },
24461
24465
  persistToolInvocationLogs: true
24462
24466
  };
@@ -24884,6 +24888,7 @@ function AthenaStandalone({
24884
24888
  workbench,
24885
24889
  knowledgeBase,
24886
24890
  systemPrompt,
24891
+ customToolConfigs,
24887
24892
  threadId,
24888
24893
  linkClicks,
24889
24894
  citationLinks
@@ -24902,6 +24907,7 @@ function AthenaStandalone({
24902
24907
  workbench,
24903
24908
  knowledgeBase,
24904
24909
  systemPrompt,
24910
+ customToolConfigs,
24905
24911
  threadId
24906
24912
  });
24907
24913
  const athenaConfig = useAthenaConfigValue({
@@ -24928,6 +24934,7 @@ function useAthenaRuntimeHook(config2) {
24928
24934
  workbench: config2.workbench,
24929
24935
  knowledgeBase: config2.knowledgeBase,
24930
24936
  systemPrompt: config2.systemPrompt,
24937
+ customToolConfigs: config2.customToolConfigs,
24931
24938
  threadId: remoteId
24932
24939
  });
24933
24940
  }
@@ -24946,6 +24953,7 @@ function AthenaWithThreadList({
24946
24953
  workbench,
24947
24954
  knowledgeBase,
24948
24955
  systemPrompt,
24956
+ customToolConfigs,
24949
24957
  linkClicks,
24950
24958
  citationLinks
24951
24959
  }) {
@@ -24965,7 +24973,8 @@ function AthenaWithThreadList({
24965
24973
  frontendToolIds,
24966
24974
  workbench,
24967
24975
  knowledgeBase,
24968
- systemPrompt
24976
+ systemPrompt,
24977
+ customToolConfigs
24969
24978
  });
24970
24979
  runtimeConfigRef.current = {
24971
24980
  apiUrl,
@@ -24978,7 +24987,8 @@ function AthenaWithThreadList({
24978
24987
  frontendToolIds,
24979
24988
  workbench,
24980
24989
  knowledgeBase,
24981
- systemPrompt
24990
+ systemPrompt,
24991
+ customToolConfigs
24982
24992
  };
24983
24993
  const runtimeHook = useCallback(
24984
24994
  () => useAthenaRuntimeHook(runtimeConfigRef.current),
@@ -25034,6 +25044,7 @@ function AthenaProvider({
25034
25044
  workbench,
25035
25045
  knowledgeBase,
25036
25046
  systemPrompt,
25047
+ customToolConfigs,
25037
25048
  threadId: threadIdProp,
25038
25049
  enableThreadList = false,
25039
25050
  theme,
@@ -25085,6 +25096,7 @@ function AthenaProvider({
25085
25096
  workbench,
25086
25097
  knowledgeBase,
25087
25098
  systemPrompt,
25099
+ customToolConfigs,
25088
25100
  linkClicks,
25089
25101
  citationLinks,
25090
25102
  children
@@ -25107,6 +25119,7 @@ function AthenaProvider({
25107
25119
  workbench,
25108
25120
  knowledgeBase,
25109
25121
  systemPrompt,
25122
+ customToolConfigs,
25110
25123
  threadId: threadIdProp,
25111
25124
  linkClicks,
25112
25125
  citationLinks,
@@ -64884,9 +64897,9 @@ const DEFAULT_SUGGESTIONS = [
64884
64897
  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."
64885
64898
  },
64886
64899
  {
64887
- icon: Search,
64888
- title: "Compare recent AI model launches",
64889
- prompt: "Search the web for the latest major AI model launches from OpenAI, Anthropic, and Google, then summarize the release dates, standout capabilities, and practical tradeoffs in a concise comparison table."
64900
+ icon: ChartColumn,
64901
+ title: "Analyze data and visualize insights",
64902
+ prompt: "Generate a sample quarterly sales dataset across 4 product categories, then create an interactive chart showing revenue trends and category performance over time."
64890
64903
  },
64891
64904
  {
64892
64905
  icon: Presentation,