|
520 | 520 | " include_output:bool=True, # Include output in returned dict?\n", |
521 | 521 | " dname:str='' # Running dialog to get info for; defaults to current dialog\n", |
522 | 522 | "):\n", |
523 | | - " \"Find `list[dict]` of messages in current specific dialog that contain the given information. Call with no args to see the full dialog. To refer to a message found later, use its `id` field.\"\n", |
| 523 | + " \"\"\"Find `list[dict]` of messages in current specific dialog that contain the given information. Call with no args to see the full dialog.\n", |
| 524 | + " Message ids are identical to those in LLM chat history, so do NOT call this to view a specific message -- instead use `read_msgid`.\n", |
| 525 | + " Note that LLM chat history only includes messages above the current prompt, whereas `find_msgs` can access *all* messages.\n", |
| 526 | + " To refer to a message found later, use its `id` field.\"\"\"\n", |
524 | 527 | " res = call_endp('find_msgs_', dname, json=True, re_pattern=re_pattern, msg_type=msg_type, limit=limit)['msgs']\n", |
525 | 528 | " if not include_output:\n", |
526 | 529 | " for o in res: o.pop('output', None)\n", |
|
661 | 664 | " nums:bool=False, # Whether to show line numbers\n", |
662 | 665 | " dname:str='' # Running dialog to get info for; defaults to current dialog\n", |
663 | 666 | " ):\n", |
664 | | - " \"\"\"Get message `msgid`. Shortcut for `read_msg(n=0, relative=True, msgid=msgid...)`.\"\"\"\n", |
| 667 | + " \"\"\"Get message `msgid`. Message IDs can be view directly in LLM chat history/context, or found in `find_msgs` results.\"\"\"\n", |
665 | 668 | " return read_msg(0, msgid=msgid, view_range=view_range, nums=nums, dname=dname)" |
666 | 669 | ] |
667 | 670 | }, |
|
0 commit comments