Skip to content

Commit 67971af

Browse files
UN-2805 [FEAT] Add custom_data parameter for API deployment variable replacement overrides (#202)
* UN-2805 Add user_data parameter for API deployment variable replacement overrides - Added USER_DATA constant to MetadataKey class for user data handling - Updated BaseTool to extract and store user_data from execution metadata - Version bump to v0.77.2 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * UN-2805 Rename user_data to custom_data for consistency - Renamed USER_DATA constant to CUSTOM_DATA in MetadataKey class - Updated BaseTool to use custom_data instead of user_data - Version bump to v0.77.3 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> --------- Signed-off-by: jagadeeswaran-zipstack <[email protected]> Co-authored-by: Claude <[email protected]>
1 parent 74ce83c commit 67971af

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/unstract/sdk/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
__version__ = "v0.77.2"
2-
1+
__version__ = "v0.77.3"
32

43
def get_sdk_version() -> str:
54
"""Returns the SDK version."""

src/unstract/sdk/constants.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ class MetadataKey:
135135
OUTPUT = "output"
136136
OUTPUT_TYPE = "output_type"
137137
LLM_PROFILE_ID = "llm_profile_id"
138-
USER_DATA = "user_data"
139-
138+
CUSTOM_DATA = "custom_data"
140139

141140
class ToolSettingsKey:
142141
"""A class representing the keys used in the tool settings.

src/unstract/sdk/tool/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def from_tool_args(cls, args: list[str]) -> "BaseTool":
9494
tool.source_file_name = tool._exec_metadata.get(MetadataKey.SOURCE_NAME, "")
9595
tool.org_id = tool._exec_metadata.get(MetadataKey.ORG_ID)
9696
tool.llm_profile_id = tool._exec_metadata.get(MetadataKey.LLM_PROFILE_ID)
97-
tool.user_data = tool._exec_metadata.get(MetadataKey.USER_DATA, {})
97+
tool.custom_data = tool._exec_metadata.get(MetadataKey.CUSTOM_DATA, {})
9898
return tool
9999

100100
def elapsed_time(self) -> float:

0 commit comments

Comments
 (0)