| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Is this a breaking change? |
Sorry, something went wrong.
- Replace AgentThread with AgentSession across all packages - Replace ContextProvider with BaseContextProvider across all packages - Replace context_provider param with context_providers (Sequence) - Replace thread= with session= in run() signatures - Replace get_new_thread() with create_session() - Add get_session(service_session_id) to agent interface - DurableAgentThread -> DurableAgentSession - Remove _notify_thread_of_new_messages from WorkflowAgent - Wire before_run/after_run context provider pipeline in RawAgent - Auto-inject InMemoryHistoryProvider when no providers configured
…, remove old test files
…tThread→AgentSession, ContextProvider→BaseContextProvider)
…ion with session_id
…rate devui to use plain message lists
…ryProvider(InMemoryHistoryProvider)
…g into provider internals
…or new provider types
…session_id.key references in samples
…ssions, remove aggregate_context_provider
Pydantic models stored in session.state are now automatically serialized via model_dump() and restored via model_validate() during to_dict()/from_dict() round-trips. Models are auto-registered on first serialization; use register_state_type() for cold-start deserialization. Also export register_state_type as a public API.
…der injection Chat clients that store history server-side by default (OpenAI Responses API, Azure AI Agent) now declare STORES_BY_DEFAULT = True. The agent checks this during auto-injection and skips InMemoryHistoryProvider unless the user explicitly sets store=False.
… remove stale AGUIThread - Fix: Propagate conversation_id from ChatResponse back to session.service_session_id in both streaming and non-streaming paths in _agents.py - Rename AgentThreadException → AgentSessionException - Remove stale AGUIThread from ag_ui lazy-loader - Rename use_service_thread → use_service_session in ag-ui package - Rename test functions from *_thread_* to *_session_* - Rename sample files from *_thread* to *_session* - Update docstrings and comments: thread → session - Update _mcp.py kwargs filter: add 'session' alongside 'thread' - Fix ContinuationToken docstring example: thread=thread → session=session - Fix _clients.py docstring: 'Agent threads' → 'Agent sessions'
| Back | FazBrowse Home | New Git URL |
Summary
Completes the context provider migration from ADR 0016. PR1 (#3763) added the new types side-by-side; this PR wires them into the agent execution flow, removes all old types, and updates every consumer.
What changed
Core agent wiring (_agents.py)
Old types removed
External providers renamed
Lazy-loader stubs updated
Session state serialization
Lab/tau2
DevUI
Samples
Tests
Fixes
Fixes #3587 — Rename AgentThread to AgentSession
Fixes #3588 — Add session management methods (create_session, get_session)
Fixes #3589 — Move serialize into the agent (AgentSession.to_dict()/from_dict())
Fixes #3590 — Orthogonal ChatMessageStore for service vs local (BaseHistoryProvider with load_messages/store_* flags)
Fixes #3601 — Rename ChatMessageStore to ChatHistoryProvider (BaseHistoryProvider)
Breaking changes
Related