This application relates to the field of
artificial intelligence technology, and in particular to a method, apparatus,
system, device, and medium for generating virtual pet behavior. The method includes: acquiring a structured context, wherein the structured context includes at least one of entity relationship knowledge, virtual pet data,
environmental perception data, memory data, and decision-making logic; selecting objects using a large
language model based on the structured context and an object
list to determine the
interaction object; selecting a behavior using the large
language model based on the structured context, the
interaction object, and a behavior
library to determine the target behavior; and generating an action sequence using the large
language model based on the structured context, the
interaction object, the target behavior, and an action operation
library. This method utilizes a large language model combined with structured context, a behavior
library, and an action operation library to achieve
intelligent decision-making and generation of virtual pet behavior, thereby enhancing the "
vitality" and interactive experience of the virtual pet.