This commit is contained in:
2023-12-11 05:20:49 +00:00
parent 71986d5c9e
commit c590c49a1d
4 changed files with 85 additions and 35 deletions

View File

@@ -542,7 +542,7 @@ end
""" Add chunked text to a short term memory of a chat agent
Args:
Arguments:
shortMem = short memory of a chat agent,
chunkedtext = a dict contains text
@@ -574,7 +574,7 @@ end
""" Split text using all keywords in a list. Start spliting from rightmost of the text.
Args:
Arguments:
text = a text you want to split
list = a list of keywords you want to split
@@ -625,7 +625,7 @@ end
""" Add step number to header in a text
Args:
Arguments:
text = a text you want to split
headers = a list of keywords you want to add step and substep to
@@ -659,7 +659,7 @@ end
""" Convert short term memory into 1 continous string.
Args:
Arguments:
shortMemory = a short term memory of a ChatAgent's agent
skiplist = a list of keys in memory you want to skip
@@ -718,7 +718,7 @@ end
""" Remove headers of specific step from memory.
Args:
Arguments:
shortMemory = a short term memory of a ChatAgent's agent
skipHeaders = a list of keys in memory you want to skip
step = a step number you want to remove
@@ -783,7 +783,7 @@ end
""" Keep only specified keys in a dictionary. All non-specified keys will be removed.
Args:
Arguments:
dict = a dictionary
keys = keys you want to keep in a dict
@@ -823,7 +823,7 @@ end
""" Convert experience dict into 1 string for LLM to use.
Args:
Arguments:
dict = a dictionary contain past experience
Return: