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

Function agentViewFromIdentity

internal/httpapi/operations.go:69–78  ·  view source on GitHub ↗

agentViewFromIdentity maps the storage record to the public view.

(ag *identity.AgentIdentity)

Source from the content-addressed store, hash-verified

67
68// agentViewFromIdentity maps the storage record to the public view.
69func agentViewFromIdentity(ag *identity.AgentIdentity) AgentView {
70 return AgentView{
71 ID: ag.ID,
72 Domain: ag.Domain,
73 Email: ag.EmailAddress(),
74 Name: ag.Name,
75 DomainVerified: ag.DomainVerified,
76 CreatedAt: ag.CreatedAt,
77 }
78}
79
80// listAgentsOutput uses the shared Page[T] envelope (items + next_cursor) so
81// the list has a pagination slot from GA day one. next_cursor is null at launch

Callers 3

handleUpdateAgentMethod · 0.85
handleCreateAgentMethod · 0.85
registerAgentsMethod · 0.85

Calls 1

EmailAddressMethod · 0.80

Tested by

no test coverage detected