LangChain.Effector (langchainex v0.2.3)

An Effector is used by a daemon to impact the outside world. By default, an Effector should ask for confirmation before actually impacting anything. Daemons are AIs and should not be trusted to do the right thing without supervision.

Link to this section Summary

Functions

Default function to request permission for an action. Returns true to allow the action by default. Override this function with custom permission handling logic.

Default function to execute the action. Override this function with custom action handling logic.

Link to this section Functions

Link to this function

default_may_i?(action, context)

Default function to request permission for an action. Returns true to allow the action by default. Override this function with custom permission handling logic.

Link to this function

default_no!(action, context)

Link to this function

default_yes!(action, context)

Default function to execute the action. Override this function with custom action handling logic.