Close the HTTP client and clean up resources.
(self)
| 130 | return await card_resolver.get_agent_card() |
| 131 | |
| 132 | async def close(self): |
| 133 | """Close the HTTP client and clean up resources.""" |
| 134 | if self._httpx_client: |
| 135 | await self._httpx_client.aclose() |
| 136 | self._httpx_client = None |
| 137 | self._client = None |
| 138 | self._initialized = False |