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
def supports(model_ref: Optional[str]) -> boolParameters
ParamField
Optional[str]Optional model reference (e.g., “gpt-4”, “claude-3”)
Returns
ResponseField
boolTrue if this runtime can handle the model, False otherwise
Source
View on GitHubpraisonaiagents/runtime/protocols.py at line 203