Table of Contents

Constructor HttpApiTool

Namespace
LMKit.Agents.Tools.Http
Assembly
LM-Kit.NET.dll

HttpApiTool(HttpApiToolDefinition, WebEgressPolicy, HttpClient)

Initializes a new instance.

public HttpApiTool(HttpApiToolDefinition definition, WebEgressPolicy egress = null, HttpClient client = null)

Parameters

definition HttpApiToolDefinition

The operation to call.

egress WebEgressPolicy

The policy every call is checked against; null calls any http or https address.

client HttpClient

The HTTP client calls go through; null connects only to the addresses the egress policy validated (or through a shared client when there is no policy), never following redirects.

Exceptions

ArgumentNullException

Thrown when definition is null.

ArgumentException

Thrown when the definition is not valid; the message lists every fault.

Share