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.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"
Expand Down
1 change: 1 addition & 0 deletions src/uipath_langchain/agent/tools/context_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same for contexts

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per discussion, properties does not exist on context ATM. Deferring this until the equivalent changes are made in the UI.

)
async def context_tool_fn(query: str) -> dict[str, Any]:
return {"documents": await retriever.ainvoke(query)}
Expand Down
1 change: 1 addition & 0 deletions src/uipath_langchain/agent/tools/escalation_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/uipath_langchain/agent/tools/integration_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/uipath_langchain/agent/tools/process_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
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.

Loading