burr icon indicating copy to clipboard operation
burr copied to clipboard

Pre/Post application interface calls

Open elijahbenizzy opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

We should be able to handle iteractions such as step/iterate/run/stream). These would be hooks called before and after user-facing stuff.

Describe the solution you'd like

The following hooks, both sync and async:

  • pre_run_call(params: Dict[str, Any], fn: Enum["run", "iterate", "step", "stream_results"])
  • post_run_call(params: Dict[str, Any], fn: Enum["run", "iterate", "step", "stream_results"])

Describe alternatives you've considered

Hooks per step

elijahbenizzy avatar May 26 '24 17:05 elijahbenizzy