@molroo-ai/sdk
    Preparing search index...

    Interface WorldContext

    World context from the perspective of a specific entity.

    Used to build LLM system prompts with spatial awareness, nearby entities, recent events, and world lore.

    interface WorldContext {
        adjacentSpaces?: string[];
        currentPhase?: string;
        knownFacts?: { content: string; id: string; visibility: string }[];
        whatHappened: WorldEvent[];
        whereAmI: string;
        whoAmI: string;
        whoIsHere: string[];
        worldCulture?: {
            coreValues: string[];
            socialProtocol?: {
                addressSystem?: string;
                greetingStyle?: string;
                tabooTopics?: string[];
            };
        };
        worldIdentity?: { name: string; [key: string]: unknown };
    }
    Index

    Properties

    adjacentSpaces?: string[]
    currentPhase?: string
    knownFacts?: { content: string; id: string; visibility: string }[]
    whatHappened: WorldEvent[]
    whereAmI: string
    whoAmI: string
    whoIsHere: string[]
    worldCulture?: {
        coreValues: string[];
        socialProtocol?: {
            addressSystem?: string;
            greetingStyle?: string;
            tabooTopics?: string[];
        };
    }
    worldIdentity?: { name: string; [key: string]: unknown }