uipath-langchain 0.0.102__tar.gz → 0.0.103__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of uipath-langchain might be problematic. Click here for more details.
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/PKG-INFO +18 -14
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/README.md +16 -12
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/chat_models.md +92 -91
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/human_in_the_loop.md +22 -14
- uipath_langchain-0.0.103/docs/quick_start.md +261 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/pyproject.toml +2 -2
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/ticket-classification/README.md +55 -31
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/cli_new.py +3 -2
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/uv.lock +5 -5
- uipath_langchain-0.0.102/docs/quick_start.md +0 -151
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.cursorrules +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.editorconfig +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.gitattributes +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.github/workflows/build.yml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.github/workflows/cd.yml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.github/workflows/ci.yml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.github/workflows/commitlint.yml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.github/workflows/lint.yml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.github/workflows/publish-dev.yml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.github/workflows/test.yml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.gitignore +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.pre-commit-config.yaml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.python-version +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.vscode/extensions.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/.vscode/settings.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/CONTRIBUTING.md +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/LICENSE +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/context_grounding.md +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/quick_start_images/cloud_env_var.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/multi-agent-distributed/coder-agent-package-overview.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/multi-agent-distributed/coder-agent-process-configuration.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/multi-agent-distributed/planner-agent-package-overview.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/multi-agent-distributed/planner-agent-process-configuration.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/multi-agent-distributed/researcher-agent-package-overview.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/multi-agent-distributed/researcher-agent-process-configuration.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/activate-apps.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/activate-deployment.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/copy-folder-path.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/deploy-solution-package-wizard.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/deploy-solution-package.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/monitor-agent.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/navigate-to-solution-folder.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/resume-condition.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/run-agent.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/solution-destination-folder.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/start-job.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/docs/sample_images/ticket-classification/upload-solution-package.png +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/README.md +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/company-research-agent/.env.example +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/company-research-agent/agent.mermaid +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/company-research-agent/graph.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/company-research-agent/langgraph.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/company-research-agent/pyproject.toml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/company-research-agent/uipath.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/company-research-agent/uv.lock +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/hitl-inbox-server/database.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/hitl-inbox-server/main.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/hitl-inbox-server/models.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/hitl-inbox-server/pyproject.toml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/hitl-inbox-server/schemas.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/hitl-inbox-server/templates/index.html +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/hitl-inbox-server/uv.lock +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/.env.example +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/README.md +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/coder.mermaid +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/langgraph.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/planner.mermaid +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/pyproject.toml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/researcher.mermaid +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/coder.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/planner.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/researcher.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/uipath.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-planner-researcher-coder-distributed/uv.lock +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-supervisor-researcher-coder/.env.example +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-supervisor-researcher-coder/README.md +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-supervisor-researcher-coder/agent.mermaid +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-supervisor-researcher-coder/graph.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-supervisor-researcher-coder/langgraph.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-supervisor-researcher-coder/pyproject.toml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-supervisor-researcher-coder/uipath.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/multi-agent-supervisor-researcher-coder/uv.lock +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/retrieval-chain/.env.example +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/retrieval-chain/README.md +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/retrieval-chain/main.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/retrieval-chain/pyproject.toml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/retrieval-chain/uv.lock +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-local-mcp/.env.example +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-local-mcp/README.md +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-local-mcp/agent.mermaid +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-local-mcp/langgraph.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-local-mcp/pyproject.toml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-local-mcp/src/simple-local-mcp/graph.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-local-mcp/src/simple-local-mcp/math_server.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-local-mcp/src/simple-local-mcp/weather_server.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-local-mcp/uipath.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-local-mcp/uv.lock +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-remote-mcp/.env.example +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-remote-mcp/README.md +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-remote-mcp/agent.mermaid +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-remote-mcp/langgraph.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-remote-mcp/main.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-remote-mcp/pyproject.toml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-remote-mcp/uipath.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/simple-remote-mcp/uv.lock +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/ticket-classification/.env.example +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/ticket-classification/agent.mermaid +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/ticket-classification/escalation_app_solution/generic-escalation-app-solution-1.0.0.zip +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/ticket-classification/langgraph.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/ticket-classification/main.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/ticket-classification/pyproject.toml +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/ticket-classification/uipath.json +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/samples/ticket-classification/uv.lock +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/__init__.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/__init__.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/_runtime/_context.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/_runtime/_escalation.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/_runtime/_exception.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/_runtime/_input.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/_runtime/_output.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/_runtime/_runtime.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/_templates/langgraph.json.template +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/_templates/main.py.template +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/_utils/_graph.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/cli_init.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_cli/cli_run.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_utils/__init__.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_utils/_request_mixin.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_utils/_settings.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/_utils/_sleep_policy.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/chat/__init__.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/chat/models.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/chat/utils/__init__.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/chat/utils/_chat_types.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/embeddings/__init__.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/embeddings/embeddings.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/middlewares.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/retrievers/__init__.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/retrievers/context_grounding_retriever.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/tracers/AsyncUiPathTracer.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/tracers/UiPathTracer.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/tracers/__init__.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/tracers/_events.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/tracers/_instrument_traceable.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/tracers/_utils.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/utils/__init__.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/utils/_request_mixin.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/utils/_settings.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/utils/_sleep_policy.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/src/uipath_langchain/vectorstores/context_grounding_vectorstore.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/tests/__init__.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/tests/test_dummy.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/tests/test_langchain_client.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/tests/tracers/__init__.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/tests/tracers/test_async_uipath_tracer.py +0 -0
- {uipath_langchain-0.0.102 → uipath_langchain-0.0.103}/tests/tracers/test_instrument_traceable.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath-langchain
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.103
|
|
4
4
|
Summary: UiPath Langchain
|
|
5
5
|
Project-URL: Homepage, https://uipath.com
|
|
6
6
|
Project-URL: Repository, https://github.com/UiPath/uipath-langchain-python
|
|
@@ -25,7 +25,7 @@ Requires-Dist: pydantic-settings>=2.6.0
|
|
|
25
25
|
Requires-Dist: python-dotenv>=1.0.1
|
|
26
26
|
Requires-Dist: requests>=2.23.3
|
|
27
27
|
Requires-Dist: types-requests>=2.32.0.20241016
|
|
28
|
-
Requires-Dist: uipath<2.1.0,>=2.0.
|
|
28
|
+
Requires-Dist: uipath<2.1.0,>=2.0.33
|
|
29
29
|
Provides-Extra: langchain
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
31
|
|
|
@@ -34,16 +34,18 @@ Description-Content-Type: text/markdown
|
|
|
34
34
|
[](https://pypi.org/project/uipath-langchain/)
|
|
35
35
|
[](https://pypi.org/project/uipath-langchain/)
|
|
36
36
|
|
|
37
|
-
A Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Platform. This package provides programmatic interaction with UiPath Platform services and human-in-the-loop (HITL) semantics through Action Center integration.
|
|
37
|
+
A Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform. This package provides programmatic interaction with UiPath Cloud Platform services and human-in-the-loop (HITL) semantics through Action Center integration.
|
|
38
38
|
|
|
39
39
|
This package is an extension to the [UiPath Python SDK](https://github.com/UiPath/uipath-python).
|
|
40
40
|
|
|
41
|
-
This [quickstart guide](
|
|
41
|
+
This [quickstart guide](https://uipath.github.io/uipath-python/) walks you through deploying your first agent to UiPath Cloud Platform.
|
|
42
|
+
|
|
43
|
+
Check out these [sample projects](https://github.com/UiPath/uipath-langchain-python/tree/main/samples) to see the SDK in action.
|
|
42
44
|
|
|
43
45
|
## Requirements
|
|
44
46
|
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
+
- Python 3.10 or higher
|
|
48
|
+
- UiPath Automation Cloud account
|
|
47
49
|
|
|
48
50
|
## Installation
|
|
49
51
|
|
|
@@ -105,10 +107,12 @@ uipath pack
|
|
|
105
107
|
Packages your project into a `.nupkg` file that can be deployed to UiPath.
|
|
106
108
|
|
|
107
109
|
**Note:** Your `pyproject.toml` must include:
|
|
108
|
-
|
|
109
|
-
-
|
|
110
|
+
|
|
111
|
+
- A description field (avoid characters: &, <, >, ", ', ;)
|
|
112
|
+
- Author information
|
|
110
113
|
|
|
111
114
|
Example:
|
|
115
|
+
|
|
112
116
|
```toml
|
|
113
117
|
description = "Your package description"
|
|
114
118
|
authors = [{name = "Your Name", email = "your.email@example.com"}]
|
|
@@ -125,14 +129,14 @@ Publishes the most recently created package to your UiPath Orchestrator.
|
|
|
125
129
|
## Project Structure
|
|
126
130
|
|
|
127
131
|
To properly use the CLI for packaging and publishing, your project should include:
|
|
128
|
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
+
|
|
133
|
+
- A `pyproject.toml` file with project metadata
|
|
134
|
+
- A `langgraph.json` file
|
|
135
|
+
- A `uipath.json` file (generated by `uipath init`)
|
|
136
|
+
- Any Python files needed for your automation
|
|
132
137
|
|
|
133
138
|
## Development
|
|
134
139
|
|
|
135
140
|
### Setting Up a Development Environment
|
|
136
141
|
|
|
137
|
-
Please read our [contribution guidelines](CONTRIBUTING.md) before submitting a pull request.
|
|
138
|
-
|
|
142
|
+
Please read our [contribution guidelines](https://github.com/UiPath/uipath-langchain-python/blob/main/CONTRIBUTING.md) before submitting a pull request.
|
|
@@ -3,16 +3,18 @@
|
|
|
3
3
|
[](https://pypi.org/project/uipath-langchain/)
|
|
4
4
|
[](https://pypi.org/project/uipath-langchain/)
|
|
5
5
|
|
|
6
|
-
A Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Platform. This package provides programmatic interaction with UiPath Platform services and human-in-the-loop (HITL) semantics through Action Center integration.
|
|
6
|
+
A Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform. This package provides programmatic interaction with UiPath Cloud Platform services and human-in-the-loop (HITL) semantics through Action Center integration.
|
|
7
7
|
|
|
8
8
|
This package is an extension to the [UiPath Python SDK](https://github.com/UiPath/uipath-python).
|
|
9
9
|
|
|
10
|
-
This [quickstart guide](
|
|
10
|
+
This [quickstart guide](https://uipath.github.io/uipath-python/) walks you through deploying your first agent to UiPath Cloud Platform.
|
|
11
|
+
|
|
12
|
+
Check out these [sample projects](https://github.com/UiPath/uipath-langchain-python/tree/main/samples) to see the SDK in action.
|
|
11
13
|
|
|
12
14
|
## Requirements
|
|
13
15
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
+
- Python 3.10 or higher
|
|
17
|
+
- UiPath Automation Cloud account
|
|
16
18
|
|
|
17
19
|
## Installation
|
|
18
20
|
|
|
@@ -74,10 +76,12 @@ uipath pack
|
|
|
74
76
|
Packages your project into a `.nupkg` file that can be deployed to UiPath.
|
|
75
77
|
|
|
76
78
|
**Note:** Your `pyproject.toml` must include:
|
|
77
|
-
|
|
78
|
-
-
|
|
79
|
+
|
|
80
|
+
- A description field (avoid characters: &, <, >, ", ', ;)
|
|
81
|
+
- Author information
|
|
79
82
|
|
|
80
83
|
Example:
|
|
84
|
+
|
|
81
85
|
```toml
|
|
82
86
|
description = "Your package description"
|
|
83
87
|
authors = [{name = "Your Name", email = "your.email@example.com"}]
|
|
@@ -94,14 +98,14 @@ Publishes the most recently created package to your UiPath Orchestrator.
|
|
|
94
98
|
## Project Structure
|
|
95
99
|
|
|
96
100
|
To properly use the CLI for packaging and publishing, your project should include:
|
|
97
|
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
+
|
|
102
|
+
- A `pyproject.toml` file with project metadata
|
|
103
|
+
- A `langgraph.json` file
|
|
104
|
+
- A `uipath.json` file (generated by `uipath init`)
|
|
105
|
+
- Any Python files needed for your automation
|
|
101
106
|
|
|
102
107
|
## Development
|
|
103
108
|
|
|
104
109
|
### Setting Up a Development Environment
|
|
105
110
|
|
|
106
|
-
Please read our [contribution guidelines](CONTRIBUTING.md) before submitting a pull request.
|
|
107
|
-
|
|
111
|
+
Please read our [contribution guidelines](https://github.com/UiPath/uipath-langchain-python/blob/main/CONTRIBUTING.md) before submitting a pull request.
|
|
@@ -1,91 +1,92 @@
|
|
|
1
|
-
# UiPath
|
|
2
|
-
|
|
3
|
-
UiPath provides two chat models `UiPathAzureChatOpenAI` and `UiPathChat`. These are compatible with langgraph as drop in replacements. You do not need to add tokens from OpenAI or Anthropic, usage of these chat models will consume `AI Units` on your account.
|
|
4
|
-
|
|
5
|
-
## UiPathAzureChatOpenAI
|
|
6
|
-
|
|
7
|
-
`UiPathAzureChatOpenAI` can be used as a drop in replacement for `ChatOpenAI` or `AzureChatOpenAI`.
|
|
8
|
-
|
|
9
|
-
### Example usage
|
|
10
|
-
|
|
11
|
-
Here is a code that is using `ChatOpenAI`
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
#
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
```python
|
|
32
|
-
from uipath_langchain.chat.models import UiPathAzureChatOpenAI
|
|
33
|
-
|
|
34
|
-
llm = UiPathAzureChatOpenAI(
|
|
35
|
-
model="gpt-4o-2024-08-06",
|
|
36
|
-
temperature=0,
|
|
37
|
-
max_tokens=4000,
|
|
38
|
-
timeout=30,
|
|
39
|
-
max_retries=2,
|
|
40
|
-
# other params...
|
|
41
|
-
)
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Currently the following models can be used with `UiPathAzureChatOpenAI` (this list can be updated in the future):
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
## UiPathChat
|
|
49
|
-
|
|
50
|
-
`UiPathChat` is a more versatile clas that can suport models from diferent vendors including OpenAI.
|
|
51
|
-
|
|
52
|
-
### Example usage
|
|
53
|
-
|
|
54
|
-
Given the following code:
|
|
55
|
-
|
|
56
|
-
```python
|
|
57
|
-
from langchain_anthropic import ChatAnthropic
|
|
58
|
-
|
|
59
|
-
llm = ChatAnthropic(
|
|
60
|
-
model="claude-3-5-sonnet-20240620",
|
|
61
|
-
temperature=0,
|
|
62
|
-
max_tokens=1024,
|
|
63
|
-
timeout=None,
|
|
64
|
-
max_retries=2,
|
|
65
|
-
# other params...
|
|
66
|
-
)
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
You can replace it with `UiPathChat` like so:
|
|
70
|
-
|
|
71
|
-
```python
|
|
72
|
-
from uipath_langchain.chat.models import UiPathChat
|
|
73
|
-
|
|
74
|
-
llm = UiPathChat(
|
|
75
|
-
model="anthropic.claude-3-opus-20240229-v1:0",
|
|
76
|
-
temperature=0,
|
|
77
|
-
max_tokens=1024,
|
|
78
|
-
timeout=None,
|
|
79
|
-
max_retries=2,
|
|
80
|
-
# other params...
|
|
81
|
-
)
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
Currently the following models can be used with `UiPathChat` (this list can be updated in the future):
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
1
|
+
# UiPath Chat Models
|
|
2
|
+
|
|
3
|
+
UiPath provides two chat models `UiPathAzureChatOpenAI` and `UiPathChat`. These are compatible with langgraph as drop in replacements. You do not need to add tokens from OpenAI or Anthropic, usage of these chat models will consume `AI Units` on your account.
|
|
4
|
+
|
|
5
|
+
## UiPathAzureChatOpenAI
|
|
6
|
+
|
|
7
|
+
`UiPathAzureChatOpenAI` can be used as a drop in replacement for `ChatOpenAI` or `AzureChatOpenAI`.
|
|
8
|
+
|
|
9
|
+
### Example usage
|
|
10
|
+
|
|
11
|
+
Here is a code that is using `ChatOpenAI`
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from langchain_openai import ChatOpenAI
|
|
15
|
+
|
|
16
|
+
llm = ChatOpenAI(
|
|
17
|
+
model="gpt-4o",
|
|
18
|
+
temperature=0,
|
|
19
|
+
max_tokens=4000,
|
|
20
|
+
timeout=30,
|
|
21
|
+
max_retries=2,
|
|
22
|
+
# api_key="...", # if you prefer to pass api key in directly instead of using env vars
|
|
23
|
+
# base_url="...",
|
|
24
|
+
# organization="...",
|
|
25
|
+
# other params...
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
You can simply change `ChatOpenAi` with `UiPathAzureChatOpenAI`, you don't have to provide an `OPEN_AI_TOKEN`
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
from uipath_langchain.chat.models import UiPathAzureChatOpenAI
|
|
33
|
+
|
|
34
|
+
llm = UiPathAzureChatOpenAI(
|
|
35
|
+
model="gpt-4o-2024-08-06",
|
|
36
|
+
temperature=0,
|
|
37
|
+
max_tokens=4000,
|
|
38
|
+
timeout=30,
|
|
39
|
+
max_retries=2,
|
|
40
|
+
# other params...
|
|
41
|
+
)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Currently the following models can be used with `UiPathAzureChatOpenAI` (this list can be updated in the future):
|
|
45
|
+
|
|
46
|
+
- `gpt-4`, `gpt-4-1106-Preview`, `gpt-4-32k`, `gpt-4-turbo-2024-04-09`, `gpt-4-vision-preview`, `gpt-4o-2024-05-13`, `gpt-4o-2024-08-06`, `gpt-4o-mini-2024-07-18`, `o3-mini-2025-01-31`
|
|
47
|
+
|
|
48
|
+
## UiPathChat
|
|
49
|
+
|
|
50
|
+
`UiPathChat` is a more versatile clas that can suport models from diferent vendors including OpenAI.
|
|
51
|
+
|
|
52
|
+
### Example usage
|
|
53
|
+
|
|
54
|
+
Given the following code:
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
from langchain_anthropic import ChatAnthropic
|
|
58
|
+
|
|
59
|
+
llm = ChatAnthropic(
|
|
60
|
+
model="claude-3-5-sonnet-20240620",
|
|
61
|
+
temperature=0,
|
|
62
|
+
max_tokens=1024,
|
|
63
|
+
timeout=None,
|
|
64
|
+
max_retries=2,
|
|
65
|
+
# other params...
|
|
66
|
+
)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
You can replace it with `UiPathChat` like so:
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
from uipath_langchain.chat.models import UiPathChat
|
|
73
|
+
|
|
74
|
+
llm = UiPathChat(
|
|
75
|
+
model="anthropic.claude-3-opus-20240229-v1:0",
|
|
76
|
+
temperature=0,
|
|
77
|
+
max_tokens=1024,
|
|
78
|
+
timeout=None,
|
|
79
|
+
max_retries=2,
|
|
80
|
+
# other params...
|
|
81
|
+
)
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Currently the following models can be used with `UiPathChat` (this list can be updated in the future):
|
|
85
|
+
|
|
86
|
+
- `anthropic.claude-3-5-sonnet-20240620-v1:0`, `anthropic.claude-3-5-sonnet-20241022-v2:0`, `anthropic.claude-3-7-sonnet-20250219-v1:0`, `anthropic.claude-3-haiku-20240307-v1:0`, `gemini-1.5-pro-001`, `gemini-2.0-flash-001`, `gpt-4o-2024-05-13`, `gpt-4o-2024-08-06`, `gpt-4o-2024-11-20`, `gpt-4o-mini-2024-07-18`, `o3-mini-2025-01-31`
|
|
87
|
+
|
|
88
|
+
### Note
|
|
89
|
+
|
|
90
|
+
Please note that that you may get errors related to data residency, as some models are not available on all regions.
|
|
91
|
+
|
|
92
|
+
Example: `[Enforced Region] No model configuration found for product uipath-python-sdk in EU using model anthropic.claude-3-opus-20240229-v1:0`.
|
|
@@ -4,10 +4,8 @@ Guide for **Human-In-The-Loop** scenarios within the UiPath-Langchain integratio
|
|
|
4
4
|
It focuses on the **interrupt(model)** functionality, illustrating its role as a symbolic representation of an agent's
|
|
5
5
|
wait state within the Langchain framework.
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
## Models Overview
|
|
9
8
|
|
|
10
|
-
|
|
11
9
|
### 1. CreateAction
|
|
12
10
|
|
|
13
11
|
The `CreateAction` model is utilized to create an escalation action within the UiPath Action Center as part of an interrupt context. The action will rely on a previously created UiPath app.
|
|
@@ -15,18 +13,21 @@ After addressing the escalation, the current agent will resume execution.
|
|
|
15
13
|
For more information on UiPath apps, refer to the [UiPath Apps User Guide](https://docs.uipath.com/apps/automation-cloud/latest/user-guide/introduction).
|
|
16
14
|
|
|
17
15
|
#### Attributes:
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
16
|
+
|
|
17
|
+
- **name** (Optional[str]): The name of the app.
|
|
18
|
+
- **key** (Optional[str]): The key of the app.
|
|
19
|
+
- **title** (str): The title of the action to create.
|
|
20
|
+
- **data** (Optional[Dict[str, Any]]): Values that the action will be populated with.
|
|
21
|
+
- **app_version** (Optional[int]): The version of the app (defaults to 1).
|
|
22
|
+
- **assignee** (Optional[str]): The username or email of the person assigned to handle the escalation.
|
|
24
23
|
|
|
25
24
|
#### Example:
|
|
25
|
+
|
|
26
26
|
```python
|
|
27
27
|
from uipath.models import CreateAction
|
|
28
28
|
action_output = interrupt(CreateAction(name="AppName", title="Escalate Issue", data={"key": "value"}, app_version=1, assignee="user@example.com"))
|
|
29
29
|
```
|
|
30
|
+
|
|
30
31
|
For a practical implementation of the `CreateAction` model, refer to the [ticket-classification sample](https://github.com/UiPath/uipath-langchain-python/tree/main/samples/ticket-classification). This sample demonstrates how to create an action with dynamic input.
|
|
31
32
|
|
|
32
33
|
---
|
|
@@ -36,14 +37,18 @@ For a practical implementation of the `CreateAction` model, refer to the [ticket
|
|
|
36
37
|
The `WaitAction` model is used to wait for an action to be handled. This model is intended for scenarios where the action has already been created.
|
|
37
38
|
|
|
38
39
|
#### Attributes:
|
|
39
|
-
|
|
40
|
+
|
|
41
|
+
- **action** (Action): The instance of the action to wait for.
|
|
40
42
|
|
|
41
43
|
#### Example:
|
|
44
|
+
|
|
42
45
|
```python
|
|
43
46
|
from uipath.models import WaitAction
|
|
44
47
|
action_output = interrupt(WaitAction(action=my_action_instance))
|
|
45
48
|
```
|
|
49
|
+
|
|
46
50
|
---
|
|
51
|
+
|
|
47
52
|
> 💡 UiPath Langchain sdk also supports **Robot/Agent-in-the-loop** scenarios. In this context, the execution of one agent
|
|
48
53
|
> can be suspended until another robot or agent finishes its execution.
|
|
49
54
|
|
|
@@ -54,10 +59,12 @@ This process can be of various types, including API workflows, Agents or RPA aut
|
|
|
54
59
|
Upon completion of the invoked process, the current agent will automatically resume execution.
|
|
55
60
|
|
|
56
61
|
#### Attributes:
|
|
57
|
-
|
|
58
|
-
-
|
|
62
|
+
|
|
63
|
+
- **name** (str): The name of the process to invoke.
|
|
64
|
+
- **input_arguments** (Optional[Dict[str, Any]]): A dictionary containing the input arguments required for the invoked process.
|
|
59
65
|
|
|
60
66
|
#### Example:
|
|
67
|
+
|
|
61
68
|
```python
|
|
62
69
|
from uipath.models import InvokeProcess
|
|
63
70
|
process_output = interrupt(InvokeProcess(name="MyProcess", input_arguments={"arg1": "value1"}))
|
|
@@ -70,14 +77,15 @@ For a practical implementation of the `InvokeProcess` model, refer to the [multi
|
|
|
70
77
|
### 4. WaitJob
|
|
71
78
|
|
|
72
79
|
The `WaitJob` model is used to wait for a job completion. Unlike `InvokeProcess`, which automatically creates a job, this model is intended for scenarios where
|
|
73
|
-
|
|
80
|
+
the job has already been created.
|
|
74
81
|
|
|
75
82
|
#### Attributes:
|
|
76
|
-
|
|
83
|
+
|
|
84
|
+
- **job** (Job): The instance of the job that the agent will wait for. This should be a valid job object that has been previously created.
|
|
77
85
|
|
|
78
86
|
#### Example:
|
|
87
|
+
|
|
79
88
|
```python
|
|
80
89
|
from uipath.models import WaitJob
|
|
81
90
|
job_output = interrupt(WaitJob(job=my_job_instance))
|
|
82
91
|
```
|
|
83
|
-
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# Quickstart Guide: UiPath LangChain Agents
|
|
2
|
+
|
|
3
|
+
## Introduction
|
|
4
|
+
|
|
5
|
+
This guide walks you through the process of setting up, creating, publishing, and running your first UiPath-LangChain Agent.
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
|
|
9
|
+
Ensure you have the following installed before proceeding:
|
|
10
|
+
|
|
11
|
+
- Python 3.10 or higher
|
|
12
|
+
- `pip` or `uv` package manager
|
|
13
|
+
- A UiPath Cloud Platform account with appropriate permissions
|
|
14
|
+
- Either Anthropic or OpenAI API key
|
|
15
|
+
|
|
16
|
+
/// info
|
|
17
|
+
|
|
18
|
+
1. **Anthropic** - Generate an Anthropic API key [here](https://console.anthropic.com/settings/keys).
|
|
19
|
+
|
|
20
|
+
2. **OpenAi** - Generate an OpenAI API key [here](https://platform.openai.com).
|
|
21
|
+
|
|
22
|
+
///
|
|
23
|
+
|
|
24
|
+
## Step-by-Step Guide
|
|
25
|
+
|
|
26
|
+
## Creating a New Project
|
|
27
|
+
|
|
28
|
+
We recommend using `uv` for package management. To create a new project:
|
|
29
|
+
|
|
30
|
+
//// tab | Linux, macOS, Windows Bash
|
|
31
|
+
|
|
32
|
+
<!-- termynal -->
|
|
33
|
+
|
|
34
|
+
```shell
|
|
35
|
+
> mkdir example
|
|
36
|
+
> cd example
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
////
|
|
40
|
+
|
|
41
|
+
//// tab | Windows PowerShell
|
|
42
|
+
|
|
43
|
+
<!-- termynal -->
|
|
44
|
+
|
|
45
|
+
```powershell
|
|
46
|
+
> New-Item -ItemType Directory -Path example
|
|
47
|
+
> Set-Location example
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
////
|
|
51
|
+
|
|
52
|
+
//// tab | uv
|
|
53
|
+
new: true
|
|
54
|
+
|
|
55
|
+
<!-- termynal -->
|
|
56
|
+
|
|
57
|
+
```shell
|
|
58
|
+
# Initialize a new uv project in the current directory
|
|
59
|
+
> uv init . --python 3.10
|
|
60
|
+
|
|
61
|
+
# Create a new virtual environment
|
|
62
|
+
# By default, uv creates a virtual environment in a directory called .venv
|
|
63
|
+
> uv venv
|
|
64
|
+
Using CPython 3.10.16 interpreter at: [PATH]
|
|
65
|
+
Creating virtual environment at: .venv
|
|
66
|
+
Activate with: source .venv/bin/activate
|
|
67
|
+
|
|
68
|
+
# Activate the virtual environment
|
|
69
|
+
# For Windows PowerShell: .venv\Scripts\Activate.ps1
|
|
70
|
+
# For Windows Bash: source .venv/Scripts/activate
|
|
71
|
+
> source .venv/bin/activate
|
|
72
|
+
|
|
73
|
+
# Install the uipath package
|
|
74
|
+
> uv add uipath-langchain
|
|
75
|
+
|
|
76
|
+
# Verify the uipath installation
|
|
77
|
+
> uipath --lv
|
|
78
|
+
uipath-langchain version 0.0.100
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
////
|
|
82
|
+
|
|
83
|
+
//// tab | pip
|
|
84
|
+
|
|
85
|
+
<!-- termynal -->
|
|
86
|
+
|
|
87
|
+
```shell
|
|
88
|
+
# Create a new virtual environment
|
|
89
|
+
> python -m venv .venv
|
|
90
|
+
|
|
91
|
+
# Activate the virtual environment
|
|
92
|
+
# For Windows PowerShell: .venv\Scripts\Activate.ps1
|
|
93
|
+
# For Windows Bash: source .venv/Scripts/activate
|
|
94
|
+
> source .venv/bin/activate
|
|
95
|
+
|
|
96
|
+
# Upgrade pip to the latest version
|
|
97
|
+
> python -m pip install --upgrade pip
|
|
98
|
+
|
|
99
|
+
# Install the uipath package
|
|
100
|
+
> pip install uipath-langchain
|
|
101
|
+
|
|
102
|
+
# Verify the uipath installation
|
|
103
|
+
> uipath --lv
|
|
104
|
+
uipath-langchain version 0.0.100
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
////
|
|
108
|
+
|
|
109
|
+
## Create Your First UiPath Agent
|
|
110
|
+
|
|
111
|
+
Generate your first UiPath LangChain:
|
|
112
|
+
|
|
113
|
+
<!-- termynal -->
|
|
114
|
+
|
|
115
|
+
```shell
|
|
116
|
+
> uipath new my-agent
|
|
117
|
+
⠋ Creating new agent my-agent in current directory ...
|
|
118
|
+
✓ Created 'main.py' file.
|
|
119
|
+
✓ Created 'langgraph.json' file.
|
|
120
|
+
✓ Created 'pyproject.toml' file.
|
|
121
|
+
Resolved 90 packages in 351ms
|
|
122
|
+
Prepared 2 packages in 213ms
|
|
123
|
+
Installed 2 packages in 3ms
|
|
124
|
+
+ anthropic==0.50.0
|
|
125
|
+
+ langchain-anthropic==0.3.12
|
|
126
|
+
⠧ Initializing UiPath project ...
|
|
127
|
+
✓ Created '.env' file.
|
|
128
|
+
✓ Created 'agent.mermaid' file.
|
|
129
|
+
✓ Created 'uipath.json' file.
|
|
130
|
+
🔧 Please ensure to define either ANTHROPIC_API_KEY or OPENAI_API_KEY in your .env file.
|
|
131
|
+
💡 Run agent: uipath run agent '{"topic": "UiPath"}'
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
This command creates the following files:
|
|
135
|
+
|
|
136
|
+
| File Name | Description |
|
|
137
|
+
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
138
|
+
| `.env` | Environment variables and secrets (this file will not be packed & published). |
|
|
139
|
+
| `main.py` | LangGraph agent code. |
|
|
140
|
+
| `uipath.json` | Input/output json schemas and bindings. |
|
|
141
|
+
| `langgraph.json` | [LangGraph](https://langchain-ai.github.io/langgraph/concepts/application_structure/#file-structure) specific configuration file. |
|
|
142
|
+
| `agent.mermaid` | Graph visual representation. |
|
|
143
|
+
|
|
144
|
+
## Set Up Environment Variables
|
|
145
|
+
|
|
146
|
+
Before running the agent, set either `OPENAI_API_KEY` or `ANTHROPIC_API_KEY` in the previously created `.env` file:
|
|
147
|
+
|
|
148
|
+
//// tab | Open AI
|
|
149
|
+
|
|
150
|
+
```hl_lines="3"
|
|
151
|
+
UIPATH_ACCESS_TOKEN=YOUR_TOKEN_HERE
|
|
152
|
+
UIPATH_URL=https://cloud.uipath.com/ACCOUNT_NAME/TENANT_NAME
|
|
153
|
+
OPENAI_API_KEY=sk-proj-......
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
////
|
|
157
|
+
|
|
158
|
+
//// tab | ANTHROPIC_API_KEY
|
|
159
|
+
|
|
160
|
+
```hl_lines="3"
|
|
161
|
+
UIPATH_ACCESS_TOKEN=YOUR_TOKEN_HERE
|
|
162
|
+
UIPATH_URL=https://cloud.uipath.com/ACCOUNT_NAME/TENANT_NAME
|
|
163
|
+
ANTHROPIC_API_KEY=your_api_key_here
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
////
|
|
167
|
+
|
|
168
|
+
## Run the Agent Locally
|
|
169
|
+
|
|
170
|
+
Execute the agent with a sample input:
|
|
171
|
+
|
|
172
|
+
<!-- termynal -->
|
|
173
|
+
|
|
174
|
+
```shell
|
|
175
|
+
> uipath run agent '{"topic": "UiPath"}'
|
|
176
|
+
[2025-04-29 12:31:57,756][INFO] ((), {'topic': 'UiPath'})
|
|
177
|
+
[2025-04-29 12:32:07,689][INFO] ((), {'topic': 'UiPath', 'report': "..."})
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
This command runs your agent locally and generates the report at standard output.
|
|
181
|
+
|
|
182
|
+
## Pack and Publish the agent on UiPath Cloud Platform
|
|
183
|
+
|
|
184
|
+
Follow these steps to publish and run your agent on UiPath Cloud Platform:
|
|
185
|
+
|
|
186
|
+
### Authenticate with UiPath
|
|
187
|
+
|
|
188
|
+
<!-- termynal -->
|
|
189
|
+
|
|
190
|
+
```shell
|
|
191
|
+
> uipath auth
|
|
192
|
+
⠋ Authenticating with UiPath ...
|
|
193
|
+
🔗 If a browser window did not open, please open the following URL in your browser: [LINK]
|
|
194
|
+
👇 Select tenant:
|
|
195
|
+
0: Tenant1
|
|
196
|
+
1: Tenant2
|
|
197
|
+
Select tenant number: 0
|
|
198
|
+
Selected tenant: Tenant1
|
|
199
|
+
✓ Authentication successful.
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### (Optional) Update author details in `pyproject.toml`
|
|
203
|
+
|
|
204
|
+
```toml
|
|
205
|
+
authors = [{ name = "Your Name", email = "your.name@example.com" }]
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Package your project:
|
|
209
|
+
|
|
210
|
+
<!-- termynal -->
|
|
211
|
+
|
|
212
|
+
```shell
|
|
213
|
+
> uipath pack
|
|
214
|
+
⠋ Packaging project ...
|
|
215
|
+
Name : test
|
|
216
|
+
Version : 0.1.0
|
|
217
|
+
Description: Add your description here
|
|
218
|
+
Authors : Your Name
|
|
219
|
+
✓ Project successfully packaged.
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Publish to your workspace
|
|
223
|
+
|
|
224
|
+
<!-- termynal -->
|
|
225
|
+
|
|
226
|
+
```shell
|
|
227
|
+
> uipath publish --my-workspace
|
|
228
|
+
⠙ Publishing most recent package: my-agent.0.0.1.nupkg ...
|
|
229
|
+
✓ Package published successfully!
|
|
230
|
+
⠦ Getting process information ...
|
|
231
|
+
🔗 Process configuration link: [LINK]
|
|
232
|
+
💡 Use the link above to configure any environment variables
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
> Please note that a process will be auto-created only upon publishing to **my-workspace** package feed.
|
|
236
|
+
|
|
237
|
+
### Configure environment variables using the provided link
|
|
238
|
+
|
|
239
|
+

|
|
240
|
+
|
|
241
|
+
## Invoke the Agent on UiPath Cloud Platform
|
|
242
|
+
|
|
243
|
+
Invoke the agent in UiPath Cloud Platform:
|
|
244
|
+
|
|
245
|
+
<!-- termynal -->
|
|
246
|
+
|
|
247
|
+
```shell
|
|
248
|
+
> uipath invoke agent '{"topic": "UiPath"}'
|
|
249
|
+
⠴ Loading configuration ...
|
|
250
|
+
⠴ Starting job ...
|
|
251
|
+
✨ Job started successfully!
|
|
252
|
+
🔗 Monitor your job here: [LINK]
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
Use the provided link to monitor your job and view detailed traces.
|
|
256
|
+
|
|
257
|
+
## Next steps
|
|
258
|
+
|
|
259
|
+
Congratulations! You have successfully set up, created, published, and run a UiPath LangChain Agent. 🚀
|
|
260
|
+
|
|
261
|
+
For more advanced agents and examples, please refer to our [samples section](https://github.com/UiPath/uipath-langchain-python/tree/main/samples).
|