Skip to content

Commit 745e243

Browse files
trunguttdgageot
authored andcommitted
Add createdAt for missing chat.Message
Signed-off-by: Trung Nguyen <[email protected]>
1 parent 78ebf9a commit 745e243

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/runtime/runtime.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ func (r *Runtime) addToolRejectedResponse(sess *session.Session, toolCall tools.
603603
Role: chat.MessageRoleTool,
604604
Content: result,
605605
ToolCallID: toolCall.ID,
606+
CreatedAt: time.Now().Format(time.RFC3339),
606607
}
607608
sess.AddMessage(session.NewAgentMessage(a, &toolResponseMsg))
608609
}

0 commit comments

Comments
 (0)