b3c219aa57
Replace scattered Case fields with a dedicated LegalAid entity that holds all legal aid data (aid type, urgency, client contact, proceeding details, legal analysis, recommendation, etc.). DirectAccessReport now pulls from LegalAid for DOCX generation with automatic checkbox mapping. - Add LegalAid entity with controller, layouts, i18n (he/en/fa) - Remove cAidType, cUrgencyLevel, cAppointmentDate, cFilingDeadline, cLegalAidType from Case (migrated to LegalAid) - Add legalAidType field to LegalAid (DirectAccess/Regular/Duty) - Update DirectAccessReportService to use LegalAid entity - Add update_legal_aid and get_legal_aid SmartAssistant tools - Fix AfterInstall template entityType to LegalAid Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
187 lines
8.9 KiB
JSON
187 lines
8.9 KiB
JSON
{
|
|
"tools": {
|
|
"generate_initial_report": {
|
|
"description": "Generate Direct Access initial report (דוח דיווח ראשוני — גישה ישירה). Call ONLY after collecting ALL required data through conversation with the lawyer. This tool creates/updates a LegalAid entity and generates a DOCX document from it.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"aidType": {
|
|
"type": "string",
|
|
"enum": ["הגשת ערעור", "יעוץ והדרכה", "סיוע נוסף ביטוח לאומי", "סיוע נוסף תחום אחר", "אי מתן סיוע"],
|
|
"description": "מהות הסיוע"
|
|
},
|
|
"urgencyLevel": {
|
|
"type": "string",
|
|
"enum": ["רגיל", "דחוף", "בהול"],
|
|
"description": "דחיפות ההליך"
|
|
},
|
|
"filingDeadline": {
|
|
"type": "string",
|
|
"description": "מועד אחרון להגשה (YYYY-MM-DD)"
|
|
},
|
|
"appointmentDate": {
|
|
"type": "string",
|
|
"description": "מועד קבלת המינוי (YYYY-MM-DD)"
|
|
},
|
|
"additionalUrgency": {
|
|
"type": "string",
|
|
"enum": ["רגיל", "דחוף", "בהול"],
|
|
"description": "דחיפות הליך נוסף (if applicable)"
|
|
},
|
|
"additionalDeadline": {
|
|
"type": "string",
|
|
"description": "מועדים להליך נוסף"
|
|
},
|
|
"firstContactDate": {
|
|
"type": "string",
|
|
"description": "תאריך יצירת קשר ראשוני (YYYY-MM-DD)"
|
|
},
|
|
"contactDelayReason": {
|
|
"type": "string",
|
|
"description": "סיבת עיכוב ביצירת קשר (if > 48 hours)"
|
|
},
|
|
"meetingDate": {
|
|
"type": "string",
|
|
"description": "תאריך פגישה עם הלקוח (YYYY-MM-DD)"
|
|
},
|
|
"meetingDelayReason": {
|
|
"type": "string",
|
|
"description": "סיבת עיכוב בפגישה (if > 10 days)"
|
|
},
|
|
"meetingAttendees": {
|
|
"type": "string",
|
|
"description": "נוכחים בפגישה (פרט לפונה)"
|
|
},
|
|
"contactStatus": {
|
|
"type": "string",
|
|
"enum": ["תקין", "לא תקין"],
|
|
"description": "מצב הקשר עם הלקוח"
|
|
},
|
|
"contactStatusDetail": {
|
|
"type": "string",
|
|
"description": "פירוט מצב קשר (if לא תקין)"
|
|
},
|
|
"proceedingNumber": {
|
|
"type": "string",
|
|
"description": "מספר ההליך בבית הדין"
|
|
},
|
|
"courtName": {
|
|
"type": "string",
|
|
"enum": ["בית הדין האזורי לעבודה ירושלים", "בית הדין האזורי לעבודה תל אביב", "בית הדין האזורי לעבודה חיפה", "בית הדין האזורי לעבודה באר שבע", "בית הדין האזורי לעבודה נצרת", "בית הדין הארצי לעבודה"],
|
|
"description": "בית הדין"
|
|
},
|
|
"proceedingSubject": {
|
|
"type": "string",
|
|
"enum": ["נכות כללית", "נכות מעבודה", "נכות איבה", "ניידות", "אי כושר", "שירותים מיוחדים", "סיעוד", "גמלת הבטחת הכנסה", "דמי אבטלה", "אחר"],
|
|
"description": "עניין ההליך"
|
|
},
|
|
"claimSummary": {
|
|
"type": "string",
|
|
"description": "תמצית התביעה/הערעור"
|
|
},
|
|
"defenseClaims": {
|
|
"type": "string",
|
|
"description": "טענות ההגנה (אם הוגשו)"
|
|
},
|
|
"legalAnalysis": {
|
|
"type": "object",
|
|
"description": "ניתוח הסיכוי המשפטי — מלא רק שדות רלוונטיים לסוג התביעה",
|
|
"properties": {
|
|
"q1DocsReviewed": { "type": "boolean" },
|
|
"q1DocsDetail": { "type": "string" },
|
|
"q2Reasoned": { "type": "boolean" },
|
|
"q2ReasonDetail": { "type": "string" },
|
|
"q3PanelMatch": { "type": "boolean" },
|
|
"q4PanelComposition": { "type": "string" },
|
|
"q5ComplaintsAddressed": { "type": "boolean" },
|
|
"q6ComplaintsDetail": { "type": "string" },
|
|
"q7ClinicalExam": { "type": "boolean" },
|
|
"q8ClinicalGap": { "type": "string" },
|
|
"q9MoharaApplied": { "type": "boolean" },
|
|
"q9MoharaDetail": { "type": "string" },
|
|
"q10RehabGap": { "type": "boolean" },
|
|
"q10RehabDetail": { "type": "string" },
|
|
"q11ScoreGap": { "type": "boolean" },
|
|
"q11ScoreDetail": { "type": "string" },
|
|
"q12UniqueAspects": { "type": "boolean" },
|
|
"q12UniqueDetail": { "type": "string" }
|
|
}
|
|
},
|
|
"recommendationType": {
|
|
"type": "string",
|
|
"enum": ["ייעוץ והדרכה חלף ייצוג", "ויתור הלקוח", "החלפת ייצוג", "לא נוצר קשר", "לא התקיימה פגישה", "עדיין לא ניתן להחליט", "נדרשים מסמכים נוספים", "המלצה לסירוב"],
|
|
"description": "סוג ההמלצה/ההודעה"
|
|
},
|
|
"recommendationDetail": {
|
|
"type": "string",
|
|
"description": "פירוט מנומק של ההמלצה"
|
|
},
|
|
"additionalAidNeeded": {
|
|
"type": "string",
|
|
"enum": ["לא נחוץ", "נחוץ בתחום ביטוח לאומי", "נחוץ בתחום אחר"],
|
|
"description": "צורך בסיוע נוסף"
|
|
},
|
|
"additionalAidNIDetail": {
|
|
"type": "string",
|
|
"description": "פירוט סיוע נוסף בתחום ביטוח לאומי"
|
|
},
|
|
"additionalAidOtherDetail": {
|
|
"type": "string",
|
|
"description": "פירוט סיוע נוסף בתחום אחר"
|
|
},
|
|
"additionalAidUrgency": {
|
|
"type": "string",
|
|
"enum": ["רגיל", "דחוף", "בהול"]
|
|
},
|
|
"additionalAidDeadlines": {
|
|
"type": "string",
|
|
"description": "מועדים לסיוע נוסף"
|
|
},
|
|
"willingToRepresent": {
|
|
"type": "boolean",
|
|
"description": "הסיוע הנוסף בתחום התמחותי ומעוניין לייצג?"
|
|
},
|
|
"notes": {
|
|
"type": "string",
|
|
"description": "הערות כלליות"
|
|
}
|
|
},
|
|
"required": ["aidType", "proceedingSubject", "recommendationType"]
|
|
}
|
|
},
|
|
"update_legal_aid": {
|
|
"description": "Update fields on an existing LegalAid entity. Use this to fill or modify any field on the legal aid record. Pass only the fields you want to update — existing values are preserved for unspecified fields. You can update any combination of fields.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"legalAidId": {
|
|
"type": "string",
|
|
"description": "ID of the LegalAid entity to update"
|
|
},
|
|
"fields": {
|
|
"type": "object",
|
|
"description": "Key-value pairs of fields to update. Any field from the LegalAid entity is valid: aidType, urgencyLevel, appointmentDate, filingDeadline, firstContactDate, contactDelayReason, meetingDate, meetingDelayReason, meetingAttendees, contactStatus, contactStatusDetail, proceedingNumber, courtName, proceedingSubject, claimSummary, defenseClaims, q1DocsReviewed, q1DocsDetail, q2Reasoned, q2ReasonDetail, q3PanelMatch, q4PanelComposition, q5ComplaintsAddressed, q6ComplaintsDetail, q7ClinicalExam, q8ClinicalGap, q9MoharaApplied, q9MoharaDetail, q10RehabGap, q10RehabDetail, q11ScoreGap, q11ScoreDetail, q12UniqueAspects, q12UniqueDetail, recommendationType, recommendationDetail, additionalAidNeeded, additionalAidNIDetail, additionalAidOtherDetail, additionalAidUrgency, additionalAidDeadlines, willingToRepresent, notes, status, contactName, legalAidNumber, reportDate, additionalUrgency, additionalDeadline"
|
|
}
|
|
},
|
|
"required": ["legalAidId", "fields"]
|
|
}
|
|
},
|
|
"get_legal_aid": {
|
|
"description": "Read an existing LegalAid entity and return all its field values. Use this to check what data has already been filled before updating.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"legalAidId": {
|
|
"type": "string",
|
|
"description": "ID of the LegalAid entity to read"
|
|
},
|
|
"caseId": {
|
|
"type": "string",
|
|
"description": "Alternatively, find the LegalAid by Case ID"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|