File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
idl/thrift/coze/loop/prompt Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ struct CreatePromptRequest {
4949 11: optional string prompt_name (vt.not_nil=" true" , vt.min_size =" 1" )
5050 12: optional string prompt_key (vt.not_nil=" true" , vt.min_size =" 1" )
5151 13: optional string prompt_description
52+ 14: optional prompt.PromptType prompt_type
5253
5354 21: optional prompt.PromptDetail draft_detail
5455
@@ -136,6 +137,7 @@ struct ListPromptRequest {
136137 11: optional string key_word
137138 12: optional list<string> created_bys
138139 13: optional bool committed_only
140+ 14: optional list<prompt.PromptType> filter_prompt_types // 向前兼容,如果不传,默认查询normal类型的Prompt
139141
140142 127: optional i32 page_num (vt.not_nil=" true" , vt.gt =" 0" )
141143 128: optional i32 page_size (vt.not_nil=" true" , vt.gt =" 0" , vt.le =" 100" )
Original file line number Diff line number Diff line change @@ -18,9 +18,14 @@ struct PromptBasic {
1818 6: optional i64 created_at (api.js_conv=" true" , go.tag =' json:"created_at"' )
1919 7: optional i64 updated_at (api.js_conv=" true" , go.tag =' json:"updated_at"' )
2020 8: optional i64 latest_committed_at (api.js_conv=" true" , go.tag =' json:"latest_committed_at"' )
21+ 9: optional PromptType prompt_type
2122
2223}
2324
25+ typedef string PromptType (ts.enum="true")
26+ const PromptType PromptType_Normal = " normal"
27+ const PromptType PromptType_Snippet = " snippet"
28+
2429struct PromptCommit {
2530 1: optional PromptDetail detail
2631 2: optional CommitInfo commit_info
@@ -61,6 +66,7 @@ struct PromptTemplate {
6166 1: optional TemplateType template_type
6267 2: optional list<Message> messages
6368 3: optional list<VariableDef> variable_defs
69+ 4: optional bool has_snippet
6470
6571 100: optional map<string, string> metadata
6672}
You can’t perform that action at this time.
0 commit comments