Reference

API catalogue

Find the supported imports and choose the narrowest Yuka Kit primitive for the job.

All items below are exported from yuka-kit unless an entry point is named explicitly. Prefer the smallest primitive that expresses the game rule; the library intentionally avoids a single opaque AI controller.

World and movement

NeedAPI
World lifecyclecreateEntityManager, manage, stepAI
VehiclescreateVehicle, createCombatVehicle
SteeringaddBaseBehaviors, addFlockingBehaviors, seek, flee, arrive, pursuit, evade, wander
Path followingfollowWaypoints, clearDirectionalBehaviors
Grid navigationastar
Sight and projectile safetycreateVisionSensor, inVisionCone, hasAabbLineOfSight2D, hasAabbProjectileClearance2D
Sight that depends on lightlightScaledRange, inLitVisionCone, createLitVisionSensor
HearingcreateHearingSensor, perceiveNoise, attenuateNoise, NoiseBuffer, validateNoiseEvent
Per-target memoryPerceptionMemory, validatePerceptionMemorySnapshot

State and arbitration

NeedAPI
Combat state machinecreateFsm, PatrolState, ChaseState, AttackState, FleeState, DeadState
Generic goalscreateBrain, BrainRegistry, evaluators, createBrainForType
Action planningyuka-kit/goap: planGoap, GoapActionRegistry, GoapPlanGoal, GoapGoalEvaluator, pursueGoap
Boss phasescreateBossBrain, BossBrain, BossPhaseConfig
Combat proposalsTacticalCombatAgent, BossTacticalAgent
Class playthrough decisionscreateClassGovernor, ClassGovernor

Content orchestration and persistence

NeedAPI
Encounter rollsEncounterDirector, generateFormation, SeededRandom
NPC schedulesRoutineAgent, resolveRoutineTarget, resolveStateAwareRoutineTarget
Snapshot validationvalidateFsmStateSnapshot, validateEncounterDirectorSnapshot, validateRoutineAgentSnapshot, validatePerceptionMemorySnapshot, validateGoapPlanSnapshot (goap entry)
Stable proposalsderiveDeterministicIdentity, validateSemanticCommandProposal, selectSemanticCommandProposal
Koota bridgeyuka-kit/koota: AIBridge, AIMemory, AIHearing, AIAwareness, AIPerceptionMemory, AIState, Intent, YukaRef
RPGJS Solo bridgeyuka-kit/solo: SoloAIBridge, SoloCommandAdapter, strict envelope helpers

Every returned AgentIntent is descriptive: it is not a side effect. See the agent integration contract for the validation and authority sequence.