Skip to content

Commit 36c82f7

Browse files
committed
fix(internal): small fixes
1 parent 4f1fd54 commit 36c82f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/anthropic/lib/tools/_beta_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def to_dict(self) -> BetaToolParam:
109109
"input_schema": self.input_schema,
110110
}
111111
if self._defer_loading is not None:
112-
defn["defer_loading"] = True
112+
defn["defer_loading"] = self._defer_loading
113113
return defn
114114

115115
@cached_property

src/anthropic/lib/tools/_beta_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def _check_and_compact(self) -> bool:
199199
messages.pop()
200200

201201
messages = [
202-
*self._params["messages"],
202+
*messages,
203203
BetaMessageParam(
204204
role="user",
205205
content=self._compaction_control.get("summary_prompt", DEFAULT_SUMMARY_PROMPT),

0 commit comments

Comments
 (0)