b7f52be4c9
CI / Run CI (push) Has been cancelled
CI / check-backend (push) Has been cancelled
CI / check-frontend (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / e2e-tests (push) Has been cancelled
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
16 lines
371 B
Python
16 lines
371 B
Python
import chainlit as cl
|
|
|
|
|
|
@cl.set_starters
|
|
async def starters():
|
|
return [
|
|
cl.Starter(label="test1", message="Running starter 1"),
|
|
cl.Starter(label="test2", message="Running starter 2"),
|
|
cl.Starter(label="test3", message="Running starter 3"),
|
|
]
|
|
|
|
|
|
@cl.on_message
|
|
async def on_message(msg: cl.Message):
|
|
await cl.Message(msg.content).send()
|