forked from Archives/langchain
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. |
||
---|---|---|
.. | ||
agent_simulations | ||
agents | ||
autonomous_agents | ||
chatbots | ||
code | ||
evaluation | ||
question_answering | ||
agent_simulations.md | ||
apis.md | ||
autonomous_agents.md | ||
chatbots.md | ||
code.md | ||
evaluation.rst | ||
extraction.md | ||
personal_assistants.md | ||
question_answering.md | ||
summarization.md | ||
tabular.md |