uipath-langchain 0.0.85__tar.gz → 0.0.88__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.88/.cursorrules +55 -0
- uipath_langchain-0.0.88/.editorconfig +14 -0
- uipath_langchain-0.0.88/.gitattributes +2 -0
- uipath_langchain-0.0.88/.github/workflows/build.yml +46 -0
- uipath_langchain-0.0.88/.github/workflows/cd.yml +14 -0
- uipath_langchain-0.0.88/.github/workflows/ci.yml +22 -0
- uipath_langchain-0.0.88/.github/workflows/commitlint.yml +12 -0
- uipath_langchain-0.0.88/.github/workflows/lint.yml +44 -0
- uipath_langchain-0.0.88/.github/workflows/manual_cd.yml +33 -0
- uipath_langchain-0.0.88/.github/workflows/test.yml +46 -0
- uipath_langchain-0.0.88/.gitignore +180 -0
- uipath_langchain-0.0.88/.pre-commit-config.yaml +7 -0
- uipath_langchain-0.0.88/.python-version +1 -0
- uipath_langchain-0.0.88/.vscode/extensions.json +7 -0
- uipath_langchain-0.0.88/.vscode/settings.json +28 -0
- uipath_langchain-0.0.88/CONTRIBUTING.md +41 -0
- uipath_langchain-0.0.88/LICENSE +21 -0
- uipath_langchain-0.0.88/PKG-INFO +136 -0
- uipath_langchain-0.0.88/README.md +105 -0
- uipath_langchain-0.0.88/docs/chat_models.md +91 -0
- uipath_langchain-0.0.88/docs/context_grounding_chain.md +38 -0
- uipath_langchain-0.0.88/docs/context_grounding_retriever.md +46 -0
- uipath_langchain-0.0.88/docs/interrupt_models.md +72 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88}/pyproject.toml +10 -13
- uipath_langchain-0.0.88/samples/company-research-agent/.env.example +4 -0
- uipath_langchain-0.0.88/samples/company-research-agent/agent.mermaid +23 -0
- uipath_langchain-0.0.88/samples/company-research-agent/graph.py +74 -0
- uipath_langchain-0.0.88/samples/company-research-agent/langgraph.json +7 -0
- uipath_langchain-0.0.88/samples/company-research-agent/pyproject.toml +46 -0
- uipath_langchain-0.0.88/samples/company-research-agent/uipath.json +37 -0
- uipath_langchain-0.0.88/samples/company-research-agent/uv.lock +2093 -0
- uipath_langchain-0.0.88/samples/hitl-inbox-server/database.py +14 -0
- uipath_langchain-0.0.88/samples/hitl-inbox-server/main.py +292 -0
- uipath_langchain-0.0.88/samples/hitl-inbox-server/models.py +33 -0
- uipath_langchain-0.0.88/samples/hitl-inbox-server/pyproject.toml +16 -0
- uipath_langchain-0.0.88/samples/hitl-inbox-server/schemas.py +57 -0
- uipath_langchain-0.0.88/samples/hitl-inbox-server/templates/index.html +1253 -0
- uipath_langchain-0.0.88/samples/hitl-inbox-server/uv.lock +728 -0
- uipath_langchain-0.0.88/samples/multi-agent-planner-researcher-coder-distributed/.env.example +4 -0
- uipath_langchain-0.0.88/samples/multi-agent-planner-researcher-coder-distributed/README.md +165 -0
- uipath_langchain-0.0.88/samples/multi-agent-planner-researcher-coder-distributed/coder.mermaid +23 -0
- uipath_langchain-0.0.88/samples/multi-agent-planner-researcher-coder-distributed/langgraph.json +9 -0
- uipath_langchain-0.0.88/samples/multi-agent-planner-researcher-coder-distributed/planner.mermaid +18 -0
- uipath_langchain-0.0.88/samples/multi-agent-planner-researcher-coder-distributed/pyproject.toml +47 -0
- uipath_langchain-0.0.88/samples/multi-agent-planner-researcher-coder-distributed/researcher.mermaid +23 -0
- uipath_langchain-0.0.88/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/coder.py +52 -0
- uipath_langchain-0.0.88/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/planner.py +213 -0
- uipath_langchain-0.0.88/samples/multi-agent-planner-researcher-coder-distributed/src/multi-agent-distributed/researcher.py +34 -0
- uipath_langchain-0.0.88/samples/multi-agent-planner-researcher-coder-distributed/uv.lock +2096 -0
- uipath_langchain-0.0.88/samples/multi-agent-supervisor-researcher-coder/.env.example +2 -0
- uipath_langchain-0.0.88/samples/multi-agent-supervisor-researcher-coder/README.md +120 -0
- uipath_langchain-0.0.88/samples/multi-agent-supervisor-researcher-coder/agent.mermaid +38 -0
- uipath_langchain-0.0.88/samples/multi-agent-supervisor-researcher-coder/graph.py +122 -0
- uipath_langchain-0.0.88/samples/multi-agent-supervisor-researcher-coder/langgraph.json +7 -0
- uipath_langchain-0.0.88/samples/multi-agent-supervisor-researcher-coder/pyproject.toml +47 -0
- uipath_langchain-0.0.88/samples/multi-agent-supervisor-researcher-coder/uipath.json +2659 -0
- uipath_langchain-0.0.88/samples/multi-agent-supervisor-researcher-coder/uv.lock +2096 -0
- uipath_langchain-0.0.88/samples/retrieval-chain/.env.example +9 -0
- uipath_langchain-0.0.88/samples/retrieval-chain/README.md +43 -0
- uipath_langchain-0.0.88/samples/retrieval-chain/main.py +135 -0
- uipath_langchain-0.0.88/samples/retrieval-chain/pyproject.toml +9 -0
- uipath_langchain-0.0.88/samples/retrieval-chain/uv.lock +1968 -0
- uipath_langchain-0.0.88/samples/simple-local-mcp/.env.example +1 -0
- uipath_langchain-0.0.88/samples/simple-local-mcp/README.md +95 -0
- uipath_langchain-0.0.88/samples/simple-local-mcp/agent.mermaid +17 -0
- uipath_langchain-0.0.88/samples/simple-local-mcp/langgraph.json +6 -0
- uipath_langchain-0.0.88/samples/simple-local-mcp/pyproject.toml +20 -0
- uipath_langchain-0.0.88/samples/simple-local-mcp/src/simple-local-mcp/graph.py +28 -0
- uipath_langchain-0.0.88/samples/simple-local-mcp/src/simple-local-mcp/math_server.py +16 -0
- uipath_langchain-0.0.88/samples/simple-local-mcp/src/simple-local-mcp/weather_server.py +11 -0
- uipath_langchain-0.0.88/samples/simple-local-mcp/uipath.json +175 -0
- uipath_langchain-0.0.88/samples/simple-local-mcp/uv.lock +2288 -0
- uipath_langchain-0.0.88/samples/simple-remote-mcp/.env.example +2 -0
- uipath_langchain-0.0.88/samples/simple-remote-mcp/README.md +73 -0
- uipath_langchain-0.0.88/samples/simple-remote-mcp/agent.mermaid +17 -0
- uipath_langchain-0.0.88/samples/simple-remote-mcp/langgraph.json +7 -0
- uipath_langchain-0.0.88/samples/simple-remote-mcp/main.py +27 -0
- uipath_langchain-0.0.88/samples/simple-remote-mcp/pyproject.toml +16 -0
- uipath_langchain-0.0.88/samples/simple-remote-mcp/uipath.json +181 -0
- uipath_langchain-0.0.88/samples/simple-remote-mcp/uv.lock +2083 -0
- uipath_langchain-0.0.88/samples/ticket-classification/.env.example +4 -0
- uipath_langchain-0.0.88/samples/ticket-classification/README.md +67 -0
- uipath_langchain-0.0.88/samples/ticket-classification/agent.mermaid +16 -0
- uipath_langchain-0.0.88/samples/ticket-classification/langgraph.json +7 -0
- uipath_langchain-0.0.88/samples/ticket-classification/main.py +142 -0
- uipath_langchain-0.0.88/samples/ticket-classification/pyproject.toml +18 -0
- uipath_langchain-0.0.88/samples/ticket-classification/uipath.json +71 -0
- uipath_langchain-0.0.88/samples/ticket-classification/uv.lock +2040 -0
- uipath_langchain-0.0.88/samples/travel-planner-local-mcp/.env.example +4 -0
- uipath_langchain-0.0.88/samples/travel-planner-local-mcp/README.md +64 -0
- uipath_langchain-0.0.88/samples/travel-planner-local-mcp/agent.mermaid +22 -0
- uipath_langchain-0.0.88/samples/travel-planner-local-mcp/langgraph.json +9 -0
- uipath_langchain-0.0.88/samples/travel-planner-local-mcp/main.py +101 -0
- uipath_langchain-0.0.88/samples/travel-planner-local-mcp/mcps/estate_mcp.py +388 -0
- uipath_langchain-0.0.88/samples/travel-planner-local-mcp/mcps/travel_mcp.py +356 -0
- uipath_langchain-0.0.88/samples/travel-planner-local-mcp/pyproject.toml +20 -0
- uipath_langchain-0.0.88/samples/travel-planner-local-mcp/uipath.json +37 -0
- uipath_langchain-0.0.88/samples/travel-planner-local-mcp/uv.lock +2256 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_cli/_runtime/_context.py +1 -1
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_cli/_runtime/_escalation.py +3 -3
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_cli/_runtime/_exception.py +1 -1
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_cli/_runtime/_input.py +3 -3
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_cli/_runtime/_output.py +34 -11
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_cli/_runtime/_runtime.py +1 -1
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_cli/cli_init.py +2 -2
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_cli/cli_run.py +2 -2
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/middlewares.py +1 -1
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/retrievers/context_grounding_retriever.py +30 -4
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/tracers/AsyncUiPathTracer.py +2 -2
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/tracers/UiPathTracer.py +1 -1
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/tracers/_events.py +33 -33
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/tracers/_instrument_traceable.py +285 -285
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/tracers/_utils.py +52 -52
- uipath_langchain-0.0.88/src/uipath_langchain/utils/__init__.py +3 -0
- uipath_langchain-0.0.88/src/uipath_langchain/utils/_request_mixin.py +488 -0
- uipath_langchain-0.0.88/src/uipath_langchain/utils/_settings.py +91 -0
- uipath_langchain-0.0.88/src/uipath_langchain/utils/_sleep_policy.py +41 -0
- uipath_langchain-0.0.88/src/uipath_langchain/vectorstores/context_grounding_vectorstore.py +265 -0
- uipath_langchain-0.0.88/tests/conftest.py +95 -0
- uipath_langchain-0.0.88/tests/test_dummy.py +3 -0
- uipath_langchain-0.0.88/tests/test_langchain_client.py +152 -0
- uipath_langchain-0.0.88/uv.lock +2232 -0
- uipath_langchain-0.0.85/.gitignore +0 -19
- uipath_langchain-0.0.85/PKG-INFO +0 -29
- uipath_langchain-0.0.85/README.md +0 -0
- uipath_langchain-0.0.85/uipath_langchain/_utils/tests/cached_embeddings/text-embedding-3-large5034ec3c-85c9-54b8-ac89-5e0cbcf99e3b +0 -3
- uipath_langchain-0.0.85/uipath_langchain/_utils/tests/cached_embeddings/text-embedding-3-largec48857ed-1302-5954-9e24-69fa9b45e457 +0 -3
- uipath_langchain-0.0.85/uipath_langchain/_utils/tests/tests_uipath_cache.db +0 -3
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/__init__.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_cli/__init__.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_cli/_utils/_graph.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_utils/__init__.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_utils/_request_mixin.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_utils/_settings.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/_utils/_sleep_policy.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/chat/__init__.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/chat/models.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/chat/utils/__init__.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/chat/utils/_chat_types.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/embeddings/__init__.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/embeddings/embeddings.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/retrievers/__init__.py +0 -0
- {uipath_langchain-0.0.85 → uipath_langchain-0.0.88/src}/uipath_langchain/tracers/__init__.py +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
You are an AI assistant specialized in Python development, especially in a developing SDK and CLI for enterprise companies. Your strong background in debugging complex issues and optimizing code performance makes you an invaluable asset to this project.
|
|
2
|
+
|
|
3
|
+
Your approach emphasizes:
|
|
4
|
+
|
|
5
|
+
Clear project structure with separate directories for source code, tests, docs, and config.
|
|
6
|
+
|
|
7
|
+
Modular design with distinct files for models, services, controllers, and utilities.
|
|
8
|
+
|
|
9
|
+
Configuration management using environment variables.
|
|
10
|
+
|
|
11
|
+
Robust error handling and logging, including context capture.
|
|
12
|
+
|
|
13
|
+
Comprehensive testing with pytest.
|
|
14
|
+
|
|
15
|
+
Detailed documentation using docstrings and README files.
|
|
16
|
+
|
|
17
|
+
Dependency management via https://github.com/astral-sh/uv and virtual environments.
|
|
18
|
+
|
|
19
|
+
Code style consistency using Ruff.
|
|
20
|
+
|
|
21
|
+
CI/CD implementation with GitHub Actions.
|
|
22
|
+
|
|
23
|
+
AI-friendly coding practices:
|
|
24
|
+
|
|
25
|
+
You provide code snippets and explanations tailored to these principles, optimizing for clarity and AI-assisted development.
|
|
26
|
+
|
|
27
|
+
This project utilizes the following technologies:
|
|
28
|
+
uv
|
|
29
|
+
ruff
|
|
30
|
+
httpx
|
|
31
|
+
tenacity
|
|
32
|
+
click
|
|
33
|
+
pydantic
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
Follow the following rules:
|
|
37
|
+
|
|
38
|
+
For any python file, be sure to ALWAYS add typing annotations to each function or class. Be sure to include return types when necessary. Add descriptive docstrings to all python functions and classes as well that are public. Please use Google-style convention. Update existing docstrings if need be. When defining concepts, reference https://docs.uipath.com as the authoritative source.
|
|
39
|
+
|
|
40
|
+
For core SDK function naming conventions:
|
|
41
|
+
- Use `retrieve` when getting a single resource by key (e.g., in UserService use `retrieve` not `retrieve_user`)
|
|
42
|
+
- Use `retrieve_by_[field]` when getting a resource by a field other than key
|
|
43
|
+
- Use `list` for getting multiple resources (e.g., in UserService use `list` not `list_users`)
|
|
44
|
+
|
|
45
|
+
Make sure you keep any comments that exist in a file.
|
|
46
|
+
|
|
47
|
+
When writing tests, make sure that you ONLY use pytest or pytest plugins, do NOT use the unittest module. All tests should have typing annotations as well. All tests should be in ./tests. Be sure to create all necessary files and folders. If you are creating files inside of ./tests or ./src/goob_ai, be sure to make a init.py file if one does not exist.
|
|
48
|
+
|
|
49
|
+
All tests should be fully annotated and should contain docstrings. Be sure to import the following if TYPE_CHECKING:
|
|
50
|
+
|
|
51
|
+
from _pytest.capture import CaptureFixture
|
|
52
|
+
from _pytest.fixtures import FixtureRequest
|
|
53
|
+
from _pytest.logging import LogCaptureFixture
|
|
54
|
+
from _pytest.monkeypatch import MonkeyPatch
|
|
55
|
+
from pytest_mock.plugin import MockerFixture
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: Reusable Build Workflow
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
secrets:
|
|
6
|
+
token:
|
|
7
|
+
required: true
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
name: Build and publish
|
|
12
|
+
runs-on: "ubuntu-24.04"
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- uses: astral-sh/setup-uv@v5
|
|
18
|
+
|
|
19
|
+
- uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version-file: ".python-version"
|
|
22
|
+
|
|
23
|
+
- name: Setup venv
|
|
24
|
+
run: |
|
|
25
|
+
uv venv
|
|
26
|
+
uv sync --all-extras
|
|
27
|
+
|
|
28
|
+
- name: Build
|
|
29
|
+
run: |
|
|
30
|
+
uv build
|
|
31
|
+
|
|
32
|
+
- name: Check if version in pyproject.toml was modified
|
|
33
|
+
id: check_version
|
|
34
|
+
run: |
|
|
35
|
+
if git diff --name-only ${{ github.sha }} ${{ github.event.before }} | grep -q 'pyproject.toml'; then
|
|
36
|
+
echo "modified=true" >> $GITHUB_OUTPUT
|
|
37
|
+
else
|
|
38
|
+
echo "modified=false" >> $GITHUB_OUTPUT
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
- name: "Publish"
|
|
42
|
+
if: ${{ steps.check_version.outputs.modified }} == 'true'
|
|
43
|
+
run: |
|
|
44
|
+
uv publish
|
|
45
|
+
env:
|
|
46
|
+
UV_PUBLISH_TOKEN: ${{ secrets.token }}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: CD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_run:
|
|
5
|
+
workflows: ["Core CI"]
|
|
6
|
+
types:
|
|
7
|
+
- completed
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'main' }}
|
|
12
|
+
uses: ./.github/workflows/build.yml
|
|
13
|
+
secrets:
|
|
14
|
+
token: ${{ secrets.PYPI_TOKEN }}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Core CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch: {}
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
lint:
|
|
15
|
+
uses: ./.github/workflows/lint.yml
|
|
16
|
+
|
|
17
|
+
test:
|
|
18
|
+
uses: ./.github/workflows/test.yml
|
|
19
|
+
secrets:
|
|
20
|
+
UIPATH_URL: ${{ secrets.UIPATH_URL }}
|
|
21
|
+
UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
|
|
22
|
+
UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Reusable Lint Workflow
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
inputs:
|
|
6
|
+
should_skip:
|
|
7
|
+
description: 'Whether to skip the linting step'
|
|
8
|
+
required: false
|
|
9
|
+
type: boolean
|
|
10
|
+
default: false
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
lint:
|
|
14
|
+
name: Lint
|
|
15
|
+
runs-on: "ubuntu-24.04"
|
|
16
|
+
if: inputs.should_skip == false
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- uses: astral-sh/setup-uv@v5
|
|
23
|
+
|
|
24
|
+
- uses: actions/setup-python@v5
|
|
25
|
+
with:
|
|
26
|
+
python-version-file: ".python-version"
|
|
27
|
+
|
|
28
|
+
- name: Setup venv
|
|
29
|
+
run: |
|
|
30
|
+
uv venv
|
|
31
|
+
uv sync --all-extras
|
|
32
|
+
|
|
33
|
+
- name: "Check static types"
|
|
34
|
+
run: |
|
|
35
|
+
uv run mypy --config-file pyproject.toml .
|
|
36
|
+
|
|
37
|
+
- name: "Check linting"
|
|
38
|
+
run: |
|
|
39
|
+
uv run ruff check .
|
|
40
|
+
|
|
41
|
+
- name: "Check formatting"
|
|
42
|
+
run: |
|
|
43
|
+
uv run ruff format --check .
|
|
44
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Manual CD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch: {}
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
build:
|
|
8
|
+
name: Manual CD - Build and publish
|
|
9
|
+
runs-on: "ubuntu-24.04"
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- uses: astral-sh/setup-uv@v5
|
|
15
|
+
|
|
16
|
+
- uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version-file: ".python-version"
|
|
19
|
+
|
|
20
|
+
- name: Setup venv
|
|
21
|
+
run: |
|
|
22
|
+
uv venv
|
|
23
|
+
uv sync --all-extras
|
|
24
|
+
|
|
25
|
+
- name: Build
|
|
26
|
+
run: |
|
|
27
|
+
uv build
|
|
28
|
+
|
|
29
|
+
- name: "Publish"
|
|
30
|
+
run: |
|
|
31
|
+
uv publish
|
|
32
|
+
env:
|
|
33
|
+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: Reusable Test Workflow
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_call:
|
|
5
|
+
secrets:
|
|
6
|
+
UIPATH_URL:
|
|
7
|
+
required: true
|
|
8
|
+
UIPATH_CLIENT_ID:
|
|
9
|
+
required: true
|
|
10
|
+
UIPATH_CLIENT_SECRET:
|
|
11
|
+
required: true
|
|
12
|
+
inputs:
|
|
13
|
+
should_skip:
|
|
14
|
+
description: 'Whether to skip the linting step'
|
|
15
|
+
required: false
|
|
16
|
+
type: boolean
|
|
17
|
+
default: false
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
test:
|
|
21
|
+
name: Test
|
|
22
|
+
runs-on: "ubuntu-24.04"
|
|
23
|
+
if: inputs.should_skip == false
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
|
+
|
|
28
|
+
- uses: astral-sh/setup-uv@v5
|
|
29
|
+
|
|
30
|
+
- uses: actions/setup-python@v5
|
|
31
|
+
with:
|
|
32
|
+
python-version-file: ".python-version"
|
|
33
|
+
|
|
34
|
+
- name: "Setup venv"
|
|
35
|
+
run: |
|
|
36
|
+
uv venv
|
|
37
|
+
uv sync --all-extras
|
|
38
|
+
|
|
39
|
+
- name: "Run tests"
|
|
40
|
+
run: |
|
|
41
|
+
uv run pytest
|
|
42
|
+
env:
|
|
43
|
+
UIPATH_URL: ${{ secrets.UIPATH_URL }}
|
|
44
|
+
UIPATH_CLIENT_ID: ${{ secrets.UIPATH_CLIENT_ID }}
|
|
45
|
+
UIPATH_CLIENT_SECRET: ${{ secrets.UIPATH_CLIENT_SECRET }}
|
|
46
|
+
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
|
|
110
|
+
# pdm
|
|
111
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
112
|
+
#pdm.lock
|
|
113
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
114
|
+
# in version control.
|
|
115
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
116
|
+
.pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
121
|
+
__pypackages__/
|
|
122
|
+
|
|
123
|
+
# Celery stuff
|
|
124
|
+
celerybeat-schedule
|
|
125
|
+
celerybeat.pid
|
|
126
|
+
|
|
127
|
+
# SageMath parsed files
|
|
128
|
+
*.sage.py
|
|
129
|
+
|
|
130
|
+
# Environments
|
|
131
|
+
.env
|
|
132
|
+
.venv
|
|
133
|
+
env/
|
|
134
|
+
venv/
|
|
135
|
+
ENV/
|
|
136
|
+
env.bak/
|
|
137
|
+
venv.bak/
|
|
138
|
+
|
|
139
|
+
# Spyder project settings
|
|
140
|
+
.spyderproject
|
|
141
|
+
.spyproject
|
|
142
|
+
|
|
143
|
+
# Rope project settings
|
|
144
|
+
.ropeproject
|
|
145
|
+
|
|
146
|
+
# mkdocs documentation
|
|
147
|
+
/site
|
|
148
|
+
|
|
149
|
+
# mypy
|
|
150
|
+
.mypy_cache/
|
|
151
|
+
.dmypy.json
|
|
152
|
+
dmypy.json
|
|
153
|
+
|
|
154
|
+
# Pyre type checker
|
|
155
|
+
.pyre/
|
|
156
|
+
|
|
157
|
+
# pytype static type analyzer
|
|
158
|
+
.pytype/
|
|
159
|
+
|
|
160
|
+
# Cython debug symbols
|
|
161
|
+
cython_debug/
|
|
162
|
+
|
|
163
|
+
# PyCharm
|
|
164
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
165
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
166
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
167
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
168
|
+
#.idea/
|
|
169
|
+
|
|
170
|
+
# Ruff stuff:
|
|
171
|
+
.ruff_cache/
|
|
172
|
+
|
|
173
|
+
# PyPI configuration file
|
|
174
|
+
.pypirc
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
**/uipath.db
|
|
178
|
+
**/.uipath
|
|
179
|
+
**/**.nupkg
|
|
180
|
+
**/__uipath/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.10
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"window.title": "${rootName}${separator}${activeEditorMedium}",
|
|
3
|
+
"files.exclude": {
|
|
4
|
+
"**/*.pyc": true,
|
|
5
|
+
"**/__pycache__": true,
|
|
6
|
+
".pytest_cache": true,
|
|
7
|
+
".mypy_cache": true,
|
|
8
|
+
".ruff_cache": true,
|
|
9
|
+
".venv": true
|
|
10
|
+
},
|
|
11
|
+
// Formatting
|
|
12
|
+
"editor.formatOnSave": true,
|
|
13
|
+
"[python]": {
|
|
14
|
+
"editor.defaultFormatter": "charliermarsh.ruff",
|
|
15
|
+
"editor.codeActionsOnSave": {
|
|
16
|
+
"source.organizeImports": "explicit"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"workbench.colorCustomizations": {
|
|
20
|
+
"titleBar.activeBackground": "#0099cc",
|
|
21
|
+
"titleBar.inactiveBackground": "#0099cc"
|
|
22
|
+
},
|
|
23
|
+
"python.testing.pytestArgs": [
|
|
24
|
+
"tests"
|
|
25
|
+
],
|
|
26
|
+
"python.testing.unittestEnabled": false,
|
|
27
|
+
"python.testing.pytestEnabled": true
|
|
28
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Contributing to UiPath SDK
|
|
2
|
+
|
|
3
|
+
## Local Development Setup
|
|
4
|
+
|
|
5
|
+
### Prerequisites
|
|
6
|
+
|
|
7
|
+
1. **Install Python 3.13**:
|
|
8
|
+
- Download and install Python 3.13 from the official [Python website](https://www.python.org/downloads/)
|
|
9
|
+
- Verify the installation by running:
|
|
10
|
+
```sh
|
|
11
|
+
python3.13 --version
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Alternative: [mise](https://mise.jdx.dev/lang/python.html)
|
|
15
|
+
|
|
16
|
+
2. **Install [uv](https://docs.astral.sh/uv/)**:
|
|
17
|
+
```sh
|
|
18
|
+
pip install uv
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
3. **Create a virtual environment in the current working directory**:
|
|
22
|
+
```sh
|
|
23
|
+
uv venv
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
4. **Install dependencies**:
|
|
27
|
+
```sh
|
|
28
|
+
uv sync --all-extras
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
See `just --list` for linting, formatting and build commands.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Use SDK Locally
|
|
35
|
+
1. Create a folder on your own device `mkdir project; cd project`
|
|
36
|
+
2. Initialize the python project `uv` `uv init . --python 3.9`
|
|
37
|
+
3. Obtain the project path `PATH_TO_SDK=/Users/YOU_USER/uipath-langchain/`
|
|
38
|
+
4. Install the sdk in editable mode `uv add --editable ${PATH_TO_SDK}`
|
|
39
|
+
|
|
40
|
+
:information_source: Instead of cloning the project into `.venv/lib/python3.9/site-packages/uipath_langchain`, this mode creates a file named `_uipath_langchain.pth` inside `.venv/lib/python3.9/site-packages`. This file contains the value of `PATH_TO_SDK`, which is added to `sys.path`—the list of directories where python searches for packages. (Run `python -c 'import sys; print(sys.path)'` to see the entries.)
|
|
41
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 UiPath
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|