modelFor method

String modelFor(
  1. AgentPhase phase
)

The model to use for phase, falling back to model when the per-phase model is unset.

Implementation

String modelFor(AgentPhase phase) => switch (phase) {
  AgentPhase.planning => plannerModel ?? model,
  AgentPhase.executing => executorModel ?? model,
};