Skip to content

Conversation

@radu-mocanu
Copy link
Collaborator

@radu-mocanu radu-mocanu commented Jan 12, 2026

  • infer attachments in runtime schema generation

Development Package

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

  # Any version from PR
  "uipath-langchain>=0.3.3.dev1004000000,<0.3.3.dev1004010000"
]

[[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" }

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for inferring attachments in runtime schema generation by integrating attachment transformation utilities from the uipath.runtime.schema module.

Changes:

  • Replaced local schema transformation functions with imported utilities from uipath.runtime.schema
  • Added attachment transformation to the input schema processing pipeline
  • Updated dependency versions to support the new attachment transformation features

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
tests/runtime/test_schema.py Updated test imports to use transform_references from uipath.runtime.schema and added comprehensive parametrized tests for attachment schema generation across different model types (Pydantic, dataclass, TypedDict)
src/uipath_langchain/runtime/schema.py Replaced local _resolve_refs and _process_nullable_types functions with imported transform_references, transform_nullable_types, and transform_attachments utilities; integrated transform_attachments into input schema processing
pyproject.toml Bumped minimum versions of uipath (2.4.0 → 2.4.14) and uipath-runtime (0.4.0 → 0.4.1) dependencies to support new transformation features

InputModel = exec_globals["InputModel"]

def generate_simple_langgraph_graph():
# note: type ignore is needed here since mypy can t validate a dynamically created object's type
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

Corrected spelling of 'can t' to 'can't'.

Suggested change
# note: type ignore is needed here since mypy can t validate a dynamically created object's type
# note: type ignore is needed here since mypy can't validate a dynamically created object's type

Copilot uses AI. Check for mistakes.
dependencies = [
"uipath>=2.4.0, <2.5.0",
"uipath-runtime>=0.4.0, <0.5.0",
"uipath>=2.4.14,<2.5.0",
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

Missing space after comma in version constraint. Should be >=2.4.14, <2.5.0 to match the formatting style used in line 9.

Suggested change
"uipath>=2.4.14,<2.5.0",
"uipath>=2.4.14, <2.5.0",

Copilot uses AI. Check for mistakes.
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.

1 participant