@nocobase/plugin-ai 2.4.0-alpha.12 → 2.4.0-alpha.14

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.
@@ -12,6 +12,9 @@ export type AIEmployeeDropdownProps = {
12
12
  aiEmployees: AIEmployee[];
13
13
  currentEmployee?: AIEmployee;
14
14
  disabled?: boolean;
15
+ block?: boolean;
16
+ open?: boolean;
17
+ onOpenChange?: (open: boolean) => void;
15
18
  onSelect: (aiEmployee: AIEmployee) => void;
16
19
  };
17
20
  export declare const AIEmployeeDropdown: React.FC<AIEmployeeDropdownProps>;
@@ -13,6 +13,9 @@ export declare const AddContextButton: React.FC<{
13
13
  contextItems?: ContextItem[];
14
14
  onAdd: (item: ContextItem) => void;
15
15
  onRemove: (type: string, uid: string) => void;
16
+ onSelect?: (key: string) => void;
17
+ open?: boolean;
18
+ onOpenChange?: (open: boolean) => void;
16
19
  disabled?: boolean;
17
20
  ignore?: (key: string, workContext: WorkContextOptions) => boolean;
18
21
  runtime?: ChatBoxRuntime;
@@ -9,5 +9,8 @@
9
9
  import React from 'react';
10
10
  export declare const AIEmployeeSwitcher: React.FC<{
11
11
  disabled?: boolean;
12
+ block?: boolean;
13
+ open?: boolean;
14
+ onOpenChange?: (open: boolean) => void;
12
15
  allowedUsernames?: string[];
13
16
  }>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ import type { SenderOptions } from './Sender';
11
+ export declare const CompactSenderOptions: React.FC<{
12
+ options: SenderOptions;
13
+ }>;
@@ -11,6 +11,10 @@ import type { LLMServiceItem } from '../../../repositories/AIConfigRepository';
11
11
  import { type ModelRef } from '../stores/chat-box';
12
12
  export declare const ModelSwitcher: React.FC<{
13
13
  disabled?: boolean;
14
+ block?: boolean;
15
+ open?: boolean;
16
+ onOpenChange?: (open: boolean) => void;
14
17
  allowedModelKeys?: string[];
15
18
  }>;
16
19
  export declare function getVisibleModelServices(services: LLMServiceItem[], allowedModelKeys?: string[], currentConversationModel?: ModelRef | null): LLMServiceItem[];
20
+ export declare function getModelLabel(services: LLMServiceItem[], model: ModelRef | null | undefined): string;
@@ -9,4 +9,5 @@
9
9
  import React from 'react';
10
10
  export declare const SearchSwitch: React.FC<{
11
11
  disabled?: boolean;
12
+ showLabel?: boolean;
12
13
  }>;