Expand description
Provider configuration traits decoupled from VT Code’s dot-config storage.
Consumers can implement ProviderConfig for their own types and use the
conversion helpers to build vtcode_core provider factories without
depending on VT Code’s internal configuration structs.
Structs§
- Adapter
Hooks - Shared adapter that enriches
ProviderConfigconversions withWorkspacePaths, telemetry, and error-reporting hooks fromvtcode-commons. - Owned
Provider Config - Simple builder-friendly provider configuration backed by owned values.
Enums§
- Adapter
Event - Telemetry event emitted when adapter hooks adjust provider configuration.
Traits§
- Adapter
Hooks Provider - Trait that bundles the adapter hook dependencies into a single interface.
This replaces the previous four-parameter generic bound
(
Paths,Telemetry,Reporter,Formatter) with a single trait, following the Config Trait pattern from the Rust Patterns guide (Ch 3 — Config Trait Pattern). - Provider
Config - Trait describing the configuration required to instantiate an LLM provider.
Functions§
- as_
factory_ config - Convert an implementor of
ProviderConfiginto the configuration used by thevtcode_coreprovider factory. - as_
factory_ config_ with_ hooks - Convert a
ProviderConfiginto the factory configuration using the supplied adapter hooks for workspace, telemetry, and error integration.