You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/sdk-integrations/SKILL.md
+5-10Lines changed: 5 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,21 +109,16 @@ Prefer feature detection first and version checks second.
109
109
Use:
110
110
111
111
-`detect_module_version(...)`
112
-
-`version_in_range(...)`
113
-
-`version_matches_spec(...)`
114
-
115
-
Do not add `packaging` just for integration routing.
112
+
-`version_satisfies(...)`
113
+
-`make_specifier(...)`
116
114
117
115
## `auto_instrument()`
118
116
119
117
Update `py/src/braintrust/auto.py` only if the integration should be auto-patched.
120
118
121
-
Match the existing option shape:
122
-
123
-
- use plain `bool` for simple on/off integrations that do not use the integrations API
124
-
- use `InstrumentOption` for integrations API providers that support `IntegrationPatchConfig`
119
+
Use `InstrumentOption` (i.e. `bool | IntegrationPatchConfig`) for all integrations, including those that do not yet use the integrations API. This keeps the signature uniform and avoids a breaking change when the integration is later migrated.
125
120
126
-
For integrations API providers, use`_normalize_instrument_option()` and `_instrument_integration(...)` instead of adding a custom `_instrument_*` function:
121
+
Use`_normalize_instrument_option()` and `_instrument_integration(...)` instead of adding a custom `_instrument_*` function:
0 commit comments