-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Python: [BREAKING] Moved to a single get_response and run API #3379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
eavanvalkenburg
wants to merge
86
commits into
microsoft:main
Choose a base branch
from
eavanvalkenburg:python_single_response
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+11,305
−9,025
Open
Changes from all commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
9f3e5d1
WIP
eavanvalkenburg 390aa0c
big update to new ResponseStream model
eavanvalkenburg d79285e
fixed tests and typing
eavanvalkenburg 61b9cad
fixed tests and typing
eavanvalkenburg f083d53
fixed tools typevar import
eavanvalkenburg bd57450
fix
eavanvalkenburg d0a82a8
mypy fix
eavanvalkenburg d41944d
mypy fixes and some cleanup
eavanvalkenburg 185812c
fix missing quoted names
eavanvalkenburg 1f14d14
and client
eavanvalkenburg ca74f76
fix imports agui
eavanvalkenburg 03fdb1e
fix anthropic override
eavanvalkenburg fa166de
fix agui
eavanvalkenburg cd526f0
fix ag ui
eavanvalkenburg cb0d757
fix import
eavanvalkenburg 4d35f47
fix anthropic types
eavanvalkenburg fdbe3a1
fix mypy
eavanvalkenburg 18d1c8d
refactoring
eavanvalkenburg 9f4f2db
updated typing
eavanvalkenburg 4d7f852
fix 3.11
eavanvalkenburg c24d994
fixes
eavanvalkenburg 806ab90
redid layering of chat clients and agents
eavanvalkenburg 7b384ac
redid layering of chat clients and agents
eavanvalkenburg 144d368
Fix lint, type, and test issues after rebase
eavanvalkenburg 89dba9f
Fix AgentExecutionException import error in test_agents.py
eavanvalkenburg 40f67ec
Fix test import and asyncio deprecation issues
eavanvalkenburg 019afbf
Fix azure-ai test failures
eavanvalkenburg 73eae0c
Convert ag-ui utils_test_ag_ui.py to conftest.py
eavanvalkenburg 7818c50
fix: use relative imports for ag-ui test utilities
eavanvalkenburg 7b81568
fix agui
eavanvalkenburg ace11f8
Rename Bare*Client to Raw*Client and BaseChatClient
eavanvalkenburg e45a0d5
Fix layer ordering: FunctionInvocationLayer before ChatTelemetryLayer
eavanvalkenburg df011a9
Remove run_stream usage
eavanvalkenburg 4802a7d
Fix conversation_id propagation
eavanvalkenburg fc795d1
Update uv.lock with latest dependencies
eavanvalkenburg 827565e
Python: Add BaseAgent implementation for Claude Agent SDK (#3509)
dmytrostruk cdb9c10
Update Claude agent connector layering
eavanvalkenburg 6e1888a
fix test and plugin
eavanvalkenburg 33238c8
Store function middleware in invocation layer
eavanvalkenburg 0f65c24
Fix telemetry streaming and ag-ui tests
eavanvalkenburg 98fa1a5
Remove legacy ag-ui tests folder
eavanvalkenburg 6410c1b
updates
eavanvalkenburg effca46
Remove terminate flag from FunctionInvocationContext, use MiddlewareT…
eavanvalkenburg 4377bdd
fix: remove references to removed terminate flag in purview tests, ad…
eavanvalkenburg 749cce8
fix: move _test_utils.py from package to test folder
eavanvalkenburg cc83c9c
fix: call get_final_response() to trigger context provider notificati…
eavanvalkenburg d0f802c
fix: correct broken links in tools README
eavanvalkenburg 63e151d
docs: clarify default middleware behavior in summary table
eavanvalkenburg 40c6e06
fix: ensure inner stream result hooks are called when using map()/fro…
eavanvalkenburg 4e60766
Fix mypy type errors
eavanvalkenburg 3ddc226
Address PR review comments on observability.py
eavanvalkenburg ed4446d
Remove gen_ai.client.operation.duration from span attributes
eavanvalkenburg f433f87
Remove duration from _get_response_attributes, pass directly to _capt…
eavanvalkenburg d0ef476
Remove redundant _close_span cleanup hook in AgentTelemetryLayer
eavanvalkenburg 7bc1a0e
Use weakref.finalize to close span when stream is garbage collected
eavanvalkenburg 2cd1362
Fix _get_finalizers_from_stream to use _result_hooks attribute
eavanvalkenburg c602cdc
Add missing asyncio import in test_request_info_mixin.py
eavanvalkenburg d3e8568
Fix leftover merge conflict marker in image_generation sample
eavanvalkenburg 5165b60
Update integration tests
eavanvalkenburg 499c1a5
Fix integration tests: increase max_iterations from 1 to 2
eavanvalkenburg 23a82af
Fix duplicate function call error in conversation-based APIs
eavanvalkenburg c3b120f
Add regression test for conversation_id propagation between tool iter…
eavanvalkenburg f7bc4d3
Fix tool_choice=required to return after tool execution
eavanvalkenburg 3b01600
Document tool_choice behavior in tools README
eavanvalkenburg e4b005e
Fix tool_choice=None behavior - don't default to 'auto'
eavanvalkenburg 13a5e03
Fix tool_choice=none should not remove tools
eavanvalkenburg 0f416c0
Add test for tool_choice=none preserving tools
eavanvalkenburg db3adfd
Fix tool_choice=none should not remove tools in all clients
eavanvalkenburg f9f5bd7
Keep tool_choice even when tools is None
eavanvalkenburg a9807ad
Update test to match new parallel_tool_calls behavior
eavanvalkenburg 7e739d1
Fix ChatMessage API and Role enum usage after rebase
eavanvalkenburg d3daf0f
Fix additional ChatMessage API and method name changes
eavanvalkenburg c824cc3
Fix remaining ChatMessage API usage in test files
eavanvalkenburg 11bd057
Fix more ChatMessage and Role API changes in source and test files
eavanvalkenburg 23b22c0
Fix ChatMessage and Role API changes across packages
eavanvalkenburg 32aa605
Fix ChatMessage and Role API changes in github_copilot tests
eavanvalkenburg 22c78e5
Fix ChatMessage and Role API changes in redis and github_copilot pack…
eavanvalkenburg 0e56ecf
Fix ChatMessage and Role API changes in devui package
eavanvalkenburg 9ebb1e3
Fix ChatMessage and Role API changes in a2a and lab packages
eavanvalkenburg 4cefbc0
Remove duplicate test files from ag-ui/tests (tests are in ag_ui_tests)
eavanvalkenburg 18f650a
Fix ChatMessage and Role API changes across packages
eavanvalkenburg 1d93a19
Fix mypy errors for ChatMessage and Role API changes
eavanvalkenburg d42c470
Improve CI test timeout configuration
eavanvalkenburg 6d1f1ac
Fix ChatMessage API usage in docstrings and source
eavanvalkenburg 008e327
Revert tool_choice/parallel_tool_calls changes - must be removed when…
eavanvalkenburg dfb121f
fixed issue in tests
eavanvalkenburg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,8 @@ | |
| "endregion", | ||
| "entra", | ||
| "faiss", | ||
| "finalizer", | ||
| "finalizers", | ||
| "genai", | ||
| "generativeai", | ||
| "hnsw", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Copyright (c) Microsoft. All rights reserved. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.