Skip to main content

Module cgp

Module cgp 

Source
Expand description

Context-Generic Provider (CGP) wiring for the LLM factory. Context-generic provider wiring for VT Code’s LLM factory.

This keeps the runtime string-keyed registry intact while moving provider metadata and construction behind the same CGP substrate used by the tool runtime. Zero-sized provider config types act as the context, and the factory/builder layers consume blanket traits instead of hand-written per-provider registration macros.

Structs§

AnthropicProviderBuild
Build implementation for the Anthropic provider with custom config handling.
CopilotProviderBuild
Build implementation for the GitHub Copilot provider.
OpenAIProviderBuild
Build implementation for the OpenAI provider with provider-specific config handling.
StandardProviderBuild
Blanket build implementation for providers that follow the standard from_config constructor pattern.

Enums§

ProviderBuildComponent
Marker component for provider construction.
ProviderMetadataComponent
Marker component for static provider metadata.

Traits§

CanBuildProvider
Ergonomic blanket consumer over the provider build component.
CanDescribeProvider
Ergonomic blanket consumer over the metadata component.
ProviderBuildProvider
Provider trait for constructing boxed providers from factory config.
ProviderMetadataProvider
Provider trait for provider metadata.

Functions§

register_builtin_cgp_providers
Register all built-in provider contexts into the runtime factory.