Measure

Measure(name, title, description, func, params, injected=(), provenance=())

A trusted calculation the agent can run.

params describes only the arguments the model supplies; injected names the arguments commons supplies, which the model never sees.

Methods

Name Description
validate_args Check and coerce the model’s arguments against the schema.

validate_args

Measure.validate_args(args)

Check and coerce the model’s arguments against the schema.

The provider only ever sees call_measure, so a measure’s own arguments arrive unchecked and are validated here.