Verify Capability Contract • AI Agent SDK

verify_capability_contract: Check that each declared “supports_*“ flag is actually backed.

Next

verify_capability_contract

Function

</div>

This function is defined in the base module.

Check that each declared `supports_*` flag is actually backed.

For every flag in :data:CAPABILITY_BACKING that the adapter declares `True, verify the backing method is present and not left as the unbacked :class:BasePlatformAdapter` default. Returns the list of human-readable violation strings (empty when the contract holds).

Callers that want to fail loudly at registration time should call :func:enforce_capability_contract instead; this function itself never raises, so it is safe to use in a lenient/warn-only mode.

Signature

python
def verify_capability_contract(adapter: Any) -> List[str]

Parameters

ParamField Any

No description available.

Returns

ResponseField List[str]

The result of the operation.

Uses

  • callable

Used By

Source

View on GitHub

praisonaiagents/bots/base.py at line 119