langgraph[patch]: InjectedState annotation (#1067)

Add annotated for injecting state vars into a Tool
This commit is contained in:
Bagatur
2024-07-19 20:07:21 -07:00
committed by GitHub
parent 75f8a33c9e
commit 610b6cc78c
7 changed files with 277 additions and 90 deletions
+10 -1
View File
@@ -55,4 +55,13 @@ from langgraph.prebuilt import tools_condition
from langgraph.prebuilt import ValidationNode
```
::: langgraph.prebuilt.ValidationNode
::: langgraph.prebuilt.ValidationNode
## InjectedState
```python
from langgraph.prebuilt import InjectedState
```
::: langgraph.prebuilt.InjectedState
handler: python