Inference.Adapters.ASM (inference v0.3.0)

Copy Markdown View Source

Adapter for Agent Session Manager.

The consuming application must install and configure :agent_session_manager.

ASM owns its own option contract: ASM.Options.validate/2 is the run-path gate. This adapter does not re-impose ASM's strict-common preflight from the outside; it maps the provider-neutral request onto ASM options, locks the completion-only provider profile, and refuses tools it cannot honor.

The adapter reads ASM's total common-feature manifest at runtime. Claude and Codex currently prove the completion-only contract. Amp, Antigravity, and Cursor remain recognized ASM providers, but this adapter refuses them before dispatch because their SDK contracts do not currently prove completion-only execution.

{:json_schema, _} response formats map onto ASM's :output_schema option.