From 3ef90c97e06a3e927427027904e5369bb3bcf41f Mon Sep 17 00:00:00 2001 From: Cristian Pufu Date: Fri, 27 Feb 2026 09:34:13 +0200 Subject: [PATCH] feat: add pyproject.toml templates with uipath-dev to skill docs Add inline pyproject.toml templates to creating-agents.md and creating-functions.md with uipath-dev as a dev dependency and requires-python >= 3.11. Agents template includes framework dependency options (uipath-langchain, uipath-llamaindex, uipath-openai-agents). Bump version to 0.0.63. Co-Authored-By: Claude Opus 4.6 --- pyproject.toml | 2 +- .../uipath/references/creating-agents.md | 29 +++++++++++++++++-- .../uipath/references/creating-functions.md | 21 ++++++++++++-- uv.lock | 2 +- 4 files changed, 48 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e66c942..869bd29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-dev" -version = "0.0.62" +version = "0.0.63" description = "UiPath Developer Console" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" diff --git a/src/uipath/dev/skills/uipath/references/creating-agents.md b/src/uipath/dev/skills/uipath/references/creating-agents.md index 5152c1b..cc326a0 100644 --- a/src/uipath/dev/skills/uipath/references/creating-agents.md +++ b/src/uipath/dev/skills/uipath/references/creating-agents.md @@ -7,9 +7,34 @@ Guide to creating new UiPath agents with AI-powered business logic implementatio When creating a new agent: 1. **Setup pyproject.toml**: - - Use the official `pyproject.toml` template present in skill assets if `pyproject.toml` doesn't exist in the agent directory - - Replace `{AGENT_NAME}` with the actual agent name + - Use the following `pyproject.toml` template if `pyproject.toml` doesn't exist in the agent directory + - Replace `{AGENT_NAME}` with the actual agent name (lowercase, hyphenated) - Replace `{AGENT_DESCRIPTION}` with the agent description you provide + - Add the appropriate framework dependency based on the agentic framework being used: + - LangChain/LangGraph: add `"uipath-langchain"` to dependencies + - LlamaIndex: add `"uipath-llamaindex"` to dependencies + - OpenAI Agents SDK: add `"uipath-openai-agents"` to dependencies + + ```toml + [project] + name = "{AGENT_NAME}" + version = "0.1.0" + description = "{AGENT_DESCRIPTION}" + readme = "README.md" + requires-python = ">=3.11" + dependencies = [ + "uipath", + # Add the framework dependency based on the agentic framework: + # "uipath-langchain", # for LangChain / LangGraph agents + # "uipath-llamaindex", # for LlamaIndex agents + # "uipath-openai-agents", # for OpenAI Agents SDK agents + ] + + [dependency-groups] + dev = [ + "uipath-dev", + ] + ``` 2. **Install dependencies**: Run `uv sync` to install dependencies and create the virtual environment. diff --git a/src/uipath/dev/skills/uipath/references/creating-functions.md b/src/uipath/dev/skills/uipath/references/creating-functions.md index 739ca05..b87b1de 100644 --- a/src/uipath/dev/skills/uipath/references/creating-functions.md +++ b/src/uipath/dev/skills/uipath/references/creating-functions.md @@ -7,10 +7,27 @@ Guide to creating UiPath coded functions — deterministic automation units for When creating a new function: 1. **Setup pyproject.toml**: - - Use the official `pyproject.toml` template present in skill assets if `pyproject.toml` doesn't exist in the function directory - - Replace `{AGENT_NAME}` with the actual function name + - Use the following `pyproject.toml` template if `pyproject.toml` doesn't exist in the function directory + - Replace `{AGENT_NAME}` with the actual function name (lowercase, hyphenated) - Replace `{AGENT_DESCRIPTION}` with the function description you provide + ```toml + [project] + name = "{AGENT_NAME}" + version = "0.1.0" + description = "{AGENT_DESCRIPTION}" + readme = "README.md" + requires-python = ">=3.11" + dependencies = [ + "uipath", + ] + + [dependency-groups] + dev = [ + "uipath-dev", + ] + ``` + 2. **Install dependencies**: Run `uv sync` to install dependencies and create the virtual environment. 3. **Verify SDK**: Verify the UiPath SDK is available using `uv run uipath --version`. diff --git a/uv.lock b/uv.lock index a38574d..a17c525 100644 --- a/uv.lock +++ b/uv.lock @@ -2266,7 +2266,7 @@ wheels = [ [[package]] name = "uipath-dev" -version = "0.0.62" +version = "0.0.63" source = { editable = "." } dependencies = [ { name = "fastapi" },