Skip to content

Commit 1540956

Browse files
authored
Merge pull request #370 from UiPath/akshaya/mockable_update_2
feat(ExampleCalls): add example calls for mocking purposes
2 parents aab0ade + 2de00b9 commit 1540956

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.1.42"
3+
version = "0.1.43"
44
description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath_langchain/agent/tools/context_tool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class ContextOutputSchemaModel(BaseModel):
4040
description=resource.description,
4141
input_schema=input_model.model_json_schema(),
4242
output_schema=output_model.model_json_schema(),
43+
example_calls=[], # Examples cannot be provided for context.
4344
)
4445
async def context_tool_fn(query: str) -> dict[str, Any]:
4546
return {"documents": await retriever.ainvoke(query)}

src/uipath_langchain/agent/tools/escalation_tool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def create_escalation_tool(resource: AgentEscalationResourceConfig) -> Structure
4848
description=resource.description,
4949
input_schema=input_model.model_json_schema(),
5050
output_schema=output_model.model_json_schema(),
51+
example_calls=channel.properties.example_calls,
5152
)
5253
async def escalation_tool_fn(
5354
runtime: ToolRuntime, **kwargs: Any

src/uipath_langchain/agent/tools/integration_tool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def create_integration_tool(
154154
description=resource.description,
155155
input_schema=input_model.model_json_schema(),
156156
output_schema=output_model.model_json_schema(),
157+
example_calls=resource.properties.example_calls,
157158
)
158159
async def integration_tool_fn(**kwargs: Any):
159160
try:

src/uipath_langchain/agent/tools/process_tool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def create_process_tool(resource: AgentProcessToolResourceConfig) -> StructuredT
2727
description=resource.description,
2828
input_schema=input_model.model_json_schema(),
2929
output_schema=output_model.model_json_schema(),
30+
example_calls=resource.properties.example_calls,
3031
)
3132
async def process_tool_fn(**kwargs: Any):
3233
return interrupt(

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)