Skip to main content

AgentRestClient.(constructor)

Constructs a new instance of the AgentRestClient class

Signature:

constructor(options: {
url: string;
enabledMethods: string[];
schema?: IAgentPluginSchema;
headers?: Record<string, string> | (() => Promise<Record<string, string>>);
});

Parameters

ParameterTypeDescription
options{ url: string; enabledMethods: string[]; schema?: IAgentPluginSchema; headers?: Record<string, string> | (() => Promise<Record<string, string>>); }