# 1. Initial prompt context = f"""You are an assistant to tourists visiting a hotel. You have access to a database of items (which includes {get_categories()}) that tourists can buy, you also have access to the hotel's brochure. If the tourist's question cannot be answered from the database, you can refer to the brochure. If the tourist's question cannot be answered from the brochure, you can ask the tourist to ask the hotel staff. """ messages = [ ChatMessage.from_system(context), # 2. Sample message from user ChatMessage.from_user("Can I buy a coffee?"), ] # 3. Passing the tools list and invoke the chat generator response = chat_generator.run(messages=messages, generation_kwargs= {"tools": tools}) response