Files
microsoft--agent-framework/python/pyrightconfig.samples.json
T
Ben Thomas bb37af0f01 Python: Fix _handle_response async generator + steering test
Fix async generator handler signature (b8 compatibility):
  _handle_response was async def returning AsyncIterable. The b8 SDK
  passes the raw handler result directly to _intercept_checkpoints which
  does 'async for raw in handler_iterator' — this fails on a coroutine
  with TypeError (caught as B8 pre-creation error), silently producing
  empty responses. Changed to async generator (using yield) so calling
  it returns an AsyncGenerator immediately iterable without awaiting.

Update 01_basic sample (durable_background -> resilient_background):
  main.py comments and README referenced the old durable_background field
  name (renamed to resilient_background in b8). Updated both to use the
  correct API and added steerable_conversations documentation.

Add steering integration test (test_steering.py):
  Self-contained end-to-end test using Hypercorn on a loopback port and
  concurrent asyncio tasks. Demonstrates the full steering flow:
  turn 1 streams, turn 2 arrives while turn 1 is in_progress and gets
  status=queued, turn 1 emits response.completed (cancellation terminal
  fix), turn 2 runs and completes. Requires clean ~/.agentserver state
  (no stale task files) on first run; uses unique UUID per test run.

Also add pre-existing sample exclusions to pyrightconfig.samples.json
for monty/tools samples not installed in the dev environment.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-13 14:54:47 -07:00

31 lines
1008 B
JSON

{
"include": ["samples"],
"exclude": [
"**/autogen/**",
"**/autogen-migration/**",
"**/semantic-kernel-migration/**",
"**/demos/**",
"**/_to_delete/**",
"**/05-end-to-end/**",
"**/harness/**",
"**/agent_with_foundry_tracing.py",
"**/azure_responses_client_with_foundry.py",
"**/monty_code_act.py",
"**/monty_code_interpreter.py",
"**/monty_code_interpreter_manual_wiring.py",
"**/11_monty_codeact/**",
"**/local_shell_with_allowlist.py",
"**/local_shell_with_environment_provider.py",
"**/client_with_local_shell.py"
],
"typeCheckingMode": "basic",
"reportMissingImports": "error",
"reportMissingModuleSource": false,
"reportMissingTypeStubs": false,
"reportPrivateImportUsage": false,
"reportPrivateUsage": false,
"reportTypedDictNotRequiredAccess": false,
"reportInvalidTypeVarUse": false,
"reportAttributeAccessIssue": "error"
}