Repository navigation
Commit 3e247c2
docs(functions): clarify where invoke metadata reaches code functions
The invoke() docstring said top-level metadata is passed to the function
as its metadata argument. That holds for prompts ({{metadata}}), but code
functions receive it through the hooks, while the handler's metadata
argument is read from input. Document this and show how to nest metadata
in input. Mirrors braintrustdata/braintrust-sdk-python#1073.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 245d1f9 commit 3e247c2
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
0 commit comments