langchain/docs/use_cases/agent_simulations
mbchang ce6dbe41a9
minor refactor GenerativeAgentMemory (#5315)
# minor refactor of GenerativeAgentMemory

<!--
Thank you for contributing to LangChain! Your PR will appear in our
release under the title you set. Please make sure it highlights your
valuable contribution.

Replace this with a description of the change, the issue it fixes (if
applicable), and relevant context. List any dependencies required for
this change.

After you're done, someone will review your PR. They may suggest
improvements. If no one reviews your PR within a few days, feel free to
@-mention the same people again, as notifications can get lost.
-->

<!-- Remove if not applicable -->

- refactor `format_memories_detail` to be more reusable
- modified prompts for getting topics for reflection and for generating
insights
- update `characters.ipynb` to reflect changes

## Before submitting

<!-- If you're adding a new integration, please include:

1. a test for the integration - favor unit tests that does not rely on
network access.
2. an example notebook showing its use


See contribution guidelines for more information on how to write tests,
lint
etc:


https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
-->

## Who can review?

Community members can review the PR once tests pass. Tag
maintainers/contributors who might be interested:

<!-- For a quicker response, figure out the right person to tag with @

  @hwchase17 - project lead

  Tracing / Callbacks
  - @agola11

  Async
  - @agola11

  DataLoaders
  - @eyurtsev

  Models
  - @hwchase17
  - @agola11

  Agents / Tools / Toolkits
  - @vowelparrot

  VectorStores / Retrievers / Memory
  - @dev2049
        
 -->
@vowelparrot
@hwchase17
@dev2049
2023-06-03 14:53:14 -07:00
..
camel_role_playing.ipynb
characters.ipynb minor refactor GenerativeAgentMemory (#5315) 2023-06-03 14:53:14 -07:00
gymnasium.ipynb docs: remove stdout from pip install (for gymnasium) (#3993) 2023-05-02 21:51:40 -07:00
multi_player_dnd.ipynb refactor: refactor dialogue examples (DialogueAgent, DialogueSimulator) (#4074) 2023-05-03 22:32:26 -07:00
multiagent_authoritarian.ipynb refactor: refactor dialogue examples (DialogueAgent, DialogueSimulator) (#4074) 2023-05-03 22:32:26 -07:00
multiagent_bidding.ipynb refactor: refactor dialogue examples (DialogueAgent, DialogueSimulator) (#4074) 2023-05-03 22:32:26 -07:00
petting_zoo.ipynb docs: remove stdout from pip install (#3945) 2023-05-01 22:05:22 -07:00
two_agent_debate_tools.ipynb fix: remove unnecessary line of code (#4408) 2023-05-09 10:35:09 -07:00
two_player_dnd.ipynb refactor: refactor dialogue examples (DialogueAgent, DialogueSimulator) (#4074) 2023-05-03 22:32:26 -07:00