-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(tools): add HumanTool for human intervention during workflows #203
Closed
Conversation
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
Fixing code formatting issues for consistency and readability |
matiasmolinas
force-pushed
the
fresh-human-tool
branch
from
December 3, 2024 14:12
62fbfe8
to
be91ec6
Compare
Tomas2D
requested changes
Dec 3, 2024
Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Jan Pokorný <jenompokorny@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
…iles Ref: i-am-bee#121 Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Emitter now must be defined manually for all new tools. Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Ref: i-am-bee#121 Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Ref: i-am-bee#121 Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Ref: i-am-bee#121 Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
…ty object The "options" parameter in Tool's run method now fallbacks to an empty object to allow overrides. Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
The "options" parameter in stream/run method now fallbacks to an empty object to allow overrides. Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Graham White <gwhite@uk.ibm.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: MICHAEL DESMOND <mdesmond@us.ibm.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: MICHAEL DESMOND <mdesmond@us.ibm.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: MICHAEL DESMOND <mdesmond@us.ibm.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Matous Havlena <havlenma@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
…orking example Ref: i-am-bee#121 Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
… and optimize testing Refactored \humantool_agent.ts\ based on PR feedback: - Retained the original system prompt to prevent unnecessary changes. - Adjusted testing to use LLaMA instead of GPT-4 as per optimization requirements. - Addressed issues where the model occasionally skipped tool calling. Ref: i-am-bee#121 Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Removed the extended prompt for the human tool, enhanced the tool description, and updated the example to use the default system prompt. Ref: i-am-bee#121 Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Ref: i-am-bee#219 Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Tomas Dvorak <toomas2d@gmail.com> Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
matiasmolinas
force-pushed
the
fresh-human-tool
branch
from
December 7, 2024 08:31
fdeb93f
to
2f81a3e
Compare
…ogic Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
Ref: i-am-bee#121 Signed-off-by: Matias Molinas <matias.molinas@gmail.com>
There is a complex merge and an issue in one commit message that is difficult to fix. I will take the latest files, create a new branch called fresh-human-tool-new, and open a new PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Human intervention abstraction - Step 1
Description:
Step 1: Define the 'HumanTool' as a tool which can be equipped to any Bee and be invoked by it when it deems there is some missing information required for the following steps and hence must call out to the user to collect it. So I agree with you on the following:
Tool Name: 'HumanTool'
Tool Input: For a Bee to use this tool, it should generate a NL message asking the user for some specific information.
Tool Output: NL response from the end user
BeeAgentRunner 'HumanTool' Execution: The Runner should then execute the HumanTool by sending the NL message to the end user and wait for a response. Once the user has responded, the tool output (message from the user) is appended to the Agent memory and the loop for Action and ActionInput can continue
Closes: #121
Description
This Pull Request introduces the HumanTool to the Bee Agent Framework as part of Step 1 of the issue: Human intervention abstraction - enhancement. The tool enables Bees to interact with users during workflows to gather additional information.
Changes
Added HumanTool (
src/tools/human.ts
):Extended Bee Prompts (
src/agents/bee/prompts.ts
):Added Helper for Console Interaction (
src/helpers/io.ts
):Created an Experimental Agent (
examples/agents/experimental/humantool_agent.ts
):Checklist
yarn lint
oryarn lint:fix
yarn format
oryarn format:fix
yarn test:unit
yarn test:e2e