MCPcopy Create free account
hub / github.com/msgbyte/tailchat / echo

Method echo

server/services/debug.service.ts:23–28  ·  view source on GitHub ↗
(ctx: TcPureContext<{ name: string }>)

Source from the content-addressed store, hash-verified

21
22 // Action
23 echo(ctx: TcPureContext<{ name: string }>): string {
24 console.log(ctx.meta);
25 return `Hello ${
26 ctx.params.name ?? ctx.meta.t('匿名用户')
27 }, \nHere is your meta info: ${JSON.stringify(ctx.meta, null, 2)}`;
28 }
29
30 // Action
31 async sleep(ctx: TcPureContext<{ second: number }>) {

Callers

nothing calls this directly

Calls 1

logMethod · 0.65

Tested by

no test coverage detected