Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/uipath-agent-framework/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath-agent-framework"
version = "0.1.0"
version = "0.1.1"
description = "Python SDK that enables developers to build and deploy Microsoft Agent Framework agents to the UiPath Cloud Platform"
readme = "README.md"
requires-python = ">=3.11"
Expand All @@ -9,8 +9,8 @@ dependencies = [
"agent-framework-orchestrations>=1.0.0b260219",
"aiosqlite>=0.20.0",
"openinference-instrumentation-agent-framework>=0.1.0",
"uipath>=2.13.0, <2.14.0",
"uipath-runtime>=0.12.1, <0.13.0",
"uipath>=2.14.41, <2.15.0",
"uipath-runtime>=0.13.5, <0.14.0",
]
classifiers = [
"Intended Audience :: Developers",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ async def get_storage(self) -> UiPathRuntimeStorageProtocol | None:

async def get_settings(self) -> UiPathRuntimeFactorySettings | None:
"""Get the factory settings."""
return None
return UiPathRuntimeFactorySettings(
agent_type="uipath_coded",
agent_framework="agent_framework",
)

async def _create_runtime_instance(
self,
Expand Down
13 changes: 13 additions & 0 deletions packages/uipath-agent-framework/tests/test_factory.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""Tests for UiPathAgentFrameworkRuntimeFactory."""

from uipath.runtime import UiPathRuntimeContext

from uipath_agent_framework.runtime.factory import UiPathAgentFrameworkRuntimeFactory


async def test_settings_report_the_framework():
factory = UiPathAgentFrameworkRuntimeFactory(context=UiPathRuntimeContext())
settings = await factory.get_settings()
assert settings is not None
assert settings.agent_type == "uipath_coded"
assert settings.agent_framework == "agent_framework"
80 changes: 44 additions & 36 deletions packages/uipath-agent-framework/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/uipath-google-adk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[project]
name = "uipath-google-adk"
version = "0.1.0"
version = "0.1.1"
description = "Python SDK that enables developers to build and deploy Google ADK agents to the UiPath Cloud Platform"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"google-adk>=1.25.1",
"openinference-instrumentation-google-adk>=0.1.9",
"uipath>=2.13.0, <2.14.0",
"uipath-runtime>=0.12.1, <0.13.0",
"uipath>=2.14.41, <2.15.0",
"uipath-runtime>=0.13.5, <0.14.0",
]
classifiers = [
"Intended Audience :: Developers",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def generate_pyproject(target_directory, project_name):
description = "{project_name}"
authors = [{{ name = "John Doe", email = "john.doe@myemail.com" }}]
dependencies = [
"uipath-google-adk>=0.0.1, <0.1.0",
"uipath-google-adk>=0.1.1, <0.2.0",
]
requires-python = ">=3.11"
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ async def get_settings(self) -> UiPathRuntimeFactorySettings | None:
Returns:
Factory settings
"""
return None
return UiPathRuntimeFactorySettings(
agent_type="uipath_coded",
agent_framework="google_adk",
)

async def _create_runtime_instance(
self,
Expand Down
15 changes: 15 additions & 0 deletions packages/uipath-google-adk/tests/test_cli_new.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
"""Tests for _cli/cli_new.py — project scaffolding middleware."""

import tomllib
from importlib.metadata import version

from packaging.requirements import Requirement

from uipath_google_adk._cli.cli_new import (
generate_pyproject,
generate_script,
Expand All @@ -14,6 +19,16 @@ def test_writes_pyproject_with_project_name(self, tmp_path):
assert 'name = "my-agent"' in content
assert "uipath-google-adk" in content

def test_accepts_the_current_release(self, tmp_path):
generate_pyproject(str(tmp_path), "my-agent")
project = tomllib.loads((tmp_path / "pyproject.toml").read_text())["project"]
requirement = next(
Requirement(dep)
for dep in project["dependencies"]
if Requirement(dep).name == "uipath-google-adk"
)
assert requirement.specifier.contains(version("uipath-google-adk"))


class TestGenerateScript:
def test_copies_templates(self, tmp_path):
Expand Down
10 changes: 10 additions & 0 deletions packages/uipath-google-adk/tests/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,13 @@ async def test_dispose_cleans_loaders_and_cache(self, tmp_path):
loader.cleanup.assert_awaited_once()
assert factory._agent_cache == {}
assert factory._agent_loaders == {}


class TestSettings:
@pytest.mark.asyncio
async def test_reports_the_framework(self, tmp_path):
factory = UiPathGoogleADKRuntimeFactory(_make_context(tmp_path))
settings = await factory.get_settings()
assert settings is not None
assert settings.agent_type == "uipath_coded"
assert settings.agent_framework == "google_adk"
Loading
Loading