Skip to content

Fallback to default active agent when state is stale#117

Open
Mark Zhang (shuofengzhang) wants to merge 2 commits intolangchain-ai:mainfrom
shuofengzhang:fix-active-agent-fallback
Open

Fallback to default active agent when state is stale#117
Mark Zhang (shuofengzhang) wants to merge 2 commits intolangchain-ai:mainfrom
shuofengzhang:fix-active-agent-fallback

Conversation

@shuofengzhang
Copy link
Copy Markdown

What changed

  • Fall back to the default active agent when the state specifies an unknown agent and emit a warning.
  • Added a regression test covering the fallback behavior.

Why

  • Prevents runtime routing errors when persisted state includes a stale or mistyped agent name.

Testing

  • pytest -q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant