Skip to content

Commit 19bdebd

Browse files
committed
idl
Change-Id: If782e3de30f8eb0f95f8cc84cd13d9255c5db53b
1 parent 9aa8dd9 commit 19bdebd

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

idl/thrift/coze/loop/prompt/coze.loop.prompt.manage.thrift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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")

idl/thrift/coze/loop/prompt/domain/prompt.thrift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
2429
struct 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
}

0 commit comments

Comments
 (0)