-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow sequential agents to wait for human input (#129)
* Add human tool to allow agents to ask human for inputs * Update sequential graph to add ask-human tool logic. Update generator fn to send ask-human interrupt and process human replies. * Update ChatTeam component to request for ask-human tool replies and submit them * Upgrade langgraph version to v0.2.14 * Modify the spacings within MessageBox * Add ask-human tool logic in hierarchical graph * Refactor EditMember to make configuration easier. Remove human tool for hierarchical workflows * Enable tools and interrupt for root node of sequential workflows
- Loading branch information
1 parent
7dd0b3d
commit 50ae80d
Showing
12 changed files
with
269 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This is an example showing how to create a simple calculator skill | ||
|
||
from typing import Annotated | ||
|
||
from langchain_core.tools import tool | ||
|
||
|
||
@tool | ||
def AskHuman(query: Annotated[str, "query to ask the human"]) -> None: | ||
"""Ask the human a question to gather additional inputs""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.