How to get Agent's Behavior Type in ML-agents

I would like to set the interval to request decisions differently according to the agent’s behavior type(Default, Heuristic Only, Inference Only).

How could get the behavior type of the agent in code?

I find the enum called ‘BehaviorType’ in docs, but I am not sure whether ‘Agent’ has a member variable about it.

gameobject.GetComponent<BehaviorParameters>().BehaviorType = 1;//0 for Default, 1 for heuristic, 2 for Inference

https://forum.unity.com/threads/how-to-access-behavior-type-of-an-agent-object-in-code.995113/