@blueking/chat-helper 0.0.8 → 0.0.10-beta.1

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,10 @@
1
1
  import type { IMessage } from '../message';
2
+ export declare enum SessionStatus {
3
+ Running = "running",
4
+ Finished = "finished",
5
+ Failed = "failed",
6
+ Cancelled = "cancelled"
7
+ }
2
8
  export interface ISession<ITool = unknown, IAnchorPathResources = unknown> {
3
9
  anchorPathResources?: IAnchorPathResources;
4
10
  comment?: string;
@@ -12,6 +18,7 @@ export interface ISession<ITool = unknown, IAnchorPathResources = unknown> {
12
18
  sessionName: string;
13
19
  tools?: ITool[];
14
20
  updatedAt?: string;
21
+ status?: SessionStatus;
15
22
  roleInfo?: {
16
23
  collectionId: number;
17
24
  collectionName: string;
@@ -40,6 +47,7 @@ export interface ISessionApi<IToolApi = unknown, IAnchorPathResourcesApi = unkno
40
47
  session_name: string;
41
48
  tools?: IToolApi[];
42
49
  updated_at?: string;
50
+ status?: SessionStatus;
43
51
  role_info?: {
44
52
  collection_id: number;
45
53
  collection_name: string;
@@ -22,4 +22,10 @@
22
22
  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
23
23
  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
24
  * IN THE SOFTWARE.
25
- */ export { };
25
+ */ export var SessionStatus;
26
+ (function(SessionStatus) {
27
+ SessionStatus["Running"] = "running";
28
+ SessionStatus["Finished"] = "finished";
29
+ SessionStatus["Failed"] = "failed";
30
+ SessionStatus["Cancelled"] = "cancelled";
31
+ })(SessionStatus || (SessionStatus = {}));