Agent-Based Logics in Dependent Type Theory