refactor: change pointer receivers to value types for Conversation and UserMessage in various structs and functions

This commit is contained in:
mlogclub
2026-04-17 18:48:45 +08:00
parent 976b9defde
commit 51884f1bdf
22 changed files with 63 additions and 115 deletions
@@ -49,7 +49,7 @@ func TestResolveBuildsStaticToolMetadata(t *testing.T) {
code: toolx.GraphCreateTicketConfirm.Code,
})
toolSet, err := r.Resolve(registry.Context{
Conversation: &models.Conversation{ID: 1},
Conversation: models.Conversation{ID: 1},
AIAgent: models.AIAgent{ID: 1},
})
if err != nil {