Closed ppppqp closed 7 months ago
Hi guys, I have add a simple feature of customizable hooks for Step to make it more flexible and observable. More context can be found here.
Step
Key changes summary:
format_and_execute
Frame
crates/llm-chain/tests/test_step_hooks.rs
I am pretty new to rust so any comments and suggestions are welcomed.
Hi, thanks for the pr!
Checked a bit briefly. I think this feature needs an example to understand how to use it for issue.
To be able to interact with outputs, which need to be awaited, you'd need your hook functions to be async.
Hi guys, I have add a simple feature of customizable hooks for
Step
to make it more flexible and observable. More context can be found here.Key changes summary:
Step
, adding two members.format_and_execute
function ofFrame
to execute the hooks.crates/llm-chain/tests/test_step_hooks.rs
.I am pretty new to rust so any comments and suggestions are welcomed.