Skip to content

Commit a42f05c

Browse files
committed
add basic files
1 parent 50e32da commit a42f05c

File tree

5 files changed

+190
-0
lines changed

5 files changed

+190
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Changelog
2+
3+
## [0.1.1](https://github.com/googleapis/genai-toolbox-llamaindex-python/compare/v0.1.0...v0.1.1) (2025-04-04)
4+
5+
6+
### Bug Fixes
7+
8+
* **deps:** Update dependency black to v25 ([#46](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/46)) ([ddb60af](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/ddb60afaa78c4e57b01e87a649963df449f3ac6a))
9+
* **deps:** Update dependency google-cloud-storage to v3 ([#47](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/47)) ([d10d779](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/d10d779ea22c02f04b26825e686ad519b4eec56f))
10+
* **deps:** Update dependency isort to v6 ([#48](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/48)) ([e27a249](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/e27a249afb52bd0a0aff8a0ddb5b6cc8e1c535ec))
11+
* **deps:** Update dependency pillow to v11 ([#49](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/49)) ([a467b68](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/a467b680201e796d80d0699fe7b1de711a99be74))
12+
* **deps:** Update python-nonmajor ([#44](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/44)) ([4c1b88d](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/4c1b88d23d1c0a0b78f6b29200fa32044152c550))
13+
* **deps:** Update python-nonmajor ([#68](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/68)) ([7595657](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/7595657b2dd5cf7974d751649120a08ba3f7853d))
14+
15+
## 0.1.0 (2025-03-17)
16+
17+
18+
### Features
19+
20+
* Add support for sync operations ([#20](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/20)) ([1fa45af](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/1fa45afed49db863bf17641fb5984bf8ceb5a4c6))
21+
* Add support for Bound Params. ([#10](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/10)) ([1d484a8](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/1d484a8daee5567d5a32d20ea492dbc125daf332))
22+
23+
### Bug Fixes
24+
25+
* Add items to parameter schema ([#9](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/9)) ([769b7f1](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/769b7f1c86dd83c9cd5e19c8bd28890da6f6a6ae))
26+
* Rename package to 'toolbox_llamaindex' ([#8](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/8)) ([9b71c72](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/9b71c728a7887d783a027fc54367584e0ddd4489))
27+
* Throw tool errors correctly. ([#35](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/35)) ([11159c6](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/11159c6ac9813d8da21888c70a8550518f64f3ce))
28+
29+
### Documentation
30+
31+
* Update README for new features ([#22](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/22)) ([f5060b9](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/f5060b9057329809073553c88ebd2e677db7b902))
32+
* Update the README to recommend AgentWorkflow for using LlamaIndex. ([#34](https://github.com/googleapis/genai-toolbox-llamaindex-python/issues/34)) ([fe8e74f](https://github.com/googleapis/genai-toolbox-llamaindex-python/commit/fe8e74fb2c76af6598e6054914b03731c85a2741))
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Development
2+
3+
Below are the details to set up a development environment and run tests.
4+
5+
## Install
6+
1. Clone the repository:
7+
```bash
8+
git clone https://github.com/googleapis/mcp-toolbox-sdk-python
9+
```
10+
1. Navigate to the package directory:
11+
```bash
12+
cd mcp-toolbox-sdk-python/packages/toolbox-llamaindex
13+
```
14+
1. Install the package in editable mode, so changes are reflected without
15+
reinstall:
16+
```bash
17+
pip install -e .
18+
```
19+
1. Make code changes and contribute to the SDK's development.
20+
> [!TIP]
21+
> Using `-e` option allows you to make changes to the SDK code and have
22+
> those changes reflected immediately without reinstalling the package.
23+
24+
## Test
25+
1. Navigate to the package directory if needed:
26+
```bash
27+
cd mcp-toolbox-sdk-python/packages/toolbox-llamaindex
28+
```
29+
1. Install the SDK and test dependencies:
30+
```bash
31+
pip install -e .[test]
32+
```
33+
1. Run tests and/or contribute to the SDK's development.
34+
35+
```bash
36+
pytest
37+
```
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
steps:
16+
- id: Install library requirements
17+
name: 'python:${_VERSION}'
18+
args:
19+
- install
20+
- '-r'
21+
- 'packages/toolbox-llamaindex/requirements.txt'
22+
- '--user'
23+
entrypoint: pip
24+
- id: Install test requirements
25+
name: 'python:${_VERSION}'
26+
args:
27+
- install
28+
- 'packages/toolbox-llamaindex[test]'
29+
- '--user'
30+
entrypoint: pip
31+
- id: Run integration tests
32+
name: 'python:${_VERSION}'
33+
env:
34+
- TOOLBOX_URL=$_TOOLBOX_URL
35+
- TOOLBOX_VERSION=$_TOOLBOX_VERSION
36+
- GOOGLE_CLOUD_PROJECT=$PROJECT_ID
37+
args:
38+
- '-c'
39+
- >-
40+
python -m pytest packages/toolbox-llamaindex/tests/
41+
entrypoint: /bin/bash
42+
options:
43+
logging: CLOUD_LOGGING_ONLY
44+
substitutions:
45+
_VERSION: '3.13'
46+
_TOOLBOX_VERSION: '0.3.0'
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
[project]
2+
name = "toolbox-llamindex"
3+
dynamic = ["version"]
4+
readme = "README.md"
5+
description = "Python SDK for interacting with the Toolbox service with LlamaIndex"
6+
license = {file = "LICENSE"}
7+
requires-python = ">=3.9"
8+
authors = [
9+
{name = "Google LLC", email = "[email protected]"}
10+
]
11+
dependencies = [
12+
"llama-index>=0.12.0,<1.0.0",
13+
"PyYAML>=6.0.1,<7.0.0",
14+
"pydantic>=2.8.0,<3.0.0",
15+
"aiohttp>=3.8.6,<4.0.0",
16+
"deprecated>=1.2.10,<2.0.0",
17+
]
18+
19+
classifiers = [
20+
"Intended Audience :: Developers",
21+
"License :: OSI Approved :: Apache Software License",
22+
"Programming Language :: Python",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.9",
25+
"Programming Language :: Python :: 3.10",
26+
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
28+
"Programming Language :: Python :: 3.13",
29+
]
30+
31+
# Tells setuptools that packages are under the 'src' directory
32+
[tool.setuptools]
33+
package-dir = {"" = "src"}
34+
35+
[tool.setuptools.dynamic]
36+
version = {attr = "toolbox_llamindex.version.__version__"}
37+
38+
[project.urls]
39+
Homepage = "https://github.com/googleapis/mcp-toolbox-sdk-python/blob/main/packages/toolbox-llamaindex"
40+
Repository = "https://github.com/googleapis/mcp-toolbox-sdk-python.git"
41+
"Bug Tracker" = "https://github.com/googleapis/mcp-toolbox-sdk-python/issues"
42+
Changelog = "https://github.com/googleapis/mcp-toolbox-sdk-python/blob/main/packages/toolbox-llamaindex/CHANGELOG.md"
43+
44+
[project.optional-dependencies]
45+
test = [
46+
"black[jupyter]==25.1.0",
47+
"isort==6.0.1",
48+
"mypy==1.15.0",
49+
"pytest-asyncio==0.26.0",
50+
"pytest==8.3.5",
51+
"pytest-cov==6.1.1",
52+
"Pillow==11.1.0",
53+
"google-cloud-secret-manager==2.23.2",
54+
"google-cloud-storage==3.1.0",
55+
]
56+
57+
[build-system]
58+
requires = ["setuptools"]
59+
build-backend = "setuptools.build_meta"
60+
61+
[tool.black]
62+
target-version = ['py39']
63+
64+
[tool.isort]
65+
profile = "black"
66+
67+
[tool.mypy]
68+
python_version = "3.9"
69+
warn_unused_configs = true
70+
disallow_incomplete_defs = true
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
llama-index==0.12.28
2+
PyYAML==6.0.2
3+
pydantic==2.11.2
4+
aiohttp==3.11.16
5+
deprecated==1.2.18

0 commit comments

Comments
 (0)