Skip to content

Commit 94e00bd

Browse files
authored
Python: Added ChatClientAgentThread and ChatClientAgent implementations (#150)
* Added ChatClientAgentThread * Initial version of ChatClientAgent * Completed ChatClientAgent * Small fixes and unit tests * Fixes based on pre-commit * Small fixes * Small renaming * Small improvement * Small fixes * Addressed PR feedback * Small fix * Added method for AgentRunResponse from streaming conversion * Addressed PR feedback * Addressed PR feedback * Addressed PR feedback * Small fix * More fixes
1 parent df84675 commit 94e00bd

6 files changed

Lines changed: 530 additions & 91 deletions

File tree

python/packages/main/agent_framework/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"ai_function": "._tools",
2222
"AIContent": "._types",
2323
"AIContents": "._types",
24+
"ChatClientAgent": "._agents",
25+
"ChatClientAgentThread": "._agents",
26+
"ChatClientAgentThreadType": "._agents",
2427
"TextContent": "._types",
2528
"TextReasoningContent": "._types",
2629
"DataContent": "._types",

python/packages/main/agent_framework/__init__.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Microsoft. All rights reserved.
22

33
from . import __version__ # type: ignore[attr-defined]
4-
from ._agents import Agent, AgentThread
4+
from ._agents import Agent, AgentThread, ChatClientAgent, ChatClientAgentThread, ChatClientAgentThreadType
55
from ._clients import ChatClient, ChatClientBase, EmbeddingGenerator, use_tool_calling
66
from ._logging import get_logger
77
from ._pydantic import AFBaseModel, AFBaseSettings
@@ -45,6 +45,9 @@ __all__ = [
4545
"AgentRunResponseUpdate",
4646
"AgentThread",
4747
"ChatClient",
48+
"ChatClientAgent",
49+
"ChatClientAgentThread",
50+
"ChatClientAgentThreadType",
4851
"ChatClientBase",
4952
"ChatFinishReason",
5053
"ChatMessage",

0 commit comments

Comments
 (0)