IAgentOptions interface

Agent configuration options.

This interface is used to describe the constellation of plugins that this agent will use and provide.

You will use this to attach plugins, to setup overrides for their methods and to explicitly set the methods that this agent instance is allowed to call. This permissioning method is also used for internal calls made by plugin code.

Signature:
export interface IAgentOptions

Properties

PropertyTypeDescription
authorizedMethodsstring[]The array of method names that will be exposed by the agent
contextRecord<string, any>The context object that will be available to the plugin methods
overridesIPluginMethodMapThe map of plugin methods. Can be used to override methods provided by plugins, or to add additional methods without writing a plugin
pluginsIAgentPlugin []The array of agent plugins
schemaValidationbooleanFlag that enables schema validation for plugin methods. false