Evan Mattson and GitHub
ff91473912
Python: Fix declarative package powerfx import crash and response_format kwarg error ( #3841 )
...
* Fix declarative package powerfx import crash and response_format kwarg error
* Address PR feedback. Propagate kwargs for declarative workflows
* move tests
* Fix options merge logic
2026-02-11 22:01:21 +00:00
Giles Odigwe and GitHub
7a88af0aef
Python: [BREAKING] Replace Hosted*Tool classes with tool methods ( #3634 )
...
* Replace Hosted*Tool classes with client static factory methods
* fixed failing test
* mypy fix
* mypy fix 2
* declarative mypy fix
* addressed comments
* ToolProtocol removal
* fixed test
* agents mypy fix
* fix failing tests
* mypy fix
* addressed comments
* fixed tests
* addressed comments + added factory method overrides for azureai v2 client
* mypy fix
* added kwargs to azureai tool methods
* fixed in test
* _sessions fix
* test fix
2026-02-11 00:04:27 +00:00
0521f5bed8
Python: [BREAKING] Simplify API: ChatAgent -> Agent, ChatMessage -> Message ( #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 >
2026-02-10 23:04:32 +00:00
Evan Mattson and GitHub
a4c9e43afb
[BREAKING] Python: Remove workflow register factory methods. Update tests and samples ( #3781 )
...
* Remove workflow register factory methods. Update tests and samples
* Address Copilot feedback
2026-02-10 22:16:17 +00:00
Evan Mattson and GitHub
74ac470a56
[BREAKING] Python: Move single-config fluent methods to constructor parameters ( #3693 )
...
* Move single-config fluent methods to constructor parameters
* Updates
* Adjust magentic and group chat
2026-02-07 06:01:52 +00:00
Evan Mattson and GitHub
0f3f4dbcaf
[BREAKING] Python: Refactor workflow events to unified discriminated union pattern ( #3690 )
...
* Refactor events
* Merge main
* Fixes
* Cleanup
* Update samples and tests
* Remove unused imports
* PR feedback
* Merge main. Add properties for events to help typing
* Formatting
* Cleanup
* use builtins.type to avoid shadowing by WorkflowEvent.type attribute
* Final improvements
2026-02-06 07:47:20 +00:00
Evan Mattson and GitHub
10afb86213
[BREAKING] Python: Refactor SharedState to State with sync methods and superstep caching ( #3667 )
...
* Refactor SharedState to State with sync methods and superstep caching
* Fixes
* Address PR feedback
* Remove dead links
* Fix lab test import
2026-02-05 01:42:52 +00:00
Evan Mattson and GitHub
e0b9be7e08
Python: fix(declarative): Fix MCP tool connection not passed from YAML to Azure AI agent creation API ( #3248 )
...
* fix(declarative): Fix MCP tool connection not passed from YAML
* Add samples to README
* Fix mypy
* Fix mypy again
* Address PR comments
2026-01-20 07:24:20 +00:00
Evan Mattson and GitHub
9c094573e8
Python: Add declarative workflow runtime ( #2815 )
...
* Further support for declarative python workflows
* Add tests. Clean up for typing and formatting
* Improvements and cleanup
* Typing cleanup. Improve docstrings
* Proper code in docstrings
* Fix malformed code-block directive in docstring
* Remove dead links
* PR feedback
* Address PR feedback
* Address PR feedback
* Remove sl
* Update devui frontend
* More cleanup
* Fix uv lock
* Skip Py 3.14 tests as powerfx doesn't support it
* Fix mypy error
* Fix for tool calls
* Removed stale docstring
* Fix lint
* Standardize on .NET namespaces. Revert DevUI changes (bring in later)
* Implement remaining items for Python declarative support to match dotnet
2026-01-13 07:11:21 +00:00
Eduard van Valkenburg and GitHub
4b8a545589
Python: add powerfx safe mode ( #3028 )
...
* add powerfx safe mode
* improved docstring and aligned env_file loading
* ensured test uses reset
2025-12-23 20:12:50 +00:00
Eduard van Valkenburg and GitHub
92df9e14bf
Python: Introducing support for declarative yaml spec ( #2002 )
...
* first work on declarative
* initial version of the declarative support
* fix tests and mypy
* fix parameters of functiontool
* slight logic improvement
* remove path until merge
* updates from comments
* create dispatcher and spec type, json_schema method
* fix mypy, skipping model
* updated lock
* fixed declarative tests and renamed some other test files
* refined loader
* updated lock
* fix mypy
* added readme to samples folder
* fixes from review
* undid test file rename
2025-11-19 16:33:02 +00:00