From 2c5f69907eb7fb8747cee9f28db4e765ff0de6f3 Mon Sep 17 00:00:00 2001 From: Jason Schleifer Date: Thu, 31 Oct 2024 11:43:20 +1300 Subject: [PATCH 1/3] fix LocalStructureRunDriver --- nodes/tools/gtUIConvertAgentToTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/tools/gtUIConvertAgentToTool.py b/nodes/tools/gtUIConvertAgentToTool.py index 7047191..495405f 100644 --- a/nodes/tools/gtUIConvertAgentToTool.py +++ b/nodes/tools/gtUIConvertAgentToTool.py @@ -46,7 +46,7 @@ def run( ): if agent: # Create a local structure function - driver = LocalStructureRunDriver(structure_factory_fn=lambda: agent) + driver = LocalStructureRunDriver(create_structure=lambda: agent) tool = StructureRunTool( name=to_pascal_case(name), # name=name, From 44d8d0284db580b678fba67c3e789df960dee78d Mon Sep 17 00:00:00 2001 From: Jason Schleifer Date: Thu, 31 Oct 2024 11:47:31 +1300 Subject: [PATCH 2/3] update version --- README.md | 1 + js/versions.js | 11 +++++++++-- pyproject.toml | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 83f7f34..f909a10 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ You can previous and download more examples [here](examples/README.md). ### Oct 31, 2024 * Added tooltips for all drivers to help clarify properties * Added fix for Ollama Driver Config so it wouldn't fail if no embedding driver was specified. +* Fix for Convert Agent to Tool node. ### Oct 30, 2024 * Updated to Griptape Framework v0.34.0 diff --git a/js/versions.js b/js/versions.js index 90e4f1b..503a883 100644 --- a/js/versions.js +++ b/js/versions.js @@ -1,11 +1,18 @@ export const versions = { - "version": "0.34.0a", - "releaseDate": "2024-10-30", + "version": "0.34.0b", + "releaseDate": "2024-10-31", "name": "ComfyUI-Griptape", "description": "Griptape integration for ComfyUI", "author": "Jason Schleifer", "repository": "https://github.com/griptape-ai/ComfyUI-Griptape", "changelog": [ + { + "version": "0.34.0b", + "date": "2024-10-31", + "changes": [ + "fix convert agent to tool node", + ] + }, { "version": "0.34.0a", "date": "2024-10-31", diff --git a/pyproject.toml b/pyproject.toml index 1d13546..5ab8f54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ priority = "explicit" [project] name = "comfyui-griptape" description = "Griptape LLM(Large Language Model) Nodes for ComfyUI." -version = "1.0.11" +version = "1.0.12" license = {file = "LICENSE"} dependencies = ["griptape[all]==0.34.0", "python-dotenv"] From d1b2aeb7f1ff3fd44911cadbee12372494b799d9 Mon Sep 17 00:00:00 2001 From: Jason Schleifer Date: Thu, 31 Oct 2024 11:49:16 +1300 Subject: [PATCH 3/3] tmp adding settings --- js/gtUINodes.js | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/js/gtUINodes.js b/js/gtUINodes.js index 71f8c4b..8726e30 100644 --- a/js/gtUINodes.js +++ b/js/gtUINodes.js @@ -37,15 +37,25 @@ app.registerExtension({ } api.addEventListener("comfy.gtUI.runagent", messageHandler); - // app.ui.settings.addSetting({ - // id: "griptape.env", - // name: "Griptape environment variables", - // type: "textbox", // "text" is another simple option + // app.ui.settings.addSetting({ + // id: "griptape.api_keys.openai_api_key", + // name: "OPENAI_API_KEY", + // type: "textbox", // "text" is another simple option - // defaultValue: "OPENAI_API_KEY=12345", - // /* To listen for changes, add an onChange parameter - // onChange: (newVal, oldVal) => { console.log("Setting got changed!") }, - // */ + // defaultValue: "123456", + // /* To listen for changes, add an onChange parameter + // onChange: (newVal, oldVal) => { console.log("Setting got changed!") }, + // */ + // }); + // app.ui.settings.addSetting({ + // id: "griptape.api_keys.griptape_api_key", + // name: "GRIPTAPE_API_KEY", + // type: "textbox", // "text" is another simple option + + // defaultValue: "123456", + // /* To listen for changes, add an onChange parameter + // onChange: (newVal, oldVal) => { console.log("Setting got changed!") }, + // */ // }); },