Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath-langchain"
version = "0.3.4"
version = "0.3.5"
description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
Expand Down
12 changes: 12 additions & 0 deletions src/uipath_langchain/agent/tools/context_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ async def context_tool_fn(query: str) -> dict[str, Any]:
args_schema=input_model,
coroutine=context_tool_fn,
output_type=output_model,
metadata={
"tool_type": "context",
"display_name": resource.name,
},
)


Expand Down Expand Up @@ -183,6 +187,10 @@ async def context_tool_fn(query: str) -> dict[str, Any]:
args_schema=input_model,
coroutine=context_tool_fn,
output_type=output_model,
metadata={
"tool_type": "context",
"display_name": resource.name,
},
)


Expand Down Expand Up @@ -302,6 +310,10 @@ async def context_tool_fn(
args_schema=input_model,
coroutine=context_tool_fn,
output_type=output_model,
metadata={
"tool_type": "context",
"display_name": resource.name,
},
)


Expand Down
4 changes: 4 additions & 0 deletions src/uipath_langchain/agent/tools/integration_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ async def integration_tool_fn(**kwargs: Any):
args_schema=input_model,
coroutine=integration_tool_fn,
output_type=output_model,
metadata={
"tool_type": "integration",
"display_name": resource.name,
},
)
tool.set_tool_wrappers(awrapper=wrapper)

Expand Down
2 changes: 2 additions & 0 deletions src/uipath_langchain/agent/tools/mcp_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ async def init_session(
async with semaphore:
await session.initialize()
tools = await load_mcp_tools(session)
for tool in tools:
tool.metadata = {"tool_type": "mcp", "display_name": tool.name}
return _filter_tools(tools, cfg)

async def create_session(
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.