llamaindexfunctionsFunction: messagesToHistoryStr()Trên trang nàyFunction: messagesToHistoryStr() messagesToHistoryStr(messages): string Parameters • messages: ChatMessage[] Returns string Source packages/core/src/Prompt.ts:361