"""Fallback agent tools -- handles unmatched intents and clarification requests.""" from __future__ import annotations from langchain_core.tools import tool @tool def fallback_respond(query: str) -> str: """Provide a helpful response when the user's intent doesn't match a specific agent.""" return ( "I'm here to help with order inquiries and actions. " "Here's what I can do:\n" "- Check order status (e.g., 'What is the status of order 1042?')\n" "- Get tracking information (e.g., 'Track order 1042')\n" "- Cancel an order (e.g., 'Cancel order 1042')\n" "- Apply discounts or generate coupons\n\n" "Could you please rephrase your request?" )