langchain/docs
mbchang 628e93a9a0
docs: simplification of two agent d&d simulation (#3550)
Simplifies the [Two Agent
D&D](https://python.langchain.com/en/latest/use_cases/agent_simulations/two_player_dnd.html)
example with a cleaner, simpler interface that is extensible for
multiple agents.

`DialogueAgent`:
- `send()`: applies the chatmodel to the message history and returns the
message string
- `receive(name, message)`: adds the `message` spoken by `name` to
message history

The `DialogueSimulator` class takes a list of agents. At each step, it
performs the following:
1. Select the next speaker
2. Calls the next speaker to send a message 
3. Broadcasts the message to all other agents
4. Update the step counter.
The selection of the next speaker can be implemented as any function,
but in this case we simply loop through the agents.
2023-04-25 16:10:32 -07:00
..
_static docs: Quick fix to Mendable Search (#2876) 2023-04-13 23:15:57 -07:00
ecosystem fix typo in comet_tracking.ipynb (#3505) 2023-04-25 10:50:58 -07:00
getting_started slightly clearer docs (#3088) 2023-04-18 07:28:29 -07:00
modules Update Alchemy Key URL (#3559) 2023-04-25 16:08:42 -07:00
reference Move Generative Agent definition to Experimental (#3245) 2023-04-23 18:32:37 -07:00
tracing bump version to 131 (#2391) 2023-04-04 07:21:50 -07:00
use_cases docs: simplification of two agent d&d simulation (#3550) 2023-04-25 16:10:32 -07:00
conf.py docs: Mendable Search integration (#2803) 2023-04-13 21:52:25 -07:00
deployments.md Add Databutton to list of Deployment options (#3364) 2023-04-24 21:45:38 -07:00
ecosystem.rst added integration links to the ecosystem.rst (#3453) 2023-04-24 12:17:44 -07:00
gallery.rst Update gallery.rst (#3176) 2023-04-19 15:06:59 -07:00
glossary.md big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
index.rst fixed a link to the youtube page (#3232) 2023-04-20 10:47:16 -07:00
make.bat initial commit 2022-10-24 14:51:15 -07:00
Makefile Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
model_laboratory.ipynb big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
reference.rst Move Generative Agent definition to Experimental (#3245) 2023-04-23 18:32:37 -07:00
requirements.txt Harrison/docs reqs (#2199) 2023-03-30 08:20:30 -07:00
tracing.md Harrison/tracing docs (#806) 2023-01-29 20:49:35 -08:00
youtube.md added links to the important YouTube videos (#3244) 2023-04-21 01:31:42 -07:00