mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
390f93344c
* Add samples syntax checking with pyright - Add pyrightconfig.samples.json with relaxed type checking but import validation - Add samples-syntax poe task to check samples for syntax and import errors - Add samples-syntax to check and pre-commit-check tasks - Fix 78 sample errors: - Update workflow builder imports to use agent_framework_orchestrations - Change content type isinstance checks to content.type comparisons - Use Content factory methods instead of removed content type classes - Fix TypedDict access patterns for Annotation - Fix various API mismatches (normalize_messages, ChatMessage.text, role) * fixed a bunch of samples and tweaks to pre-commit * updated lock * updated lock * fixes * added lint to samples
390f93344c
ยท
2026-02-07 07:10:47 +00:00
History
Concept Samples
This folder contains samples that dive deep into specific Agent Framework concepts.
Samples
| Sample | Description |
|---|---|
| response_stream.py | Deep dive into ResponseStream - the streaming abstraction for AI responses. Covers the four hook types (transform hooks, cleanup hooks, finalizer, result hooks), two consumption patterns (iteration vs direct finalization), and the wrap() API for layering streams without double-consumption. |
| typed_options.py | Demonstrates TypedDict-based chat options for type-safe configuration with IDE autocomplete support. |