We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4e7a14 + b193865 commit 14a861dCopy full SHA for 14a861d
frame.go
@@ -104,16 +104,18 @@ type InputContext struct {
104
}
105
106
type PromptFrame struct {
107
- ID string `json:"id,omitempty"`
108
- Type EventType `json:"type,omitempty"`
109
- Time time.Time `json:"time,omitempty"`
110
- Message string `json:"message,omitempty"`
111
- Fields []string `json:"fields,omitempty"`
112
- Sensitive bool `json:"sensitive,omitempty"`
+ ID string `json:"id,omitempty"`
+ Type EventType `json:"type,omitempty"`
+ Time time.Time `json:"time,omitempty"`
+ Message string `json:"message,omitempty"`
+ Fields []string `json:"fields,omitempty"`
+ Sensitive bool `json:"sensitive,omitempty"`
113
+ Metadata map[string]string `json:"metadata,omitempty"`
114
115
116
func (p *PromptFrame) String() string {
117
return fmt.Sprintf(`Message: %s
118
Fields: %v
-Sensitive: %v`, p.Message, p.Fields, p.Sensitive)
119
+Sensitive: %v`, p.Message, p.Fields, p.Sensitive,
120
+ )
121
0 commit comments