diff --git a/pyproject.toml b/pyproject.toml index c94491ba..18caa61a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-langchain" -version = "0.1.42" +version = "0.1.43" 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" diff --git a/src/uipath_langchain/agent/tools/context_tool.py b/src/uipath_langchain/agent/tools/context_tool.py index 14dfb488..23026198 100644 --- a/src/uipath_langchain/agent/tools/context_tool.py +++ b/src/uipath_langchain/agent/tools/context_tool.py @@ -40,6 +40,7 @@ class ContextOutputSchemaModel(BaseModel): description=resource.description, input_schema=input_model.model_json_schema(), output_schema=output_model.model_json_schema(), + example_calls=[], # Examples cannot be provided for context. ) async def context_tool_fn(query: str) -> dict[str, Any]: return {"documents": await retriever.ainvoke(query)} diff --git a/src/uipath_langchain/agent/tools/escalation_tool.py b/src/uipath_langchain/agent/tools/escalation_tool.py index ece076f0..90e6d18e 100644 --- a/src/uipath_langchain/agent/tools/escalation_tool.py +++ b/src/uipath_langchain/agent/tools/escalation_tool.py @@ -48,6 +48,7 @@ def create_escalation_tool(resource: AgentEscalationResourceConfig) -> Structure description=resource.description, input_schema=input_model.model_json_schema(), output_schema=output_model.model_json_schema(), + example_calls=channel.properties.example_calls, ) async def escalation_tool_fn( runtime: ToolRuntime, **kwargs: Any diff --git a/src/uipath_langchain/agent/tools/integration_tool.py b/src/uipath_langchain/agent/tools/integration_tool.py index 6e89df37..468d256f 100644 --- a/src/uipath_langchain/agent/tools/integration_tool.py +++ b/src/uipath_langchain/agent/tools/integration_tool.py @@ -154,6 +154,7 @@ def create_integration_tool( description=resource.description, input_schema=input_model.model_json_schema(), output_schema=output_model.model_json_schema(), + example_calls=resource.properties.example_calls, ) async def integration_tool_fn(**kwargs: Any): try: diff --git a/src/uipath_langchain/agent/tools/process_tool.py b/src/uipath_langchain/agent/tools/process_tool.py index d167d5bb..885b3cc4 100644 --- a/src/uipath_langchain/agent/tools/process_tool.py +++ b/src/uipath_langchain/agent/tools/process_tool.py @@ -27,6 +27,7 @@ def create_process_tool(resource: AgentProcessToolResourceConfig) -> StructuredT description=resource.description, input_schema=input_model.model_json_schema(), output_schema=output_model.model_json_schema(), + example_calls=resource.properties.example_calls, ) async def process_tool_fn(**kwargs: Any): return interrupt( diff --git a/uv.lock b/uv.lock index 1bdab064..9859eac7 100644 --- a/uv.lock +++ b/uv.lock @@ -3260,7 +3260,7 @@ wheels = [ [[package]] name = "uipath-langchain" -version = "0.1.42" +version = "0.1.43" source = { editable = "." } dependencies = [ { name = "aiosqlite" },