agentOf static method

Agent? agentOf(
  1. Actor actor
)

Get the Agent class this Actor would call, or undefined if the Actor would use the default agent (global.ic.agent). @param actor The actor to get the agent of.

Implementation

static Agent? agentOf(Actor actor) {
  return actor.metadata.config?.agent;
}