@@ -68,6 +68,34 @@ func (p *AgentPlugin) WiringHooks() []plugin.WiringHook {
6868 }
6969}
7070
71+ // NewProviderModuleFactory returns the plugin.ModuleFactory for "agent.provider".
72+ // This is exported so other plugins can embed the factory without loading the
73+ // full AgentPlugin (which would cause duplicate step type registration conflicts).
74+ func NewProviderModuleFactory () plugin.ModuleFactory {
75+ return newProviderModuleFactory ()
76+ }
77+
78+ // NewProviderTestFactory returns the plugin.StepFactory for "step.provider_test".
79+ // Exported for use by host plugins that embed agent capabilities without loading
80+ // AgentPlugin as a standalone plugin.
81+ func NewProviderTestFactory () plugin.StepFactory {
82+ return newProviderTestFactory ()
83+ }
84+
85+ // NewProviderModelsFactory returns the plugin.StepFactory for "step.provider_models".
86+ // Exported for use by host plugins that embed agent capabilities without loading
87+ // AgentPlugin as a standalone plugin.
88+ func NewProviderModelsFactory () plugin.StepFactory {
89+ return newProviderModelsFactory ()
90+ }
91+
92+ // ProviderRegistryHook returns the wiring hook that creates the agent-provider-registry.
93+ // Exported for use by host plugins that embed agent capabilities without loading
94+ // AgentPlugin as a standalone plugin.
95+ func ProviderRegistryHook () plugin.WiringHook {
96+ return providerRegistryHook ()
97+ }
98+
7199// ModuleSchemas returns schema definitions for IDE completions and config validation.
72100func (p * AgentPlugin ) ModuleSchemas () []* schema.ModuleSchema {
73101 return []* schema.ModuleSchema {
0 commit comments