{{ message }}
Repository navigation
Commit 0521f5b
Python: [BREAKING] Simplify API: ChatAgent -> Agent, ChatMessage -> Message (microsoft#3747)
* [BREAKING] Rename ChatAgent -> Agent, ChatMessage -> Message, ChatClientProtocol -> SupportsChatGetResponse
Simplify the public API by removing redundant 'Chat' prefix from core types:
- ChatAgent -> Agent
- RawChatAgent -> RawAgent
- ChatMessage -> Message
- ChatClientProtocol -> SupportsChatGetResponse
Also renamed internal WorkflowMessage (was Message in _runner_context) to avoid collision.
No backward compatibility aliases - this is a clean breaking change.
* [BREAKING] Rename Agent chat_client parameter to client
* Fix rebase issues: WorkflowMessage references and broken markdown links
* Fix formatting and lint issues from code quality checks
* Fix import ordering in workflow sample files
* fixed rebase
* Fix test failures: use WorkflowMessage and A2AMessage after ChatMessage→Message rename
- Replace Message(data=..., source_id=...) with WorkflowMessage(...) in workflow tests
- Fix isinstance check in A2A agent to use A2AMessage instead of Message
- Fix import in test_workflow_observability.py (Message→WorkflowMessage)
* Fix lint, fmt, and sample errors after ChatMessage→Message rename
- Auto-fix 70+ ruff lint issues across samples (ChatMessage→Message refs)
- Fix HostedVectorStoreContent→Content.from_hosted_vector_store in file search sample
- Fix _normalize_messages→normalize_messages in custom agent sample
- Fix context.terminate→raise MiddlewareTermination in middleware samples
- Fix with_update_hook→with_transform_hook in override middleware sample
- Add TOptions_co import back to custom_chat_client sample
- Add noqa for FastAPI File() default in chatkit sample
- Fix B023 loop variable capture in weather agent sample
* fix: update Agent constructor calls from chat_client to client in declaration-only tool tests
* fix: add register_cleanup to devui lazy-loading proxy and type stub
* fixed tests and updated new pieces
* fix agui typevar
* fix merge errors
* fix merge conflicts
* fiux merge
* Remove unused links
---------
Co-authored-by: Evan Mattson <evan.mattson@microsoft.com>1 parent a4c9e43 commit 0521f5b
418 files changed
Lines changed: 5386 additions & 5390 deletions
File tree
- python
- .github/skills/python-development
- packages
- a2a
- agent_framework_a2a
- tests
- ag-ui
- agent_framework_ag_ui_examples
- agents
- server
- api
- agent_framework_ag_ui
- _orchestration
- getting_started
- tests/ag_ui
- anthropic
- agent_framework_anthropic
- tests
- azure-ai-search
- agent_framework_azure_ai_search
- tests
- azure-ai
- agent_framework_azure_ai
- tests
- azurefunctions/tests
- bedrock
- agent_framework_bedrock
- samples
- tests
- chatkit
- agent_framework_chatkit
- tests
- claude
- agent_framework_claude
- tests
- copilotstudio
- agent_framework_copilotstudio
- tests
- core
- agent_framework
- _workflows
- devui
- openai
- tests
- azure
- core
- openai
- workflow
- declarative
- agent_framework_declarative
- _workflows
- tests
- devui
- agent_framework_devui
- ui/assets
- frontend/src
- components
- features/workflow
- layout
- types
- utils
- tests/devui
- durabletask
- agent_framework_durabletask
- tests
- foundry_local
- samples
- tests
- github_copilot
- agent_framework_github_copilot
- tests
- lab
- gaia/samples
- lightning
- samples
- tests
- tau2
- agent_framework_lab_tau2
- tests
- mem0
- agent_framework_mem0
- tests
- ollama
- agent_framework_ollama
- tests
- orchestrations
- agent_framework_orchestrations
- tests
- purview
- agent_framework_purview
- tests/purview
- redis
- agent_framework_redis
- tests
- samples
- autogen-migration
- orchestrations
- single_agent
- concepts
- tools
- demos
- chatkit-integration
- hosted_agents/agent_with_text_search_rag
- m365-agent/m365_agent_demo
- workflow_evaluation
- getting_started
- agents
- azure_ai_agent
- azure_ai
- azure_openai
- custom
- ollama
- openai
- azure_functions
- 02_multi_agent
- 05_multi_agent_orchestration_concurrency
- 06_multi_agent_orchestration_conditionals
- 08_mcp_server
- chat_client
- context_providers
- azure_ai_search
- redis
- declarative
- devui
- azure_responses_agent
- foundry_agent
- weather_agent_azure
- workflow_agents
- durabletask
- 01_single_agent
- 02_multi_agent
- 03_single_agent_streaming
- 04_single_agent_orchestration_chaining
- 05_multi_agent_orchestration_concurrency
- 06_multi_agent_orchestration_conditionals
- 07_single_agent_orchestration_hitl
- evaluation/self_reflection
- mcp
- middleware
- multimodal_input
- observability
- orchestrations
- purview_agent
- threads
- tools
- workflows
- _start-here
- agents
- checkpoint
- composition
- control-flow
- declarative
- customer_support
- deep_research
- function_tools
- marketing
- student_teacher
- human-in-the-loop
- parallelism
- state-management
- tool-approval
- visualization
- semantic-kernel-migration
- chat_completion
- openai_responses
- orchestrations
- tests/samples/getting_started
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
| |||
272 | 279 | | |
273 | 280 | | |
274 | 281 | | |
275 | | - | |
| 282 | + | |
276 | 283 | | |
277 | 284 | | |
278 | 285 | | |
| |||
318 | 325 | | |
319 | 326 | | |
320 | 327 | | |
321 | | - | |
| 328 | + | |
322 | 329 | | |
323 | 330 | | |
324 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
| 412 | + | |
413 | 413 | | |
414 | | - | |
415 | | - | |
| 414 | + | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
| 116 | + | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
| 165 | + | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
| 198 | + | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
| 204 | + | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||

0 commit comments