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

Parameter

Type

Description

options

AgentRouterOptions

Initialization option

**Returns:**

Router

Expressjs router