microsoft / microsoft/agent-framework
Python: agents: ChatAgent.__init__ chat_client as Callable factory
Open
agents
python
- Dominant language
- Python
- Stars
- 13.6k
- Forks
- 2.3k
- Avg merge
- 2d 45m
- Merged PRs (30d)
- 358
Description
Consider if chat_client parameter could be a Callable[..., ChatClientProtocol] to allow lazy instantiation.
**File:** python/packages/core/agent_framework/_agents.py
**Location:** ChatAgent class, __init__ method, chat_client parameter (Line ~592)
**Current:** chat_client: ChatClientProtocol
**Question:** Could this be Callable[..., ChatClientProtocol]?
This would allow deferred client creation or factory patterns.
Extracted from #3096
Parent issue: #3575
Contributor guide
Assessment
This issue has not been assessed yet.