ExtensionAPI(
self,
registry: ExtensionRegistry,
source: SourceInfo,
*,
cwd: Path,
mode: ExtensionMode| Name | Type | Description |
|---|---|---|
registry* | ExtensionRegistry | |
source* | SourceInfo | |
cwd* | Path | |
mode* | ExtensionMode |
| Name | Type |
|---|---|
| registry | ExtensionRegistry |
| source | SourceInfo |
| cwd | Path |
| mode | ExtensionMode |
Factory-scoped registrar and read-only session context.
Each extension receives a dedicated instance, which attributes every registration to the extension's source without exposing mutable dcode application state.
Shared registry receiving extension units.
Provenance recorded on each registration.
Working directory for this session.
Runtime mode, either interactive or headless.
Working directory for this session.
Runtime mode, either interactive or headless.
Whether this session has an interactive terminal UI.
Entry file for this extension.
Install LangChain middleware on the agent.
A class is instantiated without arguments. Pass an instance when construction requires configuration.
Expose an LLM-callable tool.
Plain callables are converted using LangChain's tool schema inference.
Mount a backend under a virtual filesystem path.
File operations under prefix are routed to backend by the agent's
CompositeBackend. Shell execution remains on the default backend and
cannot access routed virtual content.
Register a deterministic session teardown callback.