MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / buildTitle

Function buildTitle

apps/cli/src/ai/chat-command.ts:59–63  ·  view source on GitHub ↗
(question?: string)

Source from the content-addressed store, hash-verified

57}
58
59function buildTitle(question?: string): string {
60 const trimmed = question?.trim()
61 if (!trimmed) return 'CLI Chat'
62 return trimmed.length > 50 ? `${trimmed.slice(0, 50)}...` : trimmed
63}
64
65function createAgentStreamError(error: unknown): Error {
66 if (error instanceof Error) return error

Callers 1

resolveAIChatTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected