|
@@ -86,11 +86,11 @@ type (
|
|
TmbId *string `json:"tmbId"`
|
|
TmbId *string `json:"tmbId"`
|
|
Type *string `json:"type"`
|
|
Type *string `json:"type"`
|
|
Status *string `json:"status"`
|
|
Status *string `json:"status"`
|
|
|
|
+ Avatar *string `json:"avatar"`
|
|
Name *string `json:"name"`
|
|
Name *string `json:"name"`
|
|
VectorModel *string `json:"vectorModel"`
|
|
VectorModel *string `json:"vectorModel"`
|
|
AgentModel *string `json:"agentModel"`
|
|
AgentModel *string `json:"agentModel"`
|
|
Intro *string `json:"intro"`
|
|
Intro *string `json:"intro"`
|
|
- Permission *string `json:"permission"`
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// Dataset info | 知识库详情
|
|
// Dataset info | 知识库详情
|
|
@@ -112,7 +112,7 @@ type (
|
|
}
|
|
}
|
|
|
|
|
|
Index {
|
|
Index {
|
|
- defaultIndex *bool `json:"canWrite"`
|
|
|
|
|
|
+ DefaultIndex *bool `json:"defaultIndex"`
|
|
Type *string `json:"type"`
|
|
Type *string `json:"type"`
|
|
DataId *string `json:"dataId"`
|
|
DataId *string `json:"dataId"`
|
|
Text *string `json:"text"`
|
|
Text *string `json:"text"`
|
|
@@ -138,6 +138,26 @@ type (
|
|
DatasetId DatasetId `json:"datasetId,optional"`
|
|
DatasetId DatasetId `json:"datasetId,optional"`
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ CollectionDetailReq {
|
|
|
|
+ ID *string `json:"id"`
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ CollectionInfoResp {
|
|
|
|
+ BaseDataInfo
|
|
|
|
+
|
|
|
|
+ Data CollectionInfo `json:"data"`
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ DataDetailReq {
|
|
|
|
+ ID *string `json:"id"`
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ DataDetailResp {
|
|
|
|
+ BaseDataInfo
|
|
|
|
+
|
|
|
|
+ Data DataInfo `json:"data"`
|
|
|
|
+ }
|
|
|
|
+
|
|
CollectionSimpleInfo {
|
|
CollectionSimpleInfo {
|
|
ID *string `json:"id"`
|
|
ID *string `json:"id"`
|
|
ParentID *string `json:"parentId"`
|
|
ParentID *string `json:"parentId"`
|
|
@@ -157,7 +177,6 @@ type (
|
|
DatasetId *string `json:"datasetId"`
|
|
DatasetId *string `json:"datasetId"`
|
|
CollectionId *string `json:"collectionId"`
|
|
CollectionId *string `json:"collectionId"`
|
|
SourceName *string `json:"sourceName"`
|
|
SourceName *string `json:"sourceName"`
|
|
- SourceId *string `json:"sourceId"`
|
|
|
|
CanWrite *bool `json:"canWrite"`
|
|
CanWrite *bool `json:"canWrite"`
|
|
IsOwner *bool `json:"isOwner"`
|
|
IsOwner *bool `json:"isOwner"`
|
|
}
|
|
}
|
|
@@ -282,10 +301,18 @@ service Wechat {
|
|
@handler getAgentCollectionList
|
|
@handler getAgentCollectionList
|
|
post /agent/collection/list (CollectionListReq) returns (CollectionListResp)
|
|
post /agent/collection/list (CollectionListReq) returns (CollectionListResp)
|
|
|
|
|
|
|
|
+ // Get collect detail | 获取collection详情
|
|
|
|
+ @handler getAgentCollectionInfo
|
|
|
|
+ post /agent/collection/detail (CollectionDetailReq) returns (CollectionInfoResp)
|
|
|
|
+
|
|
// Get data list | 获取data列表
|
|
// Get data list | 获取data列表
|
|
@handler getAgentDataList
|
|
@handler getAgentDataList
|
|
post /agent/data/list (DataListReq) returns (DataListResp)
|
|
post /agent/data/list (DataListReq) returns (DataListResp)
|
|
|
|
|
|
|
|
+ // Get data detail | 获取data详情
|
|
|
|
+ @handler getAgentDataDetail
|
|
|
|
+ post /agent/data/detail (DataDetailReq) returns (DataDetailResp)
|
|
|
|
+
|
|
// Create data | 添加data
|
|
// Create data | 添加data
|
|
@handler createAgentData
|
|
@handler createAgentData
|
|
post /agent/data/create (CreateDataInfoReq) returns (BaseDataInfo)
|
|
post /agent/data/create (CreateDataInfoReq) returns (BaseDataInfo)
|