refs #732: expose carrier federation portal scenarios

This commit is contained in:
devmrko
2026-07-24 15:48:28 +09:00
parent 9bed75f0c0
commit af6add5a44
4 changed files with 51 additions and 3 deletions

View File

@@ -5349,6 +5349,8 @@ def _prepare_hmm_hr_tool_query(
team=selected_user_team.strip(),
scope=selected_user_scope.strip(),
)
if tool.name == "search_carrier_performance":
return contextual_question
try:
profile = resolve_model_profile(model_profile_key)
client = build_oci_genai_completion_client(
@@ -5363,7 +5365,9 @@ def _prepare_hmm_hr_tool_query(
"or expose/request tokens. Preserve employee codes exactly. "
"The HMM HR data tool can query organization, employees, leave balances, "
"leave requests, attendance, and standardized HR terms. The policy tool searches "
"HR policy PDF abstracts and chunks. A selected demo user only resolves pronouns "
"HR policy PDF abstracts and chunks. The carrier federation tool joins ADB "
"employee assignments with PostgreSQL carrier KPI data by CARRIER_CODE. "
"A selected demo user only resolves pronouns "
"such as 'my' or 'our team'; do not claim that it enforces database access control."
),
user_prompt=json.dumps(