Mmidwinter1993update api reference
5c0fa3c9创建于 2025年7月4日历史提交

Package memory

class ShortMemory

func search(question: String): Array<String>
  • Description: According to the user question, find related content in the memory.
  • Parameters:
    • question: String, The user question to search for related content in the memory.

func update

func update(segment: String): Unit
  • Description: Add a segment of text to the memory.
  • Parameters:
    • segment: String, The segment of text to be added to the memory.