feat: add support for dark icons in provider and tool entities (#22081)

This commit is contained in:
Yeuoly
2025-07-10 14:43:31 +08:00
committed by GitHub
parent edf5fd28c9
commit 94a13d7d62
6 changed files with 18 additions and 0 deletions

View File

@@ -339,10 +339,12 @@ class ToolNode(BaseNode[ToolNodeData]):
if provider.name == dict_metadata["provider"]
)
icon = builtin_tool.icon
icon_dark = builtin_tool.icon_dark
except StopIteration:
pass
dict_metadata["icon"] = icon
dict_metadata["icon_dark"] = icon_dark
message.message.metadata = dict_metadata
agent_log = AgentLogEvent(
id=message.message.id,