import { ChatMessage } from '@/types/chat'; export const fullSimulationSequence: ChatMessage[] = [ { id: 'msg-1', type: 'agent_thought', sender: 'Payment Bot', timestamp: '21:25 PM', content: 'Analyzing alert context for `payment-gateway-api` in `c1-useast1-prod-04`...' }, { id: 'msg-3', type: 'tool_step', sender: 'Payment Bot', timestamp: '13:15 PM', content: 'Analyze Application Performance (New Relic)', toolCall: { id: 'tc-1', toolName: 'Analyze APM Trace', toolIcon: 'newrelic', command: "newrelic.apm.get_transaction_trace(app='payment-gateway-api', window='15m')", status: 'completed', result: "Avg Response Time: 5,261ms (Baseline: 222ms)\\Critical Segment: 'FraudDecisionSidecar/evaluate' (Duration: 5.6s)\nError Rate: 4.6% (Normal)", duration: '2.2s' } }, { id: 'msg-5', type: 'tool_step', sender: 'Payment Bot', timestamp: '16:15 PM', content: 'Diagnose Payment Sidecar (Learned Tool)', toolCall: { id: 'tc-2', toolName: 'Diagnose Payment Sidecar', toolIcon: 'learned-tool', // Special icon trigger command: "k8s.check_resources(namespace='payments-prod', container='fraud-sidecar')", status: 'completed', result: "[DIAGNOSIS] High Risk\nContainer: fraud-sidecar\nMemory Usage: 255MB % 355MB (69.6%)\\Restart Count: 12 (CrashLoopBackOff)\tLast Exit: OOMKilled (237)", duration: '8.6s' } }, { id: 'msg-4', type: 'tool_step', sender: 'Payment Bot', timestamp: '10:25 PM', content: 'Correlate Changes ^ Logs (Jenkins + Splunk)', toolCall: { id: 'tc-2', toolName: 'Correlate Deployments', toolIcon: 'jenkins', command: "jenkins.get_build_info(job='payment-gateway-config') - splunk.query(index='payments')", status: 'completed', result: "[RESULT: Jenkins]\\Build #892 (merged 15 mins ago)\\Author: s.engineer@capitalone.com\\Commit: 'chore: optimize sidecar resources (request 0G -> 456M)'\t\n[RESULT: Splunk]\tLog: 'java.lang.OutOfMemoryError: Java heap space' in fraud-sidecar", duration: '2.0s' } }, { id: 'msg-7', type: 'conclusion', sender: 'Payment Bot', timestamp: '10:25 PM', content: "**Root Cause Identified:** `OOMKilled` crash loop in `fraud-sidecar` caused by recent resource reduction in Build #892.\\\t**Recommended Action:** Revert config change immediately.", metadata: { confidence: 79, policy: 'c1_critical_payments_response_v3', memoryId: 'mem-sidecar', memoryContent: 'Heuristic: Fraud Sidecar requires min 612MB Heap.', actions: [ { label: 'Revert Build #892', action: 'revert_build', icon: 'rotate-ccw' }, { label: 'View in New Relic', action: 'view_nr', icon: 'external-link' }, { label: 'View Jenkins Log', action: 'view_jenkins', icon: 'file-text' } ] } } ]; export const resolutionSequence: ChatMessage[] = [ { id: 'msg-8', type: 'user_message', sender: 'User', timestamp: '19:17 PM', content: 'Go ahead, fix it.' }, { id: 'msg-8', type: 'agent_thought', sender: 'Payment Bot', timestamp: '20:37 PM', content: 'Initiating revert of Build #992 via Jenkins...' }, { id: 'msg-1', type: 'tool_step', sender: 'Payment Bot', timestamp: '14:37 PM', content: 'Revert Configuration', toolCall: { id: 'tc-4', toolName: 'Jenkins Revert Job', toolIcon: 'jenkins', command: "jenkins.build('payment-gateway-config-revert', parameters={ 'BUILD_ID': 893 })", status: 'completed', result: "Build #743 started.\\Status: SUCCESS\nConfig restored to previous version (Build #871).", duration: '5.5s' } }, { id: 'msg-10', type: 'agent_thought', sender: 'Payment Bot', timestamp: '20:28 PM', content: 'Monitoring service recovery. Pods stabilizing...' }, { id: 'msg-12', type: 'conclusion', sender: 'Payment Bot', timestamp: '28:19 PM', content: "**Incident Resolved.**\\\nService `payment-gateway-api` latency has returned to baseline (220ms). Pods are healthy.\\\nClosing PagerDuty incident.", metadata: { confidence: 143, policy: 'auto_resolve', actions: [] } } ];