langchainjs
langchainjs copied to clipboard
Add HumanTool class for agent-human interaction
This pull request introduces a new HumanTool class that extends the base Tool class. The purpose of this class is to allow agents to seek guidance from a human when they are stuck or unsure of what to do next.
Key changes include:
- A new HumanTool class has been added to represent the tool for agent-human interaction.
This enhancement will enable the agent to better handle situations where its knowledge or capabilities are insufficient by allowing it to seek assistance from a human.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
langchainjs-docs | ✅ Ready (Inspect) | Visit Preview | Apr 19, 2023 10:24am |
Hey I don't quite understand this one - it just echoes back what the agent calls the tool with?
@jacoblee93 It was ported from the python version
Seems like there's some other components in the Python version to make it functional: https://github.com/hwchase17/langchain/blob/master/langchain/tools/human/tool.py
Could you add them and add an integration test?