51 lines
1.2 KiB
Python
51 lines
1.2 KiB
Python
"""BDI (Belief-Desire-Intention) module for agent AI.
|
|
|
|
This module provides a BDI architecture that wraps the existing GOAP planner,
|
|
enabling:
|
|
- Persistent beliefs (memory of past events)
|
|
- Long-term desires (personality-driven motivations)
|
|
- Committed intentions (plan persistence)
|
|
|
|
Main entry points:
|
|
- get_bdi_decision(): Get an AI decision using BDI reasoning
|
|
- reset_bdi_state(): Reset all agent BDI state (on simulation reset)
|
|
"""
|
|
|
|
from backend.core.bdi.belief import BeliefBase, MemoryEvent
|
|
from backend.core.bdi.desire import Desire, DesireType, DesireManager
|
|
from backend.core.bdi.intention import (
|
|
Intention,
|
|
IntentionManager,
|
|
CommitmentStrategy,
|
|
)
|
|
from backend.core.bdi.bdi_agent import (
|
|
BDIAgentAI,
|
|
AIDecision,
|
|
TradeItem,
|
|
get_bdi_decision,
|
|
reset_bdi_state,
|
|
remove_agent_bdi_state,
|
|
)
|
|
|
|
__all__ = [
|
|
# Belief system
|
|
"BeliefBase",
|
|
"MemoryEvent",
|
|
# Desire system
|
|
"Desire",
|
|
"DesireType",
|
|
"DesireManager",
|
|
# Intention system
|
|
"Intention",
|
|
"IntentionManager",
|
|
"CommitmentStrategy",
|
|
# BDI Agent
|
|
"BDIAgentAI",
|
|
"AIDecision",
|
|
"TradeItem",
|
|
# Entry points
|
|
"get_bdi_decision",
|
|
"reset_bdi_state",
|
|
"remove_agent_bdi_state",
|
|
]
|