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
Expand Up @@ -6,8 +6,8 @@ readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
dependencies = [
"uipath>=2.11.14, <2.12.0",
"uipath-core>=0.5.20, <0.6.0",
"uipath-platform>=0.1.79, <0.2.0",
"uipath-core>=0.5.25, <0.6.0",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please also bump the package version for this logic-changing PR. This adds runtime governance behavior to uipath-langchain, and these packages publish on merge, so keeping 0.13.12 makes the change ride an existing version.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We have to keep this PR open till the runtime changes are merged and the version is released. Will update the version post that.

"uipath-platform>=0.1.80, <0.2.0",
"uipath-runtime>=0.11.4, <0.12.0",
"langgraph>=1.1.8, <2.0.0",
"langchain-core>=1.2.27, <2.0.0",
Expand Down
16 changes: 16 additions & 0 deletions src/uipath_langchain/governance/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""Governance integration for ``uipath-langchain``.
Exposes :class:`GovernanceCallbackHandler` — a LangChain callback
handler that calls an :class:`~uipath.core.adapters.EvaluatorProtocol`
on the model and tool lifecycle. Wired into a run by passing an
``evaluator`` to :class:`UiPathLangGraphRuntimeFactory`; the factory
builds the handler and hands it to the runtime through the existing
``callbacks`` channel.
Importing this module has no side effects: no adapter is registered,
no global state is mutated.
"""

from .callbacks import GovernanceCallbackHandler

__all__ = ["GovernanceCallbackHandler"]
Loading
Loading