Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -313,6 +313,12 @@ if st.session_state.get('is_key_valid', False):
|
|
| 313 |
2. USE: Score: {sim_score}, Status: {sim_status}
|
| 314 |
3. Query 'get_account_status' ONLY for Name/Nationality/Email.
|
| 315 |
4. Follow the strict 4-step format defined in your system instructions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 316 |
"""
|
| 317 |
else:
|
| 318 |
query = f"""
|
|
@@ -320,6 +326,12 @@ if st.session_state.get('is_key_valid', False):
|
|
| 320 |
1. Query SQL tools for Name, Email, Nationality, Status, Score.
|
| 321 |
2. IF Nationality is 'Singaporean', SKIP 'check_pr_status'.
|
| 322 |
3. Follow the strict 4-step format defined in your system instructions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
"""
|
| 324 |
|
| 325 |
with st.status("🤖 Agent is processing...", expanded=True) as status:
|
|
|
|
| 313 |
2. USE: Score: {sim_score}, Status: {sim_status}
|
| 314 |
3. Query 'get_account_status' ONLY for Name/Nationality/Email.
|
| 315 |
4. Follow the strict 4-step format defined in your system instructions.
|
| 316 |
+
5. Provide a Final Recommendation Report that MUST include:
|
| 317 |
+
- Customer Name, ID, Email
|
| 318 |
+
- Risk Level, Interest Rate
|
| 319 |
+
- Final Decision (Approve/Reject)
|
| 320 |
+
- Justification for Decision (Cite specific PDF policies)
|
| 321 |
+
- Format in a clear markdown table.
|
| 322 |
"""
|
| 323 |
else:
|
| 324 |
query = f"""
|
|
|
|
| 326 |
1. Query SQL tools for Name, Email, Nationality, Status, Score.
|
| 327 |
2. IF Nationality is 'Singaporean', SKIP 'check_pr_status'.
|
| 328 |
3. Follow the strict 4-step format defined in your system instructions.
|
| 329 |
+
4. Provide a Final Recommendation Report that MUST include:
|
| 330 |
+
- Customer Name, ID, Email
|
| 331 |
+
- Risk Level, Interest Rate
|
| 332 |
+
- Final Decision (Approve/Reject)
|
| 333 |
+
- Justification for Decision (Cite specific PDF policies)
|
| 334 |
+
- Format in a clear markdown table.
|
| 335 |
"""
|
| 336 |
|
| 337 |
with st.status("🤖 Agent is processing...", expanded=True) as status:
|