Python: Flow custom kwargs to agents via Workflow SharedState (#2894)

* Flow custom kwargs to agents via SharedState

* Address Copilot feedback

* Improve sample typing

* Fix test
This commit is contained in:
Evan Mattson
2025-12-17 09:04:00 +09:00
committed by GitHub
Unverified
parent 8fca71e5ad
commit 6adcac2e97
8 changed files with 921 additions and 17 deletions
@@ -149,6 +149,8 @@ to configure which agents can route to which others with a fluent, type-safe API
| Sample | File | Concepts |
|---|---|---|
| Shared States | [state-management/shared_states_with_agents.py](./state-management/shared_states_with_agents.py) | Store in shared state once and later reuse across agents |
| Workflow Kwargs (Custom Context) | [state-management/workflow_kwargs.py](./state-management/workflow_kwargs.py) | Pass custom context (data, user tokens) via kwargs to `@ai_function` tools |
### visualization