builder
builder
¶
Config-driven fluent builder that wires up a JarvisSystem.
Classes¶
SystemBuilder
¶
SystemBuilder(config: Optional[JarvisConfig] = None, *, config_path: Optional[Any] = None)
Config-driven fluent builder for JarvisSystem.
Source code in src/openjarvis/system/builder.py
Functions¶
engine_instance
¶
engine_instance(engine: InferenceEngine, key: str = 'openai-compat') -> SystemBuilder
Inject a pre-built engine instance, bypassing engine discovery.
Used by callers that must target one exact endpoint (e.g.
jarvis eval --base-url). build() health-checks the instance
and raises a loud error if it is unreachable — it never silently
substitutes a different discovered engine.
Source code in src/openjarvis/system/builder.py
build
¶
build() -> JarvisSystem
Construct a fully wired JarvisSystem.