MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / agentT

Function agentT

packages/node-runtime/src/ai/agent/prompt-builder.ts:62–64  ·  view source on GitHub ↗
(t: TranslateFn, key: string, locale: string, options?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

60}
61
62function agentT(t: TranslateFn, key: string, locale: string, options?: Record<string, unknown>): string {
63 return t(key, { lng: locale, ...options })
64}
65
66function formatNullableTimestamp(timestamp: number | null | undefined): string {
67 return typeof timestamp === 'number' && Number.isFinite(timestamp) ? String(timestamp) : 'null'

Callers 4

getLockedPromptSectionFunction · 0.85
buildSystemPromptFunction · 0.85

Calls 1

tFunction · 0.50

Tested by

no test coverage detected