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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
MI_SYSTEM_PROMPT = """
You are an expert Motivational Interviewing (MI) therapist and clinical supervisor with extensive experience in both practice and evaluation. Your role is to provide comprehensive, evidence-based session evaluations following established MI fidelity instruments and clinical assessment protocols.

Key Frameworks You Use:
1. MITI 4.2.1 (Motivational Interviewing Treatment Integrity)
2. MISC 2.5 (Motivational Interviewing Skill Code)
3. SCOPE (Sequential Code for Observing Process Exchanges)
4. CLEAR (Client Language EAsy Rating)

Approach your analysis with:
- Clinical precision and attention to detail
- Evidence-based evaluation methods
- Quantitative and qualitative assessment integration
- Professional clinical reporting standards
"""

SESSION_EVALUATION_PROMPT = """
Based on the provided session data, generate a comprehensive Motivational Interviewing evaluation report:

Session Information:
Context: {context}
Duration: {duration}
Transcript: {transcript}
Video Analysis Data: {video_data}

Generate a detailed clinical report following this structure:

I. SESSION OVERVIEW
A. Session Demographics
   - Date and Duration
   - Session Type
   - Session Goals
   - Presenting Focus

B. Technical Quality Indicators
   - Recording Quality
   - Data Completeness
   - Analysis Constraints

II. QUANTITATIVE METRICS
A. MITI 4.2.1 Global Scores (1-5 scale)
   1. Technical Components
      - Cultivating Change Talk
      - Softening Sustain Talk
      - Partnership
      - Empathy
   2. Calculated Score Averages

B. Behavior Counts
   1. OARS Analysis
      - Open Questions: [count]
      - Closed Questions: [count]
      - Simple Reflections: [count]
      - Complex Reflections: [count]
      - Affirmations: [count]
      - Summaries: [count]

   2. Key Ratios
      - Reflection-to-Question Ratio: [R:Q]
      - Percent Complex Reflections: [%CR]
      - Open-to-Closed Question Ratio: [O:C]
      - MI-Adherent to MI-Non-Adherent Ratio: [MIA:MINA]

C. Client Language Metrics
   1. Change Talk Analysis
      - Total Change Talk Instances: [count]
      - Total Sustain Talk Instances: [count]
      - Change Talk to Sustain Talk Ratio: [CT:ST]
      
   2. DARN-CAT Components (Frequency)
      - Desire: [count]
      - Ability: [count]
      - Reasons: [count]
      - Need: [count]
      - Commitment: [count]
      - Activation: [count]
      - Taking Steps: [count]

   3. Strength Ratings (1-5 scale)
      - Average Change Talk Strength: [score]
      - Peak Change Talk Strength: [score]
      - Sustained Change Talk Episodes: [count]

III. QUALITATIVE ANALYSIS
A. MI Spirit Adherence
   1. Partnership
      - Strengths observed
      - Areas for development
      - Critical incidents

   2. Acceptance & Compassion
      - Demonstrated behaviors
      - Missed opportunities
      - Impact on client engagement

   3. Evocation
      - Effective strategies used
      - Client response patterns
      - Enhancement opportunities

B. Technical Skill Analysis
   1. OARS Implementation
      - Notable examples
      - Skill demonstration quality
      - Development areas

   2. Change Talk Handling
      - Recognition patterns
      - Response effectiveness
      - Missed opportunities

   3. Discord Management
      - Observed instances
      - Resolution strategies
      - Effectiveness assessment

IV. PROCESS ANALYSIS
A. Therapeutic Relationship
   - Alliance indicators
   - Engagement patterns
   - Collaboration quality

B. Session Flow
   - Pace appropriateness
   - Direction management
   - Focus maintenance

C. Client Engagement
   - Participation level
   - Disclosure depth
   - Resistance patterns

V. OUTCOME EVALUATION
A. Session Objectives
   - Goal attainment
   - Progress indicators
   - Barriers identified

B. Change Process
   - Stage of change movement
   - Motivation indicators
   - Commitment language progression

VI. RECOMMENDATIONS
A. Immediate Development Priorities
   1. Technical Skills
   2. Process Management
   3. Client Engagement

B. Long-term Development Goals
   1. Advanced skill targets
   2. Process refinement
   3. Professional development suggestions

VII. SUMMARY SCORES
A. Global Session Rating: [1-5 scale]
B. Technical Proficiency: [1-5 scale]
C. MI Spirit Adherence: [1-5 scale]
D. Overall Effectiveness: [1-5 scale]

VIII. APPENDIX
A. Notable Transcript Excerpts
B. Specific Examples
C. Reference Benchmarks
D. Supporting Data

Please ensure all numerical scores include brief explanatory rationales and all qualitative assessments are supported by specific examples from the session.
"""

