langgraph 0.3.6
Summary of Changes
- Improved type annotations for
taskdecorator to better handle async functions (#3670) - Enhanced
Branchfunctionality with input schema inference to better handle conditional edges (#2516) - Added support for input schema detection in branch paths for StateGraph (#2516)
Detailed Changes
langgraph.func.task
- Improved type annotations to consistently prioritize async functions in Union types, making the API more predictable (#3670)
langgraph.graph.branch.Branch
- Moved from graph.py to its own dedicated module for better organization (#2516)
- Added
input_schemafield to support automatic schema inference (#2516) - Added factory method
from_paththat handles path_map conversion and optionally infers input schema (#2516) - Enhanced passthrough behavior to only merge inputs with state when no input schema is defined (#2516)