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

Method CreateAgent

internal/identity/store.go:916–918  ·  view source on GitHub ↗

CreateAgent inserts an agent with a domain FK. Does NOT check domain ownership — that's the API handler's responsibility (shared domain skips the check). webhookURL and agentMode are accepted for signature compatibility but are now IGNORED: the legacy per-agent webhook_url + agent_mode columns were

(ctx context.Context, agentEmail, domain, name, webhookURL, agentMode, userID string)

Source from the content-addressed store, hash-verified

914// retained to avoid churning the ~80 call-sites that still pass them; the
915// internal-signature cleanup is a separate follow-up.
916func (s *Store) CreateAgent(ctx context.Context, agentEmail, domain, name, webhookURL, agentMode, userID string) (*AgentIdentity, error) {
917 return createAgent(ctx, s.pool, agentEmail, domain, name, userID)
918}
919
920// CreateAgentTx inserts an agent inside a caller-owned transaction.
921// Used by the OAuth consent flow so the slug auto-create row and the

Implementers 1

Storeinternal/identity/store.go

Calls 1

createAgentFunction · 0.70