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

resolve_architecture(...)

Coerce spec to a concrete Architecture.

Module Contents

jeevesagent.architecture.resolver.resolve_architecture(spec: jeevesagent.architecture.base.Architecture | str | None) jeevesagent.architecture.base.Architecture[source]

Coerce spec to a concrete Architecture.

  • NoneReAct (the default)

  • str → looked up in KNOWN (only "react" in v0.3)

  • Architecture instance → returned as-is

Unknown strings raise ConfigError with a list of known names.

jeevesagent.architecture.resolver.KNOWN: dict[str, type[jeevesagent.architecture.base.Architecture]]