Skip to content

Commit a845025

Browse files
committed
fix(hdl): Ensure default empty list for tools
Adjusts the assignment of 'self.tools' to default to an empty list if 'tools' is not provided, preventing potential issues related to null values.
1 parent 1d95e35 commit a845025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hdl/utils/llm/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def __init__(
175175
*args,
176176
**kwargs
177177
)
178-
self.tools: list = tools
178+
self.tools: list = tools if tools else []
179179
self.tool_desc: dict = TOOL_DESC
180180
if tool_desc is not None:
181181
self.tool_desc = self.tool_desc | tool_desc

0 commit comments

Comments
 (0)