microsoft / microsoft/agent-framework

Python: agents: ChatAgent.__init__ chat_client as Callable factory

Open
#3,612 1 comment 0 reactions 1 assignee Claimed by @eavanvalkenburg View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.