fix(singleagent): openapi message list field type (#775)

main
junwen-lee 2 months ago committed by GitHub
parent dfa9eb44e1
commit f040a511e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      backend/api/model/conversation/message/message.go
  2. 4
      idl/conversation/message.thrift

@ -6837,7 +6837,7 @@ type OpenMessageApi struct {
//message content
Content string `thrift:"content,4" form:"content" json:"content" query:"content"`
//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
MetaData map[string]string `thrift:"meta_data,6" form:"meta_data" json:"meta_data" query:"meta_data"`
//creation time
@ -6845,7 +6845,7 @@ type OpenMessageApi struct {
//update time
UpdatedAt int64 `thrift:"updated_at,8" form:"updated_at" json:"updated_at" query:"updated_at"`
// 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
ContentType string `thrift:"content_type,10" form:"content_type" json:"content_type" query:"content_type"`
//Message Type answer/question/function_call/tool_response

@ -197,11 +197,11 @@ struct OpenMessageApi {
2: i64 bot_id (api.js_conv='true') // agent id
3: string role // user / assistant/tool
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
7: i64 created_at //creation 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
11: string type //Message Type answer/question/function_call/tool_response
12: string section_id // The section_id of conversation

Loading…
Cancel
Save