return r.LastEvent(kind).Text
}
+func (r *TurnEventRecorder) Add(event Event) {
+ r.mutex.Lock()
+ defer r.mutex.Unlock()
+
+ r.events = append(r.events, event)
+}
+
// LastEvent returns the last event of kind.
func (r *TurnEventRecorder) LastEvent(kind string) Event {
r.mutex.Lock()
return Event{}
}
-func (r *TurnEventRecorder) Add(event Event) {
- r.mutex.Lock()
- defer r.mutex.Unlock()
-
- r.events = append(r.events, event)
+func modelReasoningItem(id, encrypted string) map[string]any {
+ return map[string]any{
+ "type": "reasoning",
+ "id": id,
+ "encrypted_content": encrypted,
+ "summary": []any{},
+ }
}
// turnInputTexts returns the text of each user message of the input of call.
return texts
}
-
-func modelReasoningItem(id, encrypted string) map[string]any {
- return map[string]any{
- "type": "reasoning",
- "id": id,
- "encrypted_content": encrypted,
- "summary": []any{},
- }
-}