Skip to main content

Interface: ActivityAsHookOptions<E, I>

strands.workflow.ActivityAsHookOptions

Options for activityAsHook.

activityInput extracts a serializable value from the event to pass as the activity's input. This is needed because events hold references to the Agent and Tool instances, which are not serializable.

Type parameters​

NameType
Eextends HookableEvent
II

Properties​

activityInput​

• activityInput: (event: E) => I

Type declaration​

▸ (event): I

Parameters​
NameType
eventE
Returns​

I


activityOptions​

• Optional activityOptions: ActivityOptions