Skip to content

Python: [Bug]: Adding tools containing an HTTP client fails due to deepcopy in version 1.0.0b260114 #3247

Description

@rayrayraykk

Description

In version 1.0.0b260114, adding a tool to an agent fails when the tool includes an HTTP client object. The framework attempts to perform a deepcopy on the tool, but HTTP clients (such as httpx.AsyncClient or similar objects) cannot be deep‑copied. This causes the tool registration process to fail.

Code Sample

Error Messages / Stack Traces

Package Versions

1.0.0b260114

Python Version

No response

Additional Context

No response

Metadata

Metadata

Labels

bugUsage: [Issues], Target: all issues (Legacy, prefer issue type: bug)pythonUsage: [Issues, PRs], Target: Python

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions