Files
wehub-resource-sync 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
chore: import upstream snapshot with attribution
2026-07-13 12:48:47 +08:00

34 lines
688 B
Python

import chainlit as cl
@cl.step(name="search", type="tool", icon="search")
async def search():
await cl.sleep(1)
return "Response from search"
@cl.step(name="database", type="tool", icon="database")
async def database():
await cl.sleep(1)
return "Response from database"
@cl.step(name="regular", type="tool")
async def regular():
await cl.sleep(1)
return "Response from regular"
async def cpu():
async with cl.Step(name="cpu", type="tool", icon="cpu") as s:
await cl.sleep(1)
s.output = "Response from cpu"
@cl.on_message
async def main(message: cl.Message):
await search()
await database()
await regular()
await cpu()