Skip to content

Commit 7850313

Browse files
committed
Copy and modify credential tool schema
1 parent 91a6b0f commit 7850313

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llmstack/processors/providers/promptly/web_browser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,9 +505,8 @@ def _process_anthropic(self) -> dict:
505505
browser_downloads = []
506506
session_videos = []
507507

508-
credentials_tool_schema = CREDENTIALS_TOOL_SCHEMA["function"]
509-
credentials_tool_schema["input_schema"] = credentials_tool_schema["parameters"]
510-
del credentials_tool_schema["parameters"]
508+
credentials_tool_schema = CREDENTIALS_TOOL_SCHEMA["function"].copy()
509+
credentials_tool_schema["input_schema"] = credentials_tool_schema.pop("parameters")
511510

512511
updated_session_data = None
513512

0 commit comments

Comments
 (0)