@@ -40,6 +40,8 @@ class _FileProcessStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapp
40
40
"""embedding process is failed"""
41
41
FILE_PROCESS_STATUS_COMPLETED : _FileProcessStatus .ValueType # 6
42
42
"""COMPLETED"""
43
+ FILE_PROCESS_STATUS_FAILED : _FileProcessStatus .ValueType # 7
44
+ """Failed"""
43
45
44
46
class FileProcessStatus (_FileProcessStatus , metaclass = _FileProcessStatusEnumTypeWrapper ):
45
47
"""file embedding process status"""
@@ -58,6 +60,8 @@ FILE_PROCESS_STATUS_EMBEDDING: FileProcessStatus.ValueType # 5
58
60
"""embedding process is failed"""
59
61
FILE_PROCESS_STATUS_COMPLETED : FileProcessStatus .ValueType # 6
60
62
"""COMPLETED"""
63
+ FILE_PROCESS_STATUS_FAILED : FileProcessStatus .ValueType # 7
64
+ """Failed"""
61
65
global___FileProcessStatus = FileProcessStatus
62
66
63
67
class _FileType :
@@ -464,6 +468,9 @@ class KnowledgeBase(google.protobuf.message.Message):
464
468
SPLITTING_PIPELINES_FIELD_NUMBER : builtins .int
465
469
EMBEDDING_PIPELINES_FIELD_NUMBER : builtins .int
466
470
DOWNSTREAM_APPS_FIELD_NUMBER : builtins .int
471
+ TOTAL_FILES_FIELD_NUMBER : builtins .int
472
+ TOTAL_TOKENS_FIELD_NUMBER : builtins .int
473
+ USED_STORAGE_FIELD_NUMBER : builtins .int
467
474
kb_id : builtins .str
468
475
"""The knowledge base identifier."""
469
476
name : builtins .str
@@ -491,6 +498,12 @@ class KnowledgeBase(google.protobuf.message.Message):
491
498
@property
492
499
def downstream_apps (self ) -> google .protobuf .internal .containers .RepeatedScalarFieldContainer [builtins .str ]:
493
500
"""The downstream apps"""
501
+ total_files : builtins .int
502
+ """The total files in knowledge base."""
503
+ total_tokens : builtins .int
504
+ """The total tokens in knowledge base."""
505
+ used_storage : builtins .int
506
+ """The current used storage in knowledge base."""
494
507
def __init__ (
495
508
self ,
496
509
* ,
@@ -505,8 +518,11 @@ class KnowledgeBase(google.protobuf.message.Message):
505
518
splitting_pipelines : collections .abc .Iterable [builtins .str ] | None = ...,
506
519
embedding_pipelines : collections .abc .Iterable [builtins .str ] | None = ...,
507
520
downstream_apps : collections .abc .Iterable [builtins .str ] | None = ...,
521
+ total_files : builtins .int = ...,
522
+ total_tokens : builtins .int = ...,
523
+ used_storage : builtins .int = ...,
508
524
) -> None : ...
509
- def ClearField (self , field_name : typing_extensions .Literal ["converting_pipelines" , b"converting_pipelines" , "create_time" , b"create_time" , "description" , b"description" , "downstream_apps" , b"downstream_apps" , "embedding_pipelines" , b"embedding_pipelines" , "kb_id" , b"kb_id" , "name" , b"name" , "owner_name" , b"owner_name" , "splitting_pipelines" , b"splitting_pipelines" , "tags" , b"tags" , "update_time" , b"update_time" ]) -> None : ...
525
+ def ClearField (self , field_name : typing_extensions .Literal ["converting_pipelines" , b"converting_pipelines" , "create_time" , b"create_time" , "description" , b"description" , "downstream_apps" , b"downstream_apps" , "embedding_pipelines" , b"embedding_pipelines" , "kb_id" , b"kb_id" , "name" , b"name" , "owner_name" , b"owner_name" , "splitting_pipelines" , b"splitting_pipelines" , "tags" , b"tags" , "total_files" , b"total_files" , "total_tokens" , b"total_tokens" , " update_time" , b"update_time" , "used_storage" , b"used_storage " ]) -> None : ...
510
526
511
527
global___KnowledgeBase = KnowledgeBase
512
528
@@ -710,6 +726,7 @@ class File(google.protobuf.message.Message):
710
726
CREATE_TIME_FIELD_NUMBER : builtins .int
711
727
UPDATE_TIME_FIELD_NUMBER : builtins .int
712
728
DELETE_TIME_FIELD_NUMBER : builtins .int
729
+ SIZE_FIELD_NUMBER : builtins .int
713
730
file_uid : builtins .str
714
731
"""file uid"""
715
732
name : builtins .str
@@ -739,6 +756,8 @@ class File(google.protobuf.message.Message):
739
756
@property
740
757
def delete_time (self ) -> google .protobuf .timestamp_pb2 .Timestamp :
741
758
"""delete time"""
759
+ size : builtins .int
760
+ """file size in bytes"""
742
761
def __init__ (
743
762
self ,
744
763
* ,
@@ -755,9 +774,10 @@ class File(google.protobuf.message.Message):
755
774
create_time : google .protobuf .timestamp_pb2 .Timestamp | None = ...,
756
775
update_time : google .protobuf .timestamp_pb2 .Timestamp | None = ...,
757
776
delete_time : google .protobuf .timestamp_pb2 .Timestamp | None = ...,
777
+ size : builtins .int = ...,
758
778
) -> None : ...
759
779
def HasField (self , field_name : typing_extensions .Literal ["create_time" , b"create_time" , "delete_time" , b"delete_time" , "update_time" , b"update_time" ]) -> builtins .bool : ...
760
- def ClearField (self , field_name : typing_extensions .Literal ["content" , b"content" , "create_time" , b"create_time" , "creator_uid" , b"creator_uid" , "delete_time" , b"delete_time" , "file_uid" , b"file_uid" , "kb_uid" , b"kb_uid" , "name" , b"name" , "owner_uid" , b"owner_uid" , "process_outcome" , b"process_outcome" , "process_status" , b"process_status" , "retrievable" , b"retrievable" , "type" , b"type" , "update_time" , b"update_time" ]) -> None : ...
780
+ def ClearField (self , field_name : typing_extensions .Literal ["content" , b"content" , "create_time" , b"create_time" , "creator_uid" , b"creator_uid" , "delete_time" , b"delete_time" , "file_uid" , b"file_uid" , "kb_uid" , b"kb_uid" , "name" , b"name" , "owner_uid" , b"owner_uid" , "process_outcome" , b"process_outcome" , "process_status" , b"process_status" , "retrievable" , b"retrievable" , "size" , b"size" , " type" , b"type" , "update_time" , b"update_time" ]) -> None : ...
761
781
762
782
global___File = File
763
783
0 commit comments