Skip to main content

AgentRouter() function

Creates a router that exposes Agent methods remotely.

This can be used by AgentRestClient to instantiate the methods of this agent on the client.

Signature:

AgentRouter: (options: AgentRouterOptions) => Router

Parameters

ParameterTypeDescription
optionsAgentRouterOptionsInitialization option

Returns:

Router

Expressjs router