register
Method
This is a method of the RuntimeRegistryProtocol class in the registry module.Register a runtime with the registry.
Signature
Parameters
str
required
Unique runtime identifier (e.g., “claude-code”)
Any
required
Runtime factory function or instance **metadata: Additional metadata for the runtime
Exceptions
ValueError
ValueError
If runtime_id is already registered
TypeError
TypeError
If factory_or_instance is not callable or valid instance
Used By
HookRegistry.register_functionHookRegistry.register_commandregister_middlewareregister_runtimetool
Source
View on GitHub
praisonaiagents/runtime/registry.py at line 46
