
    eW                     L    d Z ddlZddlmZ ddlmZ ddlmZ ddl	m
Z
 d Zd	ZdS )
a  
Panel chat makes creating chat components easy
==============================================================

Check out the widget gallery
https://panel.holoviz.org/reference/index.html#chat for inspiration.

How to use Panel widgets in 3 simple steps
------------------------------------------

1. Define your function

>>> async def repeat_contents(contents, user, instance):
>>>     yield contents

2. Define your widgets and callback.

>>> chat_interface = ChatInterface(callback=repeat_contents)

3. Layout the chat interface in a template

>>> template = pn.template.FastListTemplate(
>>>     title="Panel Chat",
>>>     main=[chat_interface],
>>> )
>>> template.servable()

For more detail see the Reference Gallery guide.
https://panel.holoviz.org/reference/chat/ChatInterface.html
    N   )ChatFeed)ChatReactionIcons)ChatInterface)ChatMessagec                 j    | dk    rt          j        d          S t          dt          d|           )z7
    Lazily import langchain module when accessed.
    	langchainzpanel.chat.langchainzmodule z has no attribute )
_importlibimport_moduleAttributeError__name__)names    3lib/python3.11/site-packages/panel/chat/__init__.py__getattr__r   '   s@     {'(>???
I8IIII
J
JJ    )r   r   r   r   r	   )__doc__	importlibr
   feedr   iconr   	interfacer   messager   r   __all__ r   r   <module>r      s    <           # # # # # # $ $ $ $ $ $            K K Kr   