Commit b80dd97
fix(pydantic-ai): Safely access tool description attribute
Use getattr with a None default when accessing tool_definition.description
to prevent AttributeError if the attribute is missing.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent a0bd0dc commit b80dd97
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
0 commit comments