Agent Policy Metadata
The Python@cascadeflow.agent() decorator and TypeScript harnessAgent() wrapper attach policy metadata directly to a function. They do not create a scoped run or enforce the metadata by themselves.
Basic Usage
Add Compliance
Add KPI Weights
Encode business priorities into how the agent makes model decisions:Different Agents, Different Policies
Multiple functions can carry different policy metadata:Combine with run()
Create a scoped run around the function invocation to enforce runtime controls:TypeScript
All Decorator Parameters
TypeScript uses camelCase parameter names and exports the wrapper as
harnessAgent.