Skip to content

Commit 96ce4ec

Browse files
authored
Remove warning on deepcopy which gets triggered for some async knowledge bases (#2659)
## Summary Sometimes knowledge base fails to deepcopy, but copy succeeds. ## Type of change - [ ] Bug fix (If applicable, issue number: #____) - [ ] New feature - [ ] Breaking change - [ ] Improvement - [ ] Model update - [ ] Other: _____________________ --- ## Checklist - [ ] Code complies with style guidelines - [ ] Ran format/validation scripts (`./scripts/format.sh` and `./scripts/validate.sh`) - [ ] Self-review completed - [ ] Documentation updated (comments, docstrings) - [ ] Examples and guides: Relevant cookbook examples have been included or updated (if applicable) - [ ] Tested in clean environment - [ ] Tests added/updated (if applicable) --- ## Additional Notes Add any important context (deployment instructions, screenshots, security considerations, etc.)
1 parent 271e0e7 commit 96ce4ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/agno/agno/agent/agent.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2619,8 +2619,7 @@ def _deep_copy_field(self, field_name: str, field_value: Any) -> Any:
26192619
elif isinstance(field_value, BaseModel):
26202620
try:
26212621
return field_value.model_copy(deep=True)
2622-
except Exception as e:
2623-
log_warning(f"Failed to deepcopy field: {field_name} - {e}")
2622+
except Exception:
26242623
try:
26252624
return field_value.model_copy(deep=False)
26262625
except Exception as e:

0 commit comments

Comments
 (0)