Skip to content

Commit a93d71f

Browse files
style: use __name__ for cleaner type names in error messages
1 parent 420253b commit a93d71f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/google/adk/tools/function_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _preprocess_args(
167167
)
168168
except pydantic.ValidationError as e:
169169
validation_errors.append(
170-
f"Parameter '{param_name}': expected type '{target_type}',"
170+
f"Parameter '{param_name}': expected type '{getattr(target_type, '__name__', target_type)}',"
171171
f' validation error: {e}'
172172
)
173173
except (TypeError, NameError) as e:

0 commit comments

Comments
 (0)