Skip to content

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

@rayrayraykk

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

bugSomething isn't workingpythonv1.0Features being tracked for the version 1.0 GA

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions