Action Menu module for Credo. Implements Aries RFC 0509.
Quick start
In order for this module to work, we have to inject it into the agent to access agent functionality. See the example for more information.
Example of usage
import { ActionMenuModule } from '@credo-ts/action-menu'
const agent = new Agent({
config: {
},
dependencies: agentDependencies,
modules: {
actionMenu: new ActionMenuModule(),
},
})
await agent.initialize()
await agent.modules.actionMenu.requestMenu({ connectionId })
await agent.modules.actionMenu.performAction({
connectionId,
performedAction: { name: 'option-1' },
})