REAL_TIME_ANALYSIS_PROMPT = """
Based on the current session segment, provide immediate analysis and guidance:

Current Context: {context}
Client Statement: {current_statement}
Recent Exchange History: {exchange_history}
Time Marker: {timestamp}

I. IMMEDIATE ANALYSIS
A. Client Language Classification
   1. Current Statement Type
      - Change Talk/Sustain Talk/Neutral
      - DARN-CAT Category
      - Strength Rating (1-5)
      - Underlying Meaning/Theme

   2. Pattern Recognition
      - Language Trend (last 3-5 exchanges)
      - Motivation Direction
      - Engagement Level (1-5)

B. Process Markers
   1. Current Stage Assessment
      - Stage of Change Indicators
      - Motivation Level (1-10)
      - Readiness Signals
      - Ambivalence Status

   2. Therapeutic Alliance
      - Current Connection Quality (1-5)
      - Discord Risk Level (1-5)
      - Engagement Trajectory

II. IMMEDIATE RESPONSE GUIDANCE
A. Recommended Responses (Ranked 1-3)
   1. Primary Response Option
      - Exact wording
      - Response type (OARS)
      - Strategic rationale
      - Expected impact

   2. Alternative Options
      - Alternative phrasings
      - Strategic variations
      - Context considerations

B. Technical Considerations
   1. OARS Selection
      - Most appropriate technique
      - Implementation guidance
      - Potential pitfalls

   2. MI Strategy
      - Change talk response
      - Discord prevention
      - Engagement maintenance

III. STRATEGIC DIRECTION
A. Immediate Focus
   1. Primary Objective
      - Target behavior/topic
      - Approach strategy
      - Success indicators

   2. Process Management
      - Pace adjustment needs
      - Depth calibration
      - Direction modifications

B. Next Steps Planning
   1. Anticipated Challenges
      - Potential barriers
      - Preparation strategies
      - Contingency options

   2. Opportunity Areas
      - Change talk potential
      - Deepening possibilities
      - Connection points

IV. REAL-TIME METRICS
A. Current Session Scores
   1. Technical Skills (1-5)
      - OARS Implementation
      - MI Adherence
      - Strategy Effectiveness

   2. Process Ratings (1-5)
      - Therapeutic Alliance
      - Client Engagement
      - Progress Pace

B. Trend Indicators
   1. Pattern Development
      - Language evolution
      - Engagement trajectory
      - Alliance development

   2. Effectiveness Markers
      - Impact assessment
      - Response success
      - Adjustment needs
"""

PROGRESS_TRACKING_PROMPT = """
Generate a comprehensive progress tracking report based on accumulated session data:

Client Information: {client_info}
Session History: {session_history}
Initial Goals: {initial_goals}
Current Status: {current_status}

I. LONGITUDINAL METRICS
A. Technical Skill Progression
   1. MITI 4.2.1 Score Trends
      - Global scores over time
      - Behavior counts evolution
      - Key ratios progression
      [Include trend graphs/charts]

   2. Skill Development Patterns
      - OARS proficiency growth
      - MI adherence improvement
      - Strategy effectiveness trends

B. Client Language Evolution
   1. Change Talk Progression
      - Frequency trends
      - Strength development
      - Category shifts
      [Include statistical analysis]

   2. DARN-CAT Trends
      - Component frequency changes
      - Strength modifications
      - Pattern developments

II. THERAPEUTIC PROCESS EVALUATION
A. Relationship Development
   1. Alliance Progression
      - Trust indicators
      - Collaboration quality
      - Engagement depth
      [Rate 1-5 with trend analysis]

   2. Process Markers
      - Stage of change movement
      - Motivation development
      - Resistance patterns

B. Goal Progression
   1. Original Goals
      - Progress assessment
      - Achievement metrics
      - Barrier identification

   2. Emerging Objectives
      - New focus areas
      - Priority adjustments
      - Strategy modifications

III. OUTCOME MEASUREMENTS
A. Quantitative Indicators
   1. Behavioral Metrics
      - Target behavior changes
      - Frequency modifications
      - Intensity alterations
      [Include measurement data]

   2. Scale Assessments
      - Confidence ratings
      - Importance scores
      - Readiness levels
      [Track changes over time]

B. Qualitative Progress
   1. Client Growth Areas
      - Insight development
      - Behavioral changes
      - Attitude shifts

   2. Therapeutic Achievements
      - Major breakthroughs
      - Significant changes
      - Key realizations

IV. COMPARATIVE ANALYSIS
A. Baseline vs. Current Status
   1. Behavioral Comparison
      - Initial vs. current metrics
      - Change percentages
      - Impact assessment

   2. Process Evolution
      - Therapeutic relationship
      - Engagement quality
      - Motivation levels

B. Expected vs. Actual Progress
   1. Goal Achievement
      - Target attainment rates
      - Pace assessment
      - Adjustment needs

   2. Timeline Evaluation
      - Progress speed
      - Phase completion
      - Milestone achievement

V. FUTURE PLANNING
A. Short-term Objectives
   1. Immediate Focus Areas
      - Priority targets
      - Strategy adjustments
      - Success metrics

   2. Process Modifications
      - Approach refinements
      - Technique adjustments
      - Focus calibration

B. Long-term Projections
   1. Treatment Timeline
      - Phase progression
      - Milestone targets
      - Completion indicators

   2. Development Areas
      - Ongoing challenges
      - Growth opportunities
      - Support needs

VI. SUMMARY ASSESSMENT
A. Progress Overview
   1. Global Ratings (1-5)
      - Overall progress
      - Goal achievement
      - Engagement quality
      - Relationship development

   2. Key Achievements
      - Major successes
      - Breakthrough moments
      - Critical changes

B. Recommendations
   1. Treatment Adjustments
      - Strategy modifications
      - Approach refinements
      - Focus changes

   2. Support Planning
      - Resource needs
      - Additional interventions
      - Collaboration requirements
"""