Table of Contents

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

string

Services

The underlying service collection.

IServiceCollection Services { get; }

Property Value

IServiceCollection

Methods

AddAuthentication<TAuth>()

Registers an authentication provider for this connector.

IConnectorBuilder AddAuthentication<TAuth>() where TAuth : class, IConnectorAuthProvider

Returns

IConnectorBuilder

Type Parameters

TAuth

The 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

loadoutName string

Name of the loadout (e.g. "jira-readonly").

filter Func<string, bool>

Predicate to select which tool names belong to this loadout.

Returns

IConnectorBuilder

AddToolPlugin<TPlugin>()

Registers a Semantic Kernel plugin type as a connector tool plugin.

IConnectorBuilder AddToolPlugin<TPlugin>() where TPlugin : class

Returns

IConnectorBuilder

Type Parameters

TPlugin

The plugin class decorated with Semantic Kernel tool attributes.