Table of Contents

Interface IJdAiPlugin

Namespace
JD.AI.Plugins.SDK
Assembly
JD.AI.Plugins.SDK.dll

Base interface for JD.AI plugins. Plugins register SK functions, tools, hooks, and configuration with the host.

public interface IJdAiPlugin : IAsyncDisposable
Inherited Members

Properties

Description

Plugin description.

string Description { get; }

Property Value

string

Id

Unique plugin identifier (e.g., "jd.ai.plugin.github").

string Id { get; }

Property Value

string

Name

Human-readable plugin name.

string Name { get; }

Property Value

string

Version

Plugin version (SemVer).

string Version { get; }

Property Value

string

Methods

InitializeAsync(IPluginContext, CancellationToken)

Called once when the plugin is loaded. Register SK functions, event handlers, and configuration here.

Task InitializeAsync(IPluginContext context, CancellationToken ct = default)

Parameters

context IPluginContext
ct CancellationToken

Returns

Task

ShutdownAsync(CancellationToken)

Called when the plugin is being unloaded.

Task ShutdownAsync(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task