MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / logInteraction

Function logInteraction

server/src/addie/security.ts:344–359  ·  view source on GitHub ↗
(log: AddieInteractionLog)

Source from the content-addressed store, hash-verified

342 * Log an interaction for audit purposes
343 */
344export function logInteraction(log: AddieInteractionLog): void {
345 const emoji = log.flagged ? '⚠️ ' : '';
346 logger.info(
347 {
348 interactionId: log.id,
349 eventType: log.event_type,
350 userId: log.user_id,
351 channelId: log.channel_id,
352 latencyMs: log.latency_ms,
353 toolsUsed: log.tools_used,
354 flagged: log.flagged,
355 flagReason: log.flag_reason,
356 },
357 `${emoji}Addie interaction completed`
358 );
359}
360
361/**
362 * Generate a unique ID for interactions

Callers 6

handleUserMessageFunction · 0.85
handleAppMentionFunction · 0.85
handleDirectMessageFunction · 0.85
handleActiveThreadReplyFunction · 0.85
handleAssistantMessageFunction · 0.85
handleAppMentionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected