supports • AI Agent SDK

supports: Check if this runtime supports the given model reference.

supports

Method

</div>

This is a method of the AgentRuntimeProtocol class in the protocols module.

Check if this runtime supports the given model reference.

Signature

python
def supports(model_ref: Optional[str]) -> bool

Parameters

ParamField Optional[str]

Optional model reference (e.g., “gpt-4”, “claude-3”)

Returns

ResponseField bool

True if this runtime can handle the model, False otherwise

Source

View on GitHub

praisonaiagents/runtime/protocols.py at line 203