jeevesagent.architecture.resolver¶
Resolve architecture specs (string or instance) to a concrete
Architecture instance.
In v0.3, only "react" is shipped as a known string. The resolver
also accepts any object that satisfies the Architecture
protocol — most user-facing flows just pass an instance like
ReAct(max_turns=20) directly.
Future: entry-point discovery so third-party packages can register
custom architectures via [project.entry-points."jeevesagent.architecture"]
and be referenced by string from user code without imports.
Attributes¶
Functions¶
|
Coerce |
Module Contents¶
- jeevesagent.architecture.resolver.resolve_architecture(spec: jeevesagent.architecture.base.Architecture | str | None) jeevesagent.architecture.base.Architecture[source]¶
Coerce
specto a concreteArchitecture.None→ReAct(the default)str→ looked up inKNOWN(only"react"in v0.3)Architecture instance → returned as-is
Unknown strings raise
ConfigErrorwith a list of known names.
- jeevesagent.architecture.resolver.KNOWN: dict[str, type[jeevesagent.architecture.base.Architecture]]¶