simulatecraft.server.persona¶
simulatecraft.server.persona
¶
Build structured agent personas from free text or roster CSV/Excel rows.
AgentProfile
¶
Bases: BaseModel
One roster row ready to become an agent (schema-agnostic).
minecraft_username
¶
Minecraft usernames: 1–16 chars, [A-Za-z0-9_].
Source code in src/simulatecraft/server/persona.py
build_structured_persona
¶
build_structured_persona(profile: AgentProfile | None = None, *, draft: str = '', settings: AgentWorkshopSettings | None = None) -> str
Deterministic structured system prompt from profile fields and/or draft notes.
Source code in src/simulatecraft/server/persona.py
generate_persona
async
¶
generate_persona(*, text: str, name: str | None = None, use_llm: bool = True, model: str | None = None, instructions: str | None = None, settings: AgentWorkshopSettings | None = None) -> GeneratePromptResponse
Expand rough notes into a structured persona; optionally polish with the LLM.