Create agent_api.go