Update agent.h

add more agent functions