mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
4bc209c6f7
This notebook shows how the DialogueAgent and DialogueSimulator class make it easy to extend the [Two-Player Dungeons & Dragons example](https://python.langchain.com/en/latest/use_cases/agent_simulations/two_player_dnd.html) to multiple players. The main difference between simulating two players and multiple players is in revising the schedule for when each agent speaks To this end, we augment DialogueSimulator to take in a custom function that determines the schedule of which agent speaks. In the example below, each character speaks in round-robin fashion, with the storyteller interleaved between each player. |
||
---|---|---|
.. | ||
camel_role_playing.ipynb | ||
characters.ipynb | ||
multi_player_dnd.ipynb | ||
two_player_dnd.ipynb |