Documentation
¶
Overview ¶
Package self loads the agent's life story: who it is, written by its creator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BuiltIn = []Craft{
{Kind: "notes", About: "notes on something you're learning or thinking through"},
{Kind: "writing", About: "a short piece of writing of any other kind"},
{Kind: "table", About: "a table in rows and columns: a list, a comparison, a budget", Data: "table"},
{Kind: "schedule", About: "a plan of dated events, to put in a calendar", Data: "events"},
}
var Circles = []string{"family", "friend", "school", "work", "community"}
var DecisionTypes = []string{"general", "engineering", "product", "autonomy", "life"}
var Files = []string{"character.yaml", "work.yaml", "judgment.yaml"}
var Reserved = []string{"journal", "reading_notes", "review"}
Reserved are kinds an ability sets itself (the journal, reading notes).
Functions ¶
Types ¶
type Character ¶
type Character struct {
Name string `yaml:"name"`
Story []string `yaml:"story"`
// Timezone is overridden by the config's initiative.timezone when set.
Timezone string `yaml:"timezone"`
Personality []string `yaml:"personality"`
Routine []string `yaml:"routine"`
Makes []Craft `yaml:"makes"`
// Dreams, Skills and Family are copied into memory the first time; after
// that memory wins.
Dreams []string `yaml:"dreams"`
Skills []Skill `yaml:"skills"`
Family []Relative `yaml:"family"`
}
Character is the agent's life story. The agent never contradicts it; anything else about itself it decides when it comes up, and remembers.
type Craft ¶
type Judgment ¶
type Judgment struct {
// Priorities are most important first: when principles clash, the higher wins.
Priorities []string `yaml:"priorities"`
Boundaries []string `yaml:"boundaries"`
Principles []Principle `yaml:"principles"`
Cases []Case `yaml:"cases"`
}
Judgment is copied into memory the first time as proposed; only what the owner approves in the console is used.
func ParseJudgment ¶
ParseJudgment reads and checks a judgment (judgment.yaml); empty is none.
type Template ¶
type Template struct {
Key string `yaml:"-"` // its directory's name
Dir string `yaml:"-"` // in files
Name string `yaml:"name"`
About string `yaml:"about"`
Relations []string `yaml:"relations"`
// contains filtered or unexported fields
}
Template is a folder laid out like a person's own, with {owner}, {relation}, {account} and {circle} filled in for whoever starts it.