Added message history saving
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package model
|
||||
|
||||
type Conversation struct {
|
||||
Id string
|
||||
Name string
|
||||
Summary string
|
||||
Messages []Message
|
||||
}
|
||||
+2
-7
@@ -1,14 +1,9 @@
|
||||
package model
|
||||
|
||||
type Message struct {
|
||||
Id string `json:"-"`
|
||||
Seq int `json:"-"`
|
||||
Role string `json:"role"`
|
||||
Content string `json:"content"`
|
||||
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
|
||||
}
|
||||
|
||||
type ToolCall struct {
|
||||
ID string `json:"id"`
|
||||
Type string `json:"type"`
|
||||
FunctionName string `json:"function"`
|
||||
FunctionArguments string `json:"arguments"`
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package model
|
||||
|
||||
type ToolCall struct {
|
||||
Id string `json:"-"`
|
||||
Type string `json:"type"`
|
||||
FunctionName string `json:"function"`
|
||||
FunctionArguments string `json:"arguments"`
|
||||
}
|
||||
Reference in New Issue
Block a user