Skip to content

feat(MockingOverrides): allow schema overrides for mockable#667

Merged
akshaylive merged 1 commit into
mainfrom
akshaya/mockable_schema_overrides
Oct 10, 2025
Merged

feat(MockingOverrides): allow schema overrides for mockable#667
akshaylive merged 1 commit into
mainfrom
akshaya/mockable_schema_overrides

Conversation

@akshaylive

@akshaylive akshaylive commented Oct 10, 2025

Copy link
Copy Markdown
Collaborator

Similar to @tool(args_schema=.., we now support overriding input_schema and output_schema for @mockable functions. This will help with dynamic schemas from resources.

Development Package

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

  # Any version from PR
  "uipath>=2.1.79.dev1006670000,<2.1.79.dev1006680000"
]

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

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

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Oct 10, 2025
@akshaylive akshaylive added the build:dev Create a dev build from the pr label Oct 10, 2025
@akshaylive akshaylive enabled auto-merge October 10, 2025 01:55
@akshaylive akshaylive disabled auto-merge October 10, 2025 17:50
Similar to ``@tool(args_schema=..`, we now support overriding `input_schema` and `output_schema`
for `@mockable` functions. This will help with dynamic schemas from resources.
@akshaylive akshaylive force-pushed the akshaya/mockable_schema_overrides branch from d7bb316 to d6ee96d Compare October 10, 2025 17:51
@akshaylive akshaylive enabled auto-merge October 10, 2025 17:52
@akshaylive akshaylive merged commit 10e6abc into main Oct 10, 2025
59 checks passed
@akshaylive akshaylive deleted the akshaya/mockable_schema_overrides branch October 10, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Create a dev build from the pr test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants