14979dba4b
- Fix cLegalAidNumber placeholder key mismatch (template expects cLegalAidNumber, code sent legalAidNumber) - Add fallback for flat legalAnalysis fields (AI may send them outside the nested object) - Improve assignedUserName resolution: prefer case assignee, filter out system/API user names - Add "המשך ייצוג" positive recommendation option to enum, checkboxes, prompt, and DOCX template Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
154 lines
6.9 KiB
JSON
154 lines
6.9 KiB
JSON
{
|
|
"tools": {
|
|
"generate_direct_access_report": {
|
|
"description": "Generate Direct Access report (דוח גישה ישירה) as DOCX and attach to Case. Call ONLY after collecting ALL required data through conversation with the lawyer. This tool generates the DOCX directly and attaches it to the Case as a Document — no intermediate entity is created.",
|
|
"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"]
|
|
}
|
|
}
|
|
}
|
|
}
|