Skip to content

Fixes from langgraph upgrades#14

Merged
jtoman merged 4 commits intomasterfrom
jtoman/more-tweaks
Apr 15, 2026
Merged

Fixes from langgraph upgrades#14
jtoman merged 4 commits intomasterfrom
jtoman/more-tweaks

Conversation

@jtoman
Copy link
Copy Markdown
Contributor

@jtoman jtoman commented Apr 15, 2026

  1. Langgraph now "helpfully" catches a pydantic ValidationError, and rethrows it as a ToolInvocationError. So, whitelist the ToolInvocationError to be passed back to the agents (THANKS LANGGRAPH)
  2. Clarifies some of the documentation on the grep file tool, the agent apparently thought it needs to escape | when used as a regex character; the documentation intended the opposite. I've also seen the tool try to be used to find file names, clarifies this in the tool description
  3. Tries to silence the langgraph Deserializing unregistered type... error message the langgraph devs "helpfully" added to make sure we aren't pwned by someone with write access to our production database (???!?!?!?!)

The way we accomplish 3 is... unfortunate and relies on an implementation detail that I'm sure the langgraph devs would prefer we didn't exploit. I would prefer the langgraph devs didn't play nanny and force us to rearchitect our whole application over a complete nothing security scenario.

jtoman added 3 commits April 9, 2026 17:27
Because they yell at us because of blocked serialization nonsense
1. Clarify some grep documentation
2. Adds "result type" annotation to get the langgraph deserializer to
   SHUT UP

The latter change uses black magic and breaks abstraction boundaries but
I REALLY DO NOT CARE.
@jtoman jtoman requested a review from shellygr April 15, 2026 19:01
Copy link
Copy Markdown
Contributor

@shellygr shellygr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discussed concerns etc. on slack but permitting the ship to sail

@jtoman jtoman merged commit 2bdcded into master Apr 15, 2026
2 checks passed
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.

2 participants