nikeshn commited on
Commit
cc224be
·
verified ·
1 Parent(s): 53bb431

Update src/api/agent.py

Browse files
Files changed (1) hide show
  1. src/api/agent.py +3 -2
src/api/agent.py CHANGED
@@ -3117,11 +3117,12 @@ async def _agent_query_inner(
3117
  follow_up_question, follow_up_suggestions = _social_follow_up()
3118
  return AgentResponse(
3119
  answer=(
3120
- (lambda _c: _c.get("welcome_message") or (
 
3121
  "Hi! I'm <strong>LibBee</strong>, the Khalifa University Library AI Assistant.<br><br>"
3122
  "I can help you find articles and books, search databases, access full text, "
3123
  "request Interlibrary Loan (ILL), and answer questions about library services and staff."
3124
- ))(_get_runtime_config())
3125
  + _source_badge("libbee")
3126
  ),
3127
  intent="social_greeting",
 
3117
  follow_up_question, follow_up_suggestions = _social_follow_up()
3118
  return AgentResponse(
3119
  answer=(
3120
+ _get_runtime_config().get("welcome_message", "").strip()
3121
+ or (
3122
  "Hi! I'm <strong>LibBee</strong>, the Khalifa University Library AI Assistant.<br><br>"
3123
  "I can help you find articles and books, search databases, access full text, "
3124
  "request Interlibrary Loan (ILL), and answer questions about library services and staff."
3125
+ )
3126
  + _source_badge("libbee")
3127
  ),
3128
  intent="social_greeting",