langchain
c8205ff5 - fix(langchain_v1): fix edges when there's no middleware (#33321)

Commit
84 days ago
fix(langchain_v1): fix edges when there's no middleware (#33321) 1. Main fix: when we don't have a response format or middleware, don't draw a conditional edge back to the loop entrypoint (self loop on model) 2. Supplementary fix: when we jump to `end` and there is an `after_agent` hook, jump there instead of `__end__` Other improvements -- I can remove these if they're more harmful than helpful 1. Use keyword only arguments for edge generator functions for clarity 2. Rename args to `model_destination` and `end_destination` for clarity
Author
Parents
Loading