amoorion.society¶
A society simulated locally: personas talking, before anything is said for real.
- class amoorion.society.Persona(*, name, bio='', stance='neutral')[source]¶
Bases:
ModelSomebody in a simulation: a name, who they are, and what they think of things.
- Parameters:
name (str)
bio (str)
stance (str)
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class amoorion.society.Society(personas, think=<function scripted>, run='default')[source]¶
Bases:
objectPersonas reacting to a topic and to each other, in rounds, on a shared feed.
thinkdecides what a persona says; nobody and nothing outside takes part.- Parameters:
- amoorion.society.scripted(persona, topic, feed)[source]¶
No model: a line by stance, answering the last one who spoke.
Modules
Society: personas react to a topic and to each other, round after round. |