Skip to content

Model Sets

Model Sets define the routing logic that picks a Model Profile for every agent invocation. They let you:

  • Control cost by steering routine or high‑volume tasks to cheaper profiles.
  • Specialize by sending domain‑tagged work to tuned or engineered profiles.
  • Try a new profile on one agent by tagging the agent and adding a rule for that tag. To try it on part of the traffic, put the tagged agent in a new mesh version and use a route.

Quick Reference

Model Set

FieldPurposeGuidance
NameIdentifies the set

Human readable name. Meshes reference a model set by name.

DescriptionRouting intent

Document the cost strategy and specialization goals. Update it as rules change.

Default ruleFallback model profile

The profile used when no matching rule applies. Choose one that handles the majority of agents efficiently.

Matching Rules

FieldPurposeGuidance
Model complexityRoutes by agent complexity

Simple, Medium, Complex or Any. Matches the agent’s Model complexity (Low, Medium, High). Map simple work to cheaper profiles.

Tag conditionsRoutes by agent tags

Zero or more name and value pairs. All conditions must match the agent version’s tags. Use tags such as domain:code to reach tuned profiles.

Model profileThe profile a matching rule selects

Any profile from any provider. Mixing vendors in one set is normal.

OrderRule precedence

Rules are tried top to bottom and the first match wins. Use the up and down arrows on a rule, or drag it. Put the most specific rules first.

Core Concepts

Every set declares:

  • Default rule – the fallback when no rule matches.
  • Matching rules – evaluated top‑down; first match wins. Order is significant, so put the most specific conditions first.
    • Model complexity choices are Simple, Medium, Complex, and Any.
    • Tags are read from the agent version, so changing an agent’s tags creates a new version.

Rules may reference profiles from different providers. Mixing vendors (e.g., Gemini for summarization, Anthropic for code reasoning) lets you optimize for capability, latency, or price within one set.

Design Guidance

  • Order rules from most specific to most general to avoid unintended shadowing.
  • Keep the tag taxonomy lean; merge overlapping tags that don’t change routing behavior.
  • Use the description field to capture intent, version, or experiment notes for later audit.
  • Introduce experimental profiles behind clearly scoped tags (e.g., “exp-summarize”) so rollback is a single delete.
  • Periodically review unmatched traffic; a growing fallback rate can signal missing tags or stale rules.

Related