[agent] update knowType

+ add str property
+ change cid property from a function to a string