Skip to content

Commit b3d7d2c

Browse files
Add missing hooks from doc (#8368)
1 parent 56efe71 commit b3d7d2c

File tree

1 file changed

+2
-0
lines changed
  • docs/docs/tutorials/observability

1 file changed

+2
-0
lines changed

docs/docs/tutorials/observability/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ Sometimes, you may want to implement a custom logging solution. For instance, yo
203203
|`on_lm_start` / `on_lm_end` | Triggered when a `dspy.LM` subclass is invoked. |
204204
|`on_adapter_format_start` / `on_adapter_format_end`| Triggered when a `dspy.Adapter` subclass formats the input prompt. |
205205
|`on_adapter_parse_start` / `on_adapter_parse_end`| Triggered when a `dspy.Adapter` subclass postprocess the output text from an LM. |
206+
|`on_tool_start` / `on_tool_end` | Triggered when a `dspy.Tool` subclass is invoked. |
207+
|`on_evaluate_start` / `on_evaluate_end` | Triggered when a `dspy.Evaluate` instance is invoked. |
206208

207209
Here's an example of custom callback that logs the intermediate steps of a ReAct agent:
208210

0 commit comments

Comments
 (0)