langchain/docs/use_cases
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
..
agent_simulations docs: simplification of two agent d&d simulation (#3550) 2023-04-25 16:10:32 -07:00
agents Move Generative Agent definition to Experimental (#3245) 2023-04-23 18:32:37 -07:00
autonomous_agents update notebook 2023-04-24 11:30:06 -07:00
chatbots Harrison/voice assistant (#3347) 2023-04-22 08:25:50 -07:00
code Deep Lake mini upgrades (#3375) 2023-04-23 21:23:54 -07:00
evaluation Fix notebook example (#3142) 2023-04-19 08:55:06 -07:00
question_answering Deep Lake mini upgrades (#3375) 2023-04-23 21:23:54 -07:00
agent_simulations.md docs: two_player_dnd docs (#3528) 2023-04-25 08:24:53 -07:00
apis.md Update apis.md (#2278) 2023-04-01 12:48:16 -07:00
autonomous_agents.md add meta-prompt to autonomous agents use cases (#3254) 2023-04-24 10:48:38 -07:00
chatbots.md Harrison/voice assistant (#3347) 2023-04-22 08:25:50 -07:00
code.md bump ver to 140 (#2895) 2023-04-15 09:23:19 -07:00
evaluation.rst [Docs] minor fixes to loaders links and rst warnings (#2846) 2023-04-13 10:54:40 -07:00
extraction.md
personal_assistants.md add to docs 2023-04-20 15:43:57 -07:00
question_answering.md Harrison/qa eg (#3052) 2023-04-17 20:56:42 -07:00
summarization.md
tabular.md