File size: 235 Bytes
ac8bcc7
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import chainlit as cl


@cl.on_message
async def main(message: cl.Message):
    # Your custom logic goes here...

    # Send a response back to the user
    await cl.Message(
        content=f"Received: {message.content}",
    ).send()