Skip to content

fix: correctly update tool calls in AIMessages#453

Merged
cotovanu-cristian merged 3 commits intomainfrom
fix/tool-call-updating
Jan 22, 2026
Merged

fix: correctly update tool calls in AIMessages#453
cotovanu-cristian merged 3 commits intomainfrom
fix/tool-call-updating

Conversation

@andreitava-uip
Copy link
Copy Markdown
Contributor

@andreitava-uip andreitava-uip commented Jan 22, 2026

Modifying the dedicated tool_call property is not enough. We need to modify the actual content parts.
This is done via Langchain's normalized content blocks, which are supported in all chat model clients we use.

@valentinabojan implemented the guardrails commit (got lost in rebase/force push somewhere)

Development Package

  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath-langchain==0.4.27.dev1004532169",

  # Any version from PR
  "uipath-langchain>=0.4.27.dev1004530000,<0.4.27.dev1004540000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath-langchain = { index = "testpypi" }

@cotovanu-cristian cotovanu-cristian enabled auto-merge (squash) January 22, 2026 16:44
@cotovanu-cristian cotovanu-cristian merged commit 753c6d0 into main Jan 22, 2026
39 checks passed
@cotovanu-cristian cotovanu-cristian deleted the fix/tool-call-updating branch January 22, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants