Skip to content

Commit

Permalink
Merge branch 'fix_tool_metadata_order' of https://github.com/langflow…
Browse files Browse the repository at this point in the history
…-ai/langflow into fix_tool_metadata_order
  • Loading branch information
edwinjosechittilappilly committed Dec 16, 2024
2 parents 9c17941 + 75d021e commit b0b4281
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
TOOL_OUTPUT_DISPLAY_NAME,
TOOL_OUTPUT_NAME,
TOOL_TABLE_SCHEMA,
TOOLS_METADATA_INFO,
TOOLS_METADATA_INPUT_NAME,
)
from langflow.custom.tree_visitor import RequiredInputsVisitor
Expand Down Expand Up @@ -1174,7 +1175,7 @@ def _build_tools_metadata_input(self):
tool_data = (
self.tools_metadata
if hasattr(self, TOOLS_METADATA_INPUT_NAME)
else [{"name": tool.name, "description": tool.description} for tool in tools]
else [{"name": tool.name, "description": tool.description, "tags": tool.tags} for tool in tools]
)
try:
from langflow.io import TableInput
Expand All @@ -1184,7 +1185,7 @@ def _build_tools_metadata_input(self):

return TableInput(
name=TOOLS_METADATA_INPUT_NAME,
info="Use the table to configure the tools.",
info=TOOLS_METADATA_INFO,
display_name="Toolset configuration",
real_time_refresh=True,
table_schema=TOOL_TABLE_SCHEMA,
Expand Down

0 comments on commit b0b4281

Please sign in to comment.