langchainjs icon indicating copy to clipboard operation
langchainjs copied to clipboard

Add HumanTool class for agent-human interaction

Open NJordan72 opened this issue 1 year ago • 1 comments

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.

NJordan72 avatar Apr 19 '23 10:04 NJordan72

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

vercel[bot] avatar Apr 19 '23 10:04 vercel[bot]

Hey I don't quite understand this one - it just echoes back what the agent calls the tool with?

jacoblee93 avatar May 19 '23 21:05 jacoblee93

@jacoblee93 It was ported from the python version

NJordan72 avatar May 23 '23 12:05 NJordan72

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?

jacoblee93 avatar May 24 '23 18:05 jacoblee93