populate调用(即程序中执行某段代码的行为)代理(Agent)州(States)
Populates agent states for the current invocation if it is resumable.
For history events that contain agent state information, set the agentState and endOfAgent of the agent that generated the event.
For non-workflow agents, also set an initial agentState if it has already generated some contents.