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
| Name | Type |
|---|---|
E | extends HookableEvent |
I | I |
Properties
activityInput
• activityInput: (event: E) => I
Type declaration
▸ (event): I
Parameters
| Name | Type |
|---|---|
event | E |
Returns
I
activityOptions
• Optional activityOptions: ActivityOptions