We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4b2e6 commit 616ec5aCopy full SHA for 616ec5a
src/strands/tools/decorator.py
@@ -44,7 +44,7 @@ def my_tool(param1: str, param2: int = 42) -> dict:
44
import functools
45
import inspect
46
import logging
47
-from copy import copy
+from copy import deepcopy
48
from typing import (
49
Annotated,
50
Any,
@@ -153,7 +153,7 @@ def _extract_annotated_metadata(
153
154
# Create Final FieldInfo with proper default handling
155
if field_info:
156
- final_field = copy(field_info)
+ final_field = deepcopy(field_info)
157
final_field.description = final_description
158
159
# Function signature default takes priority
0 commit comments