Adding model policies
BASH
Importing model policies
BASH
After you create a model policy, assign the policy to your agent by using the ADK and the agent YAML file. Assign the policy the same way that you assign a regular model. You cannot assign a model policy to a Generative Prompt Activity in a flow.
my_spec.yaml file follows this structure:
- Load balancing
- Fallback
- Single
[my_spec.yaml]
--file(-f): File path of the spec file containing the model policy configuration.
Updating model policy
Use either theadd or import commands with the name of the model policy that you want to update to update the model policy.
Exporting model policy
BASH
Removing model policies
BASH

