Register Runtime • AI Agent SDK
register_runtime: Register a runtime factory with the global registry.
register_runtime
Function
</div>
This function is defined in the registry module.
Register a runtime factory with the global registry.
Signature
def register_runtime(runtime_id: str, factory: Callable[[], AgentRuntimeProtocol]) -> NoneParameters
ParamField
strUnique identifier (e.g., “praisonai”, “claude-code”)
ParamField
CallableFactory function that returns an AgentRuntimeProtocol instance **metadata: Additional metadata for the runtime
Uses
_global_registry.register
Source
View on GitHubpraisonaiagents/runtime/registry.py at line 323