interop — AgentTeamsModule¶
Canonical Agent Interface (CAI)-based interoperability pipeline across supported frameworks.
Source:
agentteams/interop.py
Public Types¶
InteropResult¶
Summary of an interop run.
Fields:
converted: target files converted/written.skipped: skipped target files.errors: pipeline errors.bundle_files: emitted bundle artifact files.dry_run: whether run was simulated.
Property:
success:Truewhenerrorsis empty.
Public Functions¶
detect_framework(source_dir)¶
Best-effort framework detection from directory shape and file signatures.
Returns one of:
copilot-vscodecopilot-cliclaude
export_to_cai(source_dir, source_framework=None)¶
Exports source team files to CAI payload.
Returns CAI object with keys including:
schema_versionsource_frameworkinstructions_bindingagents
import_from_cai(cai, target_framework, target_dir, *, dry_run=False, overwrite=False)¶
Imports CAI payload into target framework files.
Returns:
InteropResult
run_interop(source_dir, target_framework, target_dir, *, source_framework=None, mode='direct', dry_run=False, overwrite=False)¶
End-to-end interop operation.
Modes:
direct: target files onlybundle: target files plus compatibility artifacts
Bundle artifacts are emitted under references/interop/<source>-to-<target>/.
Notes¶
- CAI path is intended for deterministic cross-framework transport.
- Bundle mode emits routing/instructions manifests for external consumers.
- Framework wrappers are normalized while preserving semantic markdown payload.