Skip to content
Open
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
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "uipath-langchain"
version = "0.13.1"
version = "0.13.2"
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"
dependencies = [
"uipath>=2.10.79, <2.12.0",
"uipath>=2.11.10, <2.12.0",
"uipath-core>=0.5.20, <0.6.0",
"uipath-platform>=0.1.71, <0.2.0",
"uipath-runtime>=0.11.0, <0.12.0",
Expand Down
11 changes: 7 additions & 4 deletions src/uipath_langchain/agent/tools/a2a/a2a_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ def _build_description(card: AgentCard) -> str:


def _resolve_a2a_url(config: AgentA2aResourceConfig) -> str:
"""Resolve the A2A endpoint URL from the cached agent card."""
if config.cached_agent_card and "url" in config.cached_agent_card:
return config.cached_agent_card["url"]
raise ValueError(f"A2A resource '{config.name}' has no URL in cachedAgentCard")
"""Resolve the A2A endpoint URL, using the UiPath-hosted proxy URL."""
if config.a2a_url:
return config.a2a_url
raise ValueError(f"A2A resource '{config.name}' has no URL")


async def _send_a2a_message(
Expand Down Expand Up @@ -341,6 +341,9 @@ def create_a2a_tools_and_clients(
default_output_modes=["text/plain"],
)

if resource.a2a_url:
agent_card.url = resource.a2a_url

a2a_client = A2aClient(agent_card)
tool = _create_a2a_tool(resource, a2a_client, agent_card)
tools.append(tool)
Expand Down
24 changes: 12 additions & 12 deletions uv.lock

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

Loading