fix(singleagent): openapi message list field type (#775)
This commit is contained in:
parent
dfa9eb44e1
commit
f040a511e4
|
|
@ -6837,7 +6837,7 @@ type OpenMessageApi struct {
|
||||||
//message content
|
//message content
|
||||||
Content string `thrift:"content,4" form:"content" json:"content" query:"content"`
|
Content string `thrift:"content,4" form:"content" json:"content" query:"content"`
|
||||||
//session id
|
//session id
|
||||||
ConversationID int64 `thrift:"conversation_id,5" form:"conversation_id" json:"conversation_id" query:"conversation_id"`
|
ConversationID int64 `thrift:"conversation_id,5" form:"conversation_id" json:"conversation_id,string" query:"conversation_id"`
|
||||||
// custom field
|
// custom field
|
||||||
MetaData map[string]string `thrift:"meta_data,6" form:"meta_data" json:"meta_data" query:"meta_data"`
|
MetaData map[string]string `thrift:"meta_data,6" form:"meta_data" json:"meta_data" query:"meta_data"`
|
||||||
//creation time
|
//creation time
|
||||||
|
|
@ -6845,7 +6845,7 @@ type OpenMessageApi struct {
|
||||||
//update time
|
//update time
|
||||||
UpdatedAt int64 `thrift:"updated_at,8" form:"updated_at" json:"updated_at" query:"updated_at"`
|
UpdatedAt int64 `thrift:"updated_at,8" form:"updated_at" json:"updated_at" query:"updated_at"`
|
||||||
// ID of a conversation
|
// ID of a conversation
|
||||||
ChatID int64 `thrift:"chat_id,9" form:"chat_id" json:"chat_id" query:"chat_id"`
|
ChatID int64 `thrift:"chat_id,9" form:"chat_id" json:"chat_id,string" query:"chat_id"`
|
||||||
// Content type, text/mix
|
// Content type, text/mix
|
||||||
ContentType string `thrift:"content_type,10" form:"content_type" json:"content_type" query:"content_type"`
|
ContentType string `thrift:"content_type,10" form:"content_type" json:"content_type" query:"content_type"`
|
||||||
//Message Type answer/question/function_call/tool_response
|
//Message Type answer/question/function_call/tool_response
|
||||||
|
|
|
||||||
|
|
@ -197,11 +197,11 @@ struct OpenMessageApi {
|
||||||
2: i64 bot_id (api.js_conv='true') // agent id
|
2: i64 bot_id (api.js_conv='true') // agent id
|
||||||
3: string role // user / assistant/tool
|
3: string role // user / assistant/tool
|
||||||
4: string content //message content
|
4: string content //message content
|
||||||
5: i64 conversation_id //session id
|
5: i64 conversation_id (api.js_conv='true')//session id
|
||||||
6: map<string,string> meta_data // custom field
|
6: map<string,string> meta_data // custom field
|
||||||
7: i64 created_at //creation time
|
7: i64 created_at //creation time
|
||||||
8: i64 updated_at //update time
|
8: i64 updated_at //update time
|
||||||
9: i64 chat_id // ID of a conversation
|
9: i64 chat_id (api.js_conv='true')// ID of a conversation
|
||||||
10: string content_type // Content type, text/mix
|
10: string content_type // Content type, text/mix
|
||||||
11: string type //Message Type answer/question/function_call/tool_response
|
11: string type //Message Type answer/question/function_call/tool_response
|
||||||
12: string section_id // The section_id of conversation
|
12: string section_id // The section_id of conversation
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue