moo.agent.lore
krustylu lore source for moo-agent world-builders.
LoreClient wraps a streamable-HTTP MCP session to the krustylu Simpsons
archive and turns a location or character into a compact, build-ready text
brief — a condensed wiki summary plus the precise detail that lives in the
script lines (stage directions, signature dialogue, the characters who haunt a
place). Builders consume the brief through the lore_room/lore_character
tools; the model never sees krustylu’s raw query schema.
Every public method is defensive: a miss, a malformed query, or an unreachable server yields an empty-but-usable string, never an exception into the LLM cycle. The curation itself lives in module-level pure functions so it can be unit tested against captured query results without a live server.
Functions
|
Assemble the bounded character brief from raw krustylu rows. |
|
Assemble the bounded room brief from raw krustylu rows. |
|
Reduce a krustylu wiki |
|
Strip quote characters that the krustylu FTS parser chokes on. |
|
Replace |
|
Sort a |
Classes
|
A persistent streamable-HTTP MCP client to the krustylu archive. |