Skip to content
Open
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
18 changes: 7 additions & 11 deletions a2a/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,14 @@ The example uses a mock inmemory RetailStore to simulate a business store.

### Agent Quick Start

1. Clone the UCP Python SDK repository.

`git clone https://github.com/Universal-Commerce-Protocol/python-sdk`
2. Clone the samples repository.
3. `cd a2a/business_agent`
4. Update the `ucp-sdk` dependency to the cloned path in pyproject.toml file.
5. Run `uv sync`
6. Update the env.example file with your Gemini API key and rename it to .env
7. Run `uv run business_agent`
8. This starts the business agent on port 10999. You can verify by accessing
1. Clone the samples repository.
2. `cd a2a/business_agent`
3. Run `uv sync`
4. Copy the env.example file to .env and then add your Gemini API key to .env
5. Run `uv run business_agent`
6. This starts the business agent on port 10999. You can verify by accessing
the agent card at http://localhost:10999/.well-known/agent-card.json
9. The business agent's UCP Profile can be found at
7. The business agent's UCP Profile can be found at
http://localhost:10999/.well-known/ucp

### Chat Client
Expand Down
12 changes: 4 additions & 8 deletions a2a/business_agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@ Example agent implementing A2A Extension for UCP

## Quick Start

1. Clone the UCP Python SDK repository.

`git clone https://github.com/Universal-Commerce-Protocol/python-sdk`
2. Update the `ucp-sdk` dependency to the cloned path in pyproject.toml file.
3. Run `uv sync`
4. Update the env.example file with your Gemini API key and rename it to .env
5. Run `uv run business_agent`
6. This starts the business agent on port 10999. You can verify by accessing
1. Run `uv sync`
2. Copy the env.example file to .env and then add your Gemini API key to .env
3. Run `uv run business_agent`
4. This starts the business agent on port 10999. You can verify by accessing
the agent card at http://localhost:10999/.well-known/agent-card.json
5 changes: 1 addition & 4 deletions a2a/business_agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies = [
"google-adk[a2a]>=1.22.0",
"uvicorn>=0.35.0",
"httpx>=0.28.1",
"ucp-sdk",
"ucp-sdk==0.1.0",
]

[project.scripts]
Expand All @@ -23,6 +23,3 @@ dev = [
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv.sources]
ucp-sdk = { path = "../../../sdk/python/", editable = true }
2,771 changes: 1,383 additions & 1,388 deletions a2a/business_agent/uv.lock

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions rest/python/client/flower_shop/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [
]
dependencies = [
"pydantic>=2.12.0",
"ucp-sdk",
"ucp-sdk==0.1.0",
]

[dependency-groups]
Expand All @@ -25,10 +25,6 @@ build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["."]

[tool.uv.sources]
# The relative path is stored here
ucp-sdk = { path = "../../../../../sdk/python/", editable = true }

[tool.ruff]
line-length = 80
indent-width = 2
Expand Down
12 changes: 1 addition & 11 deletions rest/python/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,9 @@ deployable both inside and outside of Google.

## Prepare the workspace

First, clone the necessary repositories and set your environment variables. You
will need both the Samples repository (which contains the Python server) and the
SDK repository.

NOTE: Temporarily the Samples repository expects the SDK at a known relative
filesystem location, as such, the target paths in these example are significant.
First, clone the Samples repository and install dependencies:

```shell
mkdir sdk
git clone https://github.com/Universal-Commerce-Protocol/python-sdk.git sdk/python
pushd sdk/python
uv sync
popd
git clone https://github.com/Universal-Commerce-Protocol/samples.git
cd samples/rest/python/server
uv sync
Expand Down
8 changes: 2 additions & 6 deletions rest/python/server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ dependencies = [
"greenlet>=3.0.0",
"fastapi-code-generator>=0.5.4",
"click==8.1.7",
"ucp-sdk",
"shortuuid",
"httpx>=0.26.0",
"ucp-sdk==0.1.0",
"shortuuid>=1.0.13",
]

[dependency-groups]
Expand All @@ -36,10 +36,6 @@ build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["."]

[tool.uv.sources]
# The relative path is stored here
ucp-sdk = { path = "../../../../sdk/python/", editable = true }

[tool.ruff]
line-length = 80
indent-width = 2
Expand Down
1,364 changes: 1,364 additions & 0 deletions rest/python/server/uv.lock

Large diffs are not rendered by default.