MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / reviewView

Function reviewView

internal/httpapi/reviews.go:40–54  ·  view source on GitHub ↗
(it identity.ReviewListItem)

Source from the content-addressed store, hash-verified

38}
39
40func reviewView(it identity.ReviewListItem) ReviewView {
41 return ReviewView{
42 ID: it.ID,
43 Agent: it.AgentID,
44 Direction: it.Direction,
45 From: it.Sender,
46 To: orEmptyStrings(it.To),
47 Subject: it.Subject,
48 ConversationID: it.ConversationID,
49 ReviewStatus: it.Status,
50 Flagged: it.Flagged,
51 FlagReason: it.FlagReason,
52 CreatedAt: it.CreatedAt,
53 }
54}
55
56type listReviewsOutput struct{ Body Page[ReviewView] }
57type reviewDetailOutput struct{ Body MessageView }

Callers 1

handleListReviewsMethod · 0.85

Calls 1

orEmptyStringsFunction · 0.85

Tested by

no test coverage detected