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

python
def register_runtime(runtime_id: str, factory: Callable[[], AgentRuntimeProtocol]) -> None

Parameters

ParamField str

Unique identifier (e.g., “praisonai”, “claude-code”)

ParamField Callable

Factory function that returns an AgentRuntimeProtocol instance **metadata: Additional metadata for the runtime

Uses

  • _global_registry.register

Source

View on GitHub

praisonaiagents/runtime/registry.py at line 323