uipath-langchain 0.0.103__tar.gz → 0.0.104__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.103 → uipath_langchain-0.0.104}/PKG-INFO +2 -3
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/chat_models.md +1 -1
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/context_grounding.md +90 -89
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/quick_start.md +88 -47
- uipath_langchain-0.0.104/docs/quick_start_images/cloud_env_var_dark.png +0 -0
- uipath_langchain-0.0.104/docs/quick_start_images/cloud_env_var_light.png +0 -0
- uipath_langchain-0.0.104/docs/quick_start_images/invoke_output_dark.png +0 -0
- uipath_langchain-0.0.104/docs/quick_start_images/invoke_output_light.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/pyproject.toml +2 -3
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/uv.lock +1423 -1427
- uipath_langchain-0.0.103/docs/quick_start_images/cloud_env_var.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.cursorrules +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.editorconfig +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.gitattributes +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.github/workflows/build.yml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.github/workflows/cd.yml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.github/workflows/ci.yml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.github/workflows/commitlint.yml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.github/workflows/lint.yml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.github/workflows/publish-dev.yml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.github/workflows/test.yml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.gitignore +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.pre-commit-config.yaml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.python-version +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.vscode/extensions.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/.vscode/settings.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/CONTRIBUTING.md +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/LICENSE +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/README.md +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/human_in_the_loop.md +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/multi-agent-distributed/coder-agent-package-overview.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/multi-agent-distributed/coder-agent-process-configuration.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/multi-agent-distributed/planner-agent-package-overview.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/multi-agent-distributed/planner-agent-process-configuration.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/multi-agent-distributed/researcher-agent-package-overview.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/multi-agent-distributed/researcher-agent-process-configuration.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/activate-apps.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/activate-deployment.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/copy-folder-path.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/deploy-solution-package-wizard.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/deploy-solution-package.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/monitor-agent.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/navigate-to-solution-folder.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/resume-condition.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/run-agent.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/solution-destination-folder.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/start-job.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/docs/sample_images/ticket-classification/upload-solution-package.png +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/README.md +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/company-research-agent/.env.example +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/company-research-agent/agent.mermaid +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/company-research-agent/graph.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/company-research-agent/langgraph.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/company-research-agent/pyproject.toml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/company-research-agent/uipath.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/company-research-agent/uv.lock +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/hitl-inbox-server/database.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/hitl-inbox-server/main.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/hitl-inbox-server/models.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/hitl-inbox-server/pyproject.toml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/hitl-inbox-server/schemas.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/hitl-inbox-server/templates/index.html +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/hitl-inbox-server/uv.lock +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/.env.example +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/README.md +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/coder.mermaid +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/langgraph.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/planner.mermaid +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/pyproject.toml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/researcher.mermaid +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/coder.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/planner.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/researcher.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/uipath.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-planner-researcher-coder-distributed/uv.lock +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-supervisor-researcher-coder/.env.example +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-supervisor-researcher-coder/README.md +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-supervisor-researcher-coder/agent.mermaid +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-supervisor-researcher-coder/graph.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-supervisor-researcher-coder/langgraph.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-supervisor-researcher-coder/pyproject.toml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-supervisor-researcher-coder/uipath.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/multi-agent-supervisor-researcher-coder/uv.lock +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/retrieval-chain/.env.example +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/retrieval-chain/README.md +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/retrieval-chain/main.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/retrieval-chain/pyproject.toml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/retrieval-chain/uv.lock +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-local-mcp/.env.example +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-local-mcp/README.md +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-local-mcp/agent.mermaid +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-local-mcp/langgraph.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-local-mcp/pyproject.toml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-local-mcp/src/simple-local-mcp/graph.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-local-mcp/src/simple-local-mcp/math_server.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-local-mcp/src/simple-local-mcp/weather_server.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-local-mcp/uipath.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-local-mcp/uv.lock +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-remote-mcp/.env.example +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-remote-mcp/README.md +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-remote-mcp/agent.mermaid +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-remote-mcp/langgraph.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-remote-mcp/main.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-remote-mcp/pyproject.toml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-remote-mcp/uipath.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/simple-remote-mcp/uv.lock +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/ticket-classification/.env.example +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/ticket-classification/README.md +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/ticket-classification/agent.mermaid +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/ticket-classification/escalation_app_solution/generic-escalation-app-solution-1.0.0.zip +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/ticket-classification/langgraph.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/ticket-classification/main.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/ticket-classification/pyproject.toml +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/ticket-classification/uipath.json +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/samples/ticket-classification/uv.lock +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/__init__.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/__init__.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/_runtime/_context.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/_runtime/_escalation.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/_runtime/_exception.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/_runtime/_input.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/_runtime/_output.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/_runtime/_runtime.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/_templates/langgraph.json.template +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/_templates/main.py.template +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/_utils/_graph.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/cli_init.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/cli_new.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_cli/cli_run.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_utils/__init__.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_utils/_request_mixin.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_utils/_settings.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/_utils/_sleep_policy.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/chat/__init__.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/chat/models.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/chat/utils/__init__.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/chat/utils/_chat_types.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/embeddings/__init__.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/embeddings/embeddings.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/middlewares.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/retrievers/__init__.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/retrievers/context_grounding_retriever.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/tracers/AsyncUiPathTracer.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/tracers/UiPathTracer.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/tracers/__init__.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/tracers/_events.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/tracers/_instrument_traceable.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/tracers/_utils.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/utils/__init__.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/utils/_request_mixin.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/utils/_settings.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/utils/_sleep_policy.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/src/uipath_langchain/vectorstores/context_grounding_vectorstore.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/tests/__init__.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/tests/test_dummy.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/tests/test_langchain_client.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/tests/tracers/__init__.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/tests/tracers/test_async_uipath_tracer.py +0 -0
- {uipath_langchain-0.0.103 → uipath_langchain-0.0.104}/tests/tracers/test_instrument_traceable.py +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath-langchain
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.104
|
|
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
|
|
7
|
+
Project-URL: Documentation, https://uipath.github.io/uipath-python/
|
|
7
8
|
Maintainer-email: Marius Cosareanu <marius.cosareanu@uipath.com>, Cristian Pufu <cristian.pufu@uipath.com>
|
|
8
9
|
License-File: LICENSE
|
|
9
10
|
Classifier: Development Status :: 3 - Alpha
|
|
@@ -23,8 +24,6 @@ Requires-Dist: langgraph>=0.2.70
|
|
|
23
24
|
Requires-Dist: openai>=1.65.5
|
|
24
25
|
Requires-Dist: pydantic-settings>=2.6.0
|
|
25
26
|
Requires-Dist: python-dotenv>=1.0.1
|
|
26
|
-
Requires-Dist: requests>=2.23.3
|
|
27
|
-
Requires-Dist: types-requests>=2.32.0.20241016
|
|
28
27
|
Requires-Dist: uipath<2.1.0,>=2.0.33
|
|
29
28
|
Provides-Extra: langchain
|
|
30
29
|
Description-Content-Type: text/markdown
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Chat Models
|
|
2
2
|
|
|
3
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
4
|
|
|
@@ -1,90 +1,91 @@
|
|
|
1
|
-
# Context Grounding
|
|
2
|
-
|
|
3
|
-
Context Grounding Service allows you to:
|
|
4
|
-
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
from langchain.
|
|
34
|
-
from
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Use
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
1
|
+
# Context Grounding
|
|
2
|
+
|
|
3
|
+
Context Grounding Service allows you to:
|
|
4
|
+
|
|
5
|
+
- Search through indexed documents using natural language queries
|
|
6
|
+
- Ground LLM responses in your organization's specific information
|
|
7
|
+
- Retrieve context-relevant documents for various applications
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
You will need to create an index in `Context Grounding` to use this feature. To create an index go to organization `Admin` -> `AI Trust Layer` -> `Context Grounding`. There you can create a new index and add documents to it. See the full documentation [here](https://docs.uipath.com/automation-cloud/automation-cloud/latest/admin-guide/about-context-grounding) for more details.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## ContextGroundingRetriever
|
|
14
|
+
|
|
15
|
+
The `ContextGroundingRetriever` is a document retrieval system that uses vector search to efficiently find and retrieve relevant information from your document store.
|
|
16
|
+
|
|
17
|
+
### Basic Usage
|
|
18
|
+
|
|
19
|
+
Create a simple retriever by specifying an index name:
|
|
20
|
+
|
|
21
|
+
```python
|
|
22
|
+
from uipath_langchain.retrievers import ContextGroundingRetriever
|
|
23
|
+
|
|
24
|
+
retriever = ContextGroundingRetriever(index_name = "Company Policy Context")
|
|
25
|
+
print(retriever.invoke("What is the company policy on remote work?"))
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Integration with LangChain Tools
|
|
29
|
+
|
|
30
|
+
You can easily integrate the retriever with LangChain's tool system:
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
from langchain.agents import create_react_agent
|
|
34
|
+
from langchain.tools.retriever import create_retriever_tool
|
|
35
|
+
from uipath_langchain.retrievers import ContextGroundingRetriever
|
|
36
|
+
|
|
37
|
+
retriever = ContextGroundingRetriever(index_name = "Company Policy Context")
|
|
38
|
+
retriever_tool = create_retriever_tool(
|
|
39
|
+
retriever,
|
|
40
|
+
"ContextforInvoiceDisputeInvestigation",
|
|
41
|
+
"""
|
|
42
|
+
Use this tool to search the company internal documents for information about policies around dispute resolution.
|
|
43
|
+
Use a meaningful query to load relevant information from the documents. Save the citation for later use.
|
|
44
|
+
"""
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
# You can use the tool in your agents
|
|
48
|
+
model = OpenAI()
|
|
49
|
+
tools = [retriever_tool]
|
|
50
|
+
agent = create_react_agent(model, tools, prompt="Answer user questions as best as you can using the search tool.")
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Advanced Usage
|
|
55
|
+
|
|
56
|
+
For complex applications, the retriever can be combined with other LangChain components to create robust document QA systems, agents, or knowledge bases.
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## ContextGroundingVectorStore
|
|
61
|
+
|
|
62
|
+
`ContextGroundingVectorStore` is a vector store implementation designed for context-aware document retrieval. It allows you to perform semantic searches and create retrieval chains with language models.
|
|
63
|
+
|
|
64
|
+
### Searching Documents
|
|
65
|
+
|
|
66
|
+
The vector store supports various search methods:
|
|
67
|
+
|
|
68
|
+
```python
|
|
69
|
+
from uipath_langchain.vectorstores.context_grounding_vectorstore import ContextGroundingVectorStore
|
|
70
|
+
|
|
71
|
+
vectorstore = ContextGroundingVectorStore(index_name="Company policy")
|
|
72
|
+
|
|
73
|
+
# Perform semantic searches with distance scores
|
|
74
|
+
docs_with_scores = vectorstore.asimilarity_search_with_score(query="What is the company policy on data storage?", k=5)
|
|
75
|
+
|
|
76
|
+
# Perform a similarity search with relevance scores
|
|
77
|
+
docs_with_relevance_scores = await vectorstore.asimilarity_search_with_relevance_scores(query=query, k=5)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Creating a Retrieval Chain
|
|
81
|
+
|
|
82
|
+
You can integrate the vector store into a retrieval chain with a language model:
|
|
83
|
+
|
|
84
|
+
```python
|
|
85
|
+
# Run a retrieval chain
|
|
86
|
+
model = UiPathAzureChatOpenAI(model="gpt-4o-2024-08-06", max_retries=3)
|
|
87
|
+
retrieval_chain = create_retrieval_chain(vectorstore=vectorstore, model=model)
|
|
88
|
+
|
|
89
|
+
query = "What is the ECCN for a laptop?"
|
|
90
|
+
result = retrieval_chain(query)
|
|
90
91
|
```
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Introduction
|
|
4
4
|
|
|
5
|
-
This guide
|
|
5
|
+
This guide provides step-by-step instructions for setting up, creating, publishing, and running your first UiPath-LangChain Agent.
|
|
6
6
|
|
|
7
7
|
## Prerequisites
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Before proceeding, ensure you have the following installed:
|
|
10
10
|
|
|
11
11
|
- Python 3.10 or higher
|
|
12
12
|
- `pip` or `uv` package manager
|
|
@@ -17,13 +17,10 @@ Ensure you have the following installed before proceeding:
|
|
|
17
17
|
|
|
18
18
|
1. **Anthropic** - Generate an Anthropic API key [here](https://console.anthropic.com/settings/keys).
|
|
19
19
|
|
|
20
|
-
2. **
|
|
20
|
+
2. **OpenAI** - Generate an OpenAI API key [here](https://platform.openai.com).
|
|
21
|
+
///
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## Step-by-Step Guide
|
|
25
|
-
|
|
26
|
-
## Creating a New Project
|
|
23
|
+
## Creating A New Project
|
|
27
24
|
|
|
28
25
|
We recommend using `uv` for package management. To create a new project:
|
|
29
26
|
|
|
@@ -66,7 +63,7 @@ Creating virtual environment at: .venv
|
|
|
66
63
|
Activate with: source .venv/bin/activate
|
|
67
64
|
|
|
68
65
|
# Activate the virtual environment
|
|
69
|
-
# For Windows PowerShell: .venv\Scripts\
|
|
66
|
+
# For Windows PowerShell/ Windows CMD: .venv\Scripts\activate
|
|
70
67
|
# For Windows Bash: source .venv/Scripts/activate
|
|
71
68
|
> source .venv/bin/activate
|
|
72
69
|
|
|
@@ -74,7 +71,7 @@ Activate with: source .venv/bin/activate
|
|
|
74
71
|
> uv add uipath-langchain
|
|
75
72
|
|
|
76
73
|
# Verify the uipath installation
|
|
77
|
-
> uipath
|
|
74
|
+
> uipath -lv
|
|
78
75
|
uipath-langchain version 0.0.100
|
|
79
76
|
```
|
|
80
77
|
|
|
@@ -100,7 +97,7 @@ uipath-langchain version 0.0.100
|
|
|
100
97
|
> pip install uipath-langchain
|
|
101
98
|
|
|
102
99
|
# Verify the uipath installation
|
|
103
|
-
> uipath
|
|
100
|
+
> uipath -lv
|
|
104
101
|
uipath-langchain version 0.0.100
|
|
105
102
|
```
|
|
106
103
|
|
|
@@ -108,7 +105,7 @@ uipath-langchain version 0.0.100
|
|
|
108
105
|
|
|
109
106
|
## Create Your First UiPath Agent
|
|
110
107
|
|
|
111
|
-
Generate your first UiPath LangChain:
|
|
108
|
+
Generate your first UiPath LangChain agent:
|
|
112
109
|
|
|
113
110
|
<!-- termynal -->
|
|
114
111
|
|
|
@@ -137,19 +134,17 @@ This command creates the following files:
|
|
|
137
134
|
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
138
135
|
| `.env` | Environment variables and secrets (this file will not be packed & published). |
|
|
139
136
|
| `main.py` | LangGraph agent code. |
|
|
140
|
-
| `uipath.json` | Input/output
|
|
137
|
+
| `uipath.json` | Input/output JSON schemas and bindings. |
|
|
141
138
|
| `langgraph.json` | [LangGraph](https://langchain-ai.github.io/langgraph/concepts/application_structure/#file-structure) specific configuration file. |
|
|
142
139
|
| `agent.mermaid` | Graph visual representation. |
|
|
143
140
|
|
|
144
141
|
## Set Up Environment Variables
|
|
145
142
|
|
|
146
|
-
Before running the agent,
|
|
143
|
+
Before running the agent, configure either `OPENAI_API_KEY` or `ANTHROPIC_API_KEY` in the `.env` file:
|
|
147
144
|
|
|
148
145
|
//// tab | Open AI
|
|
149
146
|
|
|
150
|
-
```
|
|
151
|
-
UIPATH_ACCESS_TOKEN=YOUR_TOKEN_HERE
|
|
152
|
-
UIPATH_URL=https://cloud.uipath.com/ACCOUNT_NAME/TENANT_NAME
|
|
147
|
+
```
|
|
153
148
|
OPENAI_API_KEY=sk-proj-......
|
|
154
149
|
```
|
|
155
150
|
|
|
@@ -157,15 +152,29 @@ OPENAI_API_KEY=sk-proj-......
|
|
|
157
152
|
|
|
158
153
|
//// tab | ANTHROPIC_API_KEY
|
|
159
154
|
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
UIPATH_URL=https://cloud.uipath.com/ACCOUNT_NAME/TENANT_NAME
|
|
163
|
-
ANTHROPIC_API_KEY=your_api_key_here
|
|
155
|
+
```
|
|
156
|
+
ANTHROPIC_API_KEY=sk-ant-a.....
|
|
164
157
|
```
|
|
165
158
|
|
|
166
159
|
////
|
|
167
160
|
|
|
168
|
-
##
|
|
161
|
+
## Authenticate With UiPath
|
|
162
|
+
|
|
163
|
+
<!-- termynal -->
|
|
164
|
+
|
|
165
|
+
```shell
|
|
166
|
+
> uipath auth
|
|
167
|
+
⠋ Authenticating with UiPath ...
|
|
168
|
+
🔗 If a browser window did not open, please open the following URL in your browser: [LINK]
|
|
169
|
+
👇 Select tenant:
|
|
170
|
+
0: Tenant1
|
|
171
|
+
1: Tenant2
|
|
172
|
+
Select tenant number: 0
|
|
173
|
+
Selected tenant: Tenant1
|
|
174
|
+
✓ Authentication successful.
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## Run The Agent Locally
|
|
169
178
|
|
|
170
179
|
Execute the agent with a sample input:
|
|
171
180
|
|
|
@@ -177,35 +186,51 @@ Execute the agent with a sample input:
|
|
|
177
186
|
[2025-04-29 12:32:07,689][INFO] ((), {'topic': 'UiPath', 'report': "..."})
|
|
178
187
|
```
|
|
179
188
|
|
|
180
|
-
This command runs your agent locally and
|
|
181
|
-
|
|
182
|
-
## Pack and Publish the agent on UiPath Cloud Platform
|
|
189
|
+
This command runs your agent locally and displays the report in the standard output.
|
|
183
190
|
|
|
184
|
-
|
|
191
|
+
/// warning
|
|
192
|
+
Depending on the shell you are using, it may be necessary to escape the input json:
|
|
185
193
|
|
|
186
|
-
|
|
194
|
+
/// tab | Bash/ZSH/PowerShell
|
|
195
|
+
```console
|
|
196
|
+
uipath run agent '{"topic": "UiPath"}'
|
|
197
|
+
```
|
|
198
|
+
///
|
|
187
199
|
|
|
188
|
-
|
|
200
|
+
/// tab | Windows CMD
|
|
201
|
+
```console
|
|
202
|
+
uipath run agent "{""topic"": ""UiPath""}"
|
|
203
|
+
```
|
|
204
|
+
///
|
|
189
205
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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.
|
|
206
|
+
/// tab | Windows PowerShell
|
|
207
|
+
```console
|
|
208
|
+
uipath run agent '{\"topic\":\"uipath\"}'
|
|
200
209
|
```
|
|
210
|
+
///
|
|
211
|
+
|
|
212
|
+
///
|
|
213
|
+
|
|
214
|
+
/// info
|
|
215
|
+
|
|
216
|
+
Run command also accepts a _.json_ file as input:
|
|
217
|
+
>uipath run agent -f <path_to_input_json_file>
|
|
201
218
|
|
|
202
|
-
|
|
219
|
+
///
|
|
220
|
+
|
|
221
|
+
## Deploy The Agent On UiPath Cloud Platform
|
|
222
|
+
|
|
223
|
+
Follow these steps to publish and run your agent on UiPath Cloud Platform:
|
|
224
|
+
|
|
225
|
+
### (Optional) Customize The Package
|
|
226
|
+
|
|
227
|
+
Update author details in `pyproject.toml`:
|
|
203
228
|
|
|
204
229
|
```toml
|
|
205
230
|
authors = [{ name = "Your Name", email = "your.name@example.com" }]
|
|
206
231
|
```
|
|
207
232
|
|
|
208
|
-
### Package
|
|
233
|
+
### Package Your Project
|
|
209
234
|
|
|
210
235
|
<!-- termynal -->
|
|
211
236
|
|
|
@@ -219,7 +244,7 @@ Authors : Your Name
|
|
|
219
244
|
✓ Project successfully packaged.
|
|
220
245
|
```
|
|
221
246
|
|
|
222
|
-
### Publish
|
|
247
|
+
### Publish To My Workspace
|
|
223
248
|
|
|
224
249
|
<!-- termynal -->
|
|
225
250
|
|
|
@@ -234,13 +259,19 @@ Authors : Your Name
|
|
|
234
259
|
|
|
235
260
|
> Please note that a process will be auto-created only upon publishing to **my-workspace** package feed.
|
|
236
261
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-

|
|
262
|
+
Set the environment variables using the provided link:
|
|
240
263
|
|
|
241
|
-
|
|
264
|
+
<picture data-light="quick_start_images/cloud_env_var_light.png" data-dark="quick_start_images/cloud_env_var_dark.png">
|
|
265
|
+
<source
|
|
266
|
+
media="(prefers-color-scheme: dark)"
|
|
267
|
+
srcset="quick_start_images/cloud_env_var_dark.png"
|
|
268
|
+
/>
|
|
269
|
+
<img
|
|
270
|
+
src="quick_start_images/cloud_env_var_light.png"
|
|
271
|
+
/>
|
|
272
|
+
</picture>
|
|
242
273
|
|
|
243
|
-
Invoke
|
|
274
|
+
## Invoke The Agent On UiPath Cloud Platform
|
|
244
275
|
|
|
245
276
|
<!-- termynal -->
|
|
246
277
|
|
|
@@ -254,7 +285,17 @@ Invoke the agent in UiPath Cloud Platform:
|
|
|
254
285
|
|
|
255
286
|
Use the provided link to monitor your job and view detailed traces.
|
|
256
287
|
|
|
257
|
-
|
|
288
|
+
<picture data-light="quick_start_images/invoke_output_light.png" data-dark="quick_start_images/invoke_output_dark.png">
|
|
289
|
+
<source
|
|
290
|
+
media="(prefers-color-scheme: dark)"
|
|
291
|
+
srcset="quick_start_images/invoke_output_dark.png"
|
|
292
|
+
/>
|
|
293
|
+
<img
|
|
294
|
+
src="quick_start_images/invoke_output_light.png"
|
|
295
|
+
/>
|
|
296
|
+
</picture>
|
|
297
|
+
|
|
298
|
+
## Next Steps
|
|
258
299
|
|
|
259
300
|
Congratulations! You have successfully set up, created, published, and run a UiPath LangChain Agent. 🚀
|
|
260
301
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "uipath-langchain"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.104"
|
|
4
4
|
description = "UiPath Langchain"
|
|
5
5
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -12,8 +12,6 @@ dependencies = [
|
|
|
12
12
|
"langchain-community>=0.3.21",
|
|
13
13
|
"langchain-openai>=0.3.3",
|
|
14
14
|
"langchain>=0.3.4",
|
|
15
|
-
"requests>=2.23.3",
|
|
16
|
-
"types-requests>=2.32.0.20241016",
|
|
17
15
|
"pydantic-settings>=2.6.0",
|
|
18
16
|
"python-dotenv>=1.0.1",
|
|
19
17
|
"httpx>=0.27.0",
|
|
@@ -38,6 +36,7 @@ register = "uipath_langchain.middlewares:register_middleware"
|
|
|
38
36
|
[project.urls]
|
|
39
37
|
Homepage = "https://uipath.com"
|
|
40
38
|
Repository = "https://github.com/UiPath/uipath-langchain-python"
|
|
39
|
+
Documentation = "https://uipath.github.io/uipath-python/"
|
|
41
40
|
|
|
42
41
|
[build-system]
|
|
43
42
|
requires = ["hatchling"]
|