Interface IConnectorBuilder
- Namespace
- JD.AI.Connectors.Sdk
- Assembly
- JD.AI.Connectors.Sdk.dll
Fluent builder for registering connector components.
public interface IConnectorBuilder
Properties
ConnectorName
The connector name from its JdAiConnectorAttribute.
string ConnectorName { get; }
Property Value
Services
The underlying service collection.
IServiceCollection Services { get; }
Property Value
Methods
AddAuthentication<TAuth>()
Registers an authentication provider for this connector.
IConnectorBuilder AddAuthentication<TAuth>() where TAuth : class, IConnectorAuthProvider
Returns
Type Parameters
TAuthThe auth provider type implementing IConnectorAuthProvider.
AddLoadout(string, Func<string, bool>)
Registers a named tool loadout scoped to this connector.
IConnectorBuilder AddLoadout(string loadoutName, Func<string, bool> filter)
Parameters
loadoutNamestringName of the loadout (e.g. "jira-readonly").
filterFunc<string, bool>Predicate to select which tool names belong to this loadout.
Returns
AddToolPlugin<TPlugin>()
Registers a Semantic Kernel plugin type as a connector tool plugin.
IConnectorBuilder AddToolPlugin<TPlugin>() where TPlugin : class
Returns
Type Parameters
TPluginThe plugin class decorated with Semantic Kernel tool attributes.