Table of Contents

Class GatewayOpsTools

Namespace
JD.AI.Core.Tools
Assembly
JD.AI.Core.dll

Gateway lifecycle and configuration tools — status, config, restart controls. Operates against the local gateway process or a configured remote endpoint.

[ToolPlugin("gateway", RequiresInjection = true)]
public sealed class GatewayOpsTools
Inheritance
GatewayOpsTools
Inherited Members

Constructors

GatewayOpsTools(string?)

public GatewayOpsTools(string? gatewayEndpoint = null)

Parameters

gatewayEndpoint string

Optional gateway base URL (e.g. http://localhost:18789). If null, tools report based on process-level checks.

Methods

GetConfigAsync()

[KernelFunction("gateway_config")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public Task<string> GetConfigAsync()

Returns

Task<string>

GetStatusAsync()

[KernelFunction("gateway_status")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public Task<string> GetStatusAsync()

Returns

Task<string>

ListGatewayAgentsAsync()

[KernelFunction("gateway_agents")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public Task<string> ListGatewayAgentsAsync()

Returns

Task<string>

ListGatewayChannelsAsync()

[KernelFunction("gateway_channels")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public Task<string> ListGatewayChannelsAsync()

Returns

Task<string>

ListGatewaySessionsAsync()

[KernelFunction("gateway_sessions")]
[ToolSafetyTier(SafetyTier.AutoApprove)]
public Task<string> ListGatewaySessionsAsync()

Returns

Task<string>