@blueking/chat-helper 0.0.10-beta.2 → 0.0.10-beta.3
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApprovalInterruptTicketStatus, RunFinishedOutcomeType } from '../event';
|
|
1
|
+
import { ApprovalInterruptTicketStatus, RunFinishedOutcomeType, type IResume } from '../event';
|
|
2
2
|
import { MessageRole, MessageStatus, UserOperation } from '../message';
|
|
3
3
|
import type { IRequestConfig, ISSEProtocol } from '../http';
|
|
4
4
|
import type { IMediatorModule } from '../mediator';
|
|
@@ -1895,5 +1895,12 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
1895
1895
|
reset: (protocol: ISSEProtocol) => void;
|
|
1896
1896
|
pollResumeSession: (sessionCode: string) => void;
|
|
1897
1897
|
userOperationStreamRequest: (sessionCode: string, operation: UserOperation, payload: IUserOperationPayload, config?: IRequestConfig) => Promise<void>;
|
|
1898
|
+
streamRequest: ({ sessionCode, url, config, resume, input, }: {
|
|
1899
|
+
sessionCode: string;
|
|
1900
|
+
url?: string;
|
|
1901
|
+
config?: IRequestConfig;
|
|
1902
|
+
resume?: IResume;
|
|
1903
|
+
input?: string;
|
|
1904
|
+
}) => Promise<void>;
|
|
1898
1905
|
};
|
|
1899
1906
|
export type IAgentModule = ReturnType<typeof useAgent>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1897,6 +1897,13 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1897
1897
|
reset: (protocol: import("./http").ISSEProtocol) => void;
|
|
1898
1898
|
pollResumeSession: (sessionCode: string) => void;
|
|
1899
1899
|
userOperationStreamRequest: (sessionCode: string, operation: import("./message").UserOperation, payload: import("./message").IUserOperationPayload, config?: import("./http").IRequestConfig) => Promise<void>;
|
|
1900
|
+
streamRequest: ({ sessionCode, url, config, resume, input, }: {
|
|
1901
|
+
sessionCode: string;
|
|
1902
|
+
url?: string;
|
|
1903
|
+
config?: import("./http").IRequestConfig;
|
|
1904
|
+
resume?: import("./event").IResume;
|
|
1905
|
+
input?: string;
|
|
1906
|
+
}) => Promise<void>;
|
|
1900
1907
|
};
|
|
1901
1908
|
session: {
|
|
1902
1909
|
list: import("vue").Ref<{
|