bridge — AgentTeamsModule¶
Lightweight cross-framework compatibility bridges that preserve source canonical documentation.
Source:
agentteams/bridge.py
Public Types¶
BridgeResult¶
Summary of bridge generation or bridge check run.
Fields:
written: written (or would-be-written) pathsskipped: skipped existing pathserrors: error messagesdry_run: whether writes were simulatedcheck_only: whether run was check modecheck_ok: bridge freshness verdictcheck_report_path: report path when check mode runs
Property:
success:Truewhen no errors and check passes (for check mode)
Public Function¶
run_bridge(*, source_dir, target_framework, output_root, source_framework=None, dry_run=False, overwrite=False, check_only=False)¶
Generate bridge artifacts or validate bridge freshness.
Args:
source_dir(Path): canonical source agent directory.target_framework(str): target runtime framework.output_root(Path): root where bridge artifacts are written.source_framework(str | None): optional source override.dry_run(bool): simulate writes.overwrite(bool): overwrite existing bridge artifacts.check_only(bool): run freshness check only.
Returns:
BridgeResult
Raises:
FileNotFoundErrorwhen source directory is missing.ValueErrorfor unknown framework ids.
Artifacts¶
Bridge artifacts are generated in:
references/bridges/<source>-to-<target>/
Core files:
bridge-manifest.jsonagent-inventory.mdquickstart-snippet.mdentrypoint.md
Check mode also emits:
bridge-check.report.md
Notes¶
- Designed for runtime interoperability without full cross-framework regeneration.
- Hash-based freshness checks detect changed, missing, and newly added source files.
- Target entry files are emitted to help route users through source orchestrator-first flow.