@izzai/one-js 1.1.21 → 1.1.23
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 +5 -1652
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/index.js +5 -1652
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { WithCount } from '@izzai/gateway';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Lean version of AgentDocument
|
|
3
5
|
*
|
|
@@ -817,12 +819,12 @@ declare enum LlmBehaviorEnum {
|
|
|
817
819
|
}
|
|
818
820
|
|
|
819
821
|
declare class ChatService extends BaseService {
|
|
820
|
-
chat(msg: string, options?: IChatBody
|
|
821
|
-
chat(msg: string, options?: IChatBody
|
|
822
|
-
chat(msg: string, options?: IChatBody
|
|
823
|
-
chatWithFile(msg: string, file: Blob, fileName?: string, options?: IChatBody
|
|
824
|
-
chatWithFile(msg: string, file: Blob, fileName?: string, options?: IChatBody
|
|
825
|
-
chatWithFile(msg: string, file: Blob, fileName?: string, options?: IChatBody
|
|
822
|
+
chat(msg: string, options?: Partial<IChatBody>, messageMode?: 'user-message'): Promise<Message>;
|
|
823
|
+
chat(msg: string, options?: Partial<IChatBody>, messageMode?: 'ai-message'): Promise<Message>;
|
|
824
|
+
chat(msg: string, options?: Partial<IChatBody>, messageMode?: 'all'): Promise<ChatWithMessages>;
|
|
825
|
+
chatWithFile(msg: string, file: Blob, fileName?: string, options?: Partial<IChatBody>, messageMode?: 'user-message'): Promise<Message>;
|
|
826
|
+
chatWithFile(msg: string, file: Blob, fileName?: string, options?: Partial<IChatBody>, messageMode?: 'ai-message'): Promise<Message>;
|
|
827
|
+
chatWithFile(msg: string, file: Blob, fileName?: string, options?: Partial<IChatBody>, messageMode?: 'all'): Promise<ChatWithMessages>;
|
|
826
828
|
}
|
|
827
829
|
|
|
828
830
|
declare class AgentService extends BaseService {
|
|
@@ -839,3 +841,4 @@ declare class One extends BaseService {
|
|
|
839
841
|
}
|
|
840
842
|
|
|
841
843
|
export { One };
|
|
844
|
+
export type { Agent, Chat, Datasource, Gpt, IChatBody, Message };
|