Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

[FIX] Pass the right env value to the tool container while spawning (#1127)

Gayathri1a79f8e8f579
diff --git a/backend/sample.env b/backend/sample.env
index 9dba8fb8e..662c64217 100644
--- a/backend/sample.env
+++ b/backend/sample.env
@@ -82,9 +82,9 @@ REMOTE_PROMPT_STUDIO_FILE_PATH=
# Structure Tool Image (Runs prompt studio exported tools)
# https://hub.docker.com/r/unstract/tool-structure
-STRUCTURE_TOOL_IMAGE_URL="docker:unstract/tool-structure:0.0.61"
+STRUCTURE_TOOL_IMAGE_URL="docker:unstract/tool-structure:0.0.62"
STRUCTURE_TOOL_IMAGE_NAME="unstract/tool-structure"
-STRUCTURE_TOOL_IMAGE_TAG="0.0.61"
+STRUCTURE_TOOL_IMAGE_TAG="0.0.62"
# Feature Flags
EVALUATION_SERVER_IP=unstract-flipt
diff --git a/tools/structure/src/config/properties.json b/tools/structure/src/config/properties.json
index 88479f3cf..694d5badd 100644
--- a/tools/structure/src/config/properties.json
+++ b/tools/structure/src/config/properties.json
@@ -2,7 +2,7 @@
"schemaVersion": "0.0.1",
"displayName": "Structure Tool",
"functionName": "structure_tool",
- "toolVersion": "0.0.61",
+ "toolVersion": "0.0.62",
"description": "This is a template tool which can answer set of input prompts designed in the Prompt Studio",
"input": {
"description": "File that needs to be indexed and parsed for answers"
diff --git a/tools/structure/src/main.py b/tools/structure/src/main.py
index 6a6149ef6..d7fb7dfaf 100644
--- a/tools/structure/src/main.py
+++ b/tools/structure/src/main.py
@@ -96,11 +96,14 @@ class StructureTool(BaseTool):
file_name = SettingsKeys.SUMMARIZE
if self.workflow_filestorage:
tool_data_dir = Path(self.get_env_or_die(ToolEnv.EXECUTION_DATA_DIR))
+ execution_run_data_folder = Path(
+ self.get_env_or_die(ToolEnv.EXECUTION_DATA_DIR)
+ )
else:
tool_data_dir = Path(self.get_env_or_die(SettingsKeys.TOOL_DATA_DIR))
- execution_run_data_folder = Path(
- self.get_env_or_die(SettingsKeys.EXECUTION_RUN_DATA_FOLDER)
- )
+ execution_run_data_folder = Path(
+ self.get_env_or_die(SettingsKeys.EXECUTION_RUN_DATA_FOLDER)
+ )
index = Index(
tool=self,