Apply Optimization
metrx_apply_optimizationApply a one-click optimization to an agent, such as setting token limits or switching models. Only use for validated suggestions; run an experiment first if uncertain about impact.
Instructions
Apply a one-click optimization recommendation to an agent. Only works for suggestions marked as "one_click: true". Common optimizations include setting max_tokens limits and switching models. Do NOT use for unvalidated changes — run create_model_experiment first if unsure about impact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent to apply the optimization to | |
| optimization_type | Yes | The type of optimization to apply (e.g., "token_guardrails", "model_switch") | |
| payload | No | Override the default optimization payload (advanced) |