agentic_fabric.runners.registry¶
Lazy runtime registry for optional agent frameworks.
Module Contents¶
Classes¶
Metadata required to discover and instantiate one runtime. |
Functions¶
Register or replace one runtime spec. |
|
Return registered runtime specs in priority order. |
|
Return registered runtime names in priority order. |
|
Return a registered runtime spec. |
|
Clear cached optional-runtime availability. |
|
Return whether a runtime import target is importable. |
|
Return available runtime names in priority order. |
|
Return runtime metadata with current availability. |
|
Return a runtime spec or raise install guidance if unavailable. |
|
Instantiate a runner from the lazy registry. |
|
Return the install command for one registered runtime. |
API¶
- class agentic_fabric.runners.registry.RuntimeSpec¶
Metadata required to discover and instantiate one runtime.
- name: str = None¶
- import_name: str = None¶
- runner_module: str = None¶
- runner_class: str = None¶
- install: str = None¶
- extra: str | None = None¶
- description: str = <Multiline-String>¶
- as_dict(*, available: bool) dict[str, Any]¶
Return serializable runtime metadata.
Bases:
RuntimeErrorRaised when an optional runtime cannot be selected.
Initialization
Initialize the error with runtime-specific install guidance.
- agentic_fabric.runners.registry.register_runtime(spec: agentic_fabric.runners.registry.RuntimeSpec) None¶
Register or replace one runtime spec.
- agentic_fabric.runners.registry.runtime_specs() types.MappingProxyType[str, agentic_fabric.runners.registry.RuntimeSpec]¶
Return registered runtime specs in priority order.
- agentic_fabric.runners.registry.runtime_names() list[str]¶
Return registered runtime names in priority order.
- agentic_fabric.runners.registry.get_runtime_spec(runtime: str) agentic_fabric.runners.registry.RuntimeSpec¶
Return a registered runtime spec.
- agentic_fabric.runners.registry.clear_runtime_cache() None¶
Clear cached optional-runtime availability.
- agentic_fabric.runners.registry.is_runtime_available(runtime: str) bool¶
Return whether a runtime import target is importable.
- agentic_fabric.runners.registry.available_runtimes() list[str]¶
Return available runtime names in priority order.
- agentic_fabric.runners.registry.runtime_info(runtime: str | None = None) list[dict[str, Any]] | dict[str, Any]¶
Return runtime metadata with current availability.
- agentic_fabric.runners.registry.require_runtime(runtime: str) agentic_fabric.runners.registry.RuntimeSpec¶
Return a runtime spec or raise install guidance if unavailable.
- agentic_fabric.runners.registry.load_runner(runtime: str) Any¶
Instantiate a runner from the lazy registry.
- agentic_fabric.runners.registry.install_command(runtime: str) str¶
Return the install command for one registered runtime.