This paper presents an architecture for a multi-agent system for the RoboCup simulation league. It consists of a dynamic dual behavior-based architecture for an intelligent agent, a behaviorbased decision algorithm, and a dynamic role-based multi-agent cooperation model. A new concept called confidence function is introduced to balance reactivity and deliberation. This architecture was implemented in a team, and match results demonstrate its validity.