Expand description
Adapter between config-level and factory-level provider configurations.
Re-exported from vtcode_llm::config_adapter to eliminate duplication.
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.