Interface IJdAiPlugin
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
Id
Unique plugin identifier (e.g., "jd.ai.plugin.github").
string Id { get; }
Property Value
Name
Human-readable plugin name.
string Name { get; }
Property Value
Version
Plugin version (SemVer).
string Version { get; }
Property Value
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
contextIPluginContextctCancellationToken
Returns
ShutdownAsync(CancellationToken)
Called when the plugin is being unloaded.
Task ShutdownAsync(CancellationToken ct = default)