In the game, there is a forest and animals living in it. The interaction of the animals is just a background ambiance.
When googling I found Goal-Oriented Action Planning pattern.
And this pattern seems to solve the issue. If we give goals to the animals while achieving their goals they can behave realistically for the ambiance.
After more research, I found a paper which is advising extending GOAP with smart ambiance objects to make agents behave context aware. "Feeling the Ambiance: Using Smart Ambiance to Increase Contextual Awareness in Game Agents"
For example, think of an adventure game, the player is searching for clues/items in the forest.
Meanwhile, a bird (non-player character) is looking for a fruit on the tree to eat. Bird sees a fruit on the tree but also saws a snake danger close to the fruit. So bird afraid and do not decide to eat that fruit...
Are there other algorithms/patterns that you can remind to solve this need?