toolbox-core-1.0.0
توضیحات
Python Base SDK for interacting with the Toolbox service
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | toolbox-core-1.0.0 |
| نام | toolbox-core |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Google LLC <googleapis-packages@google.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/toolbox-core/ |
| مجوز | - |

# MCP Toolbox Core SDK
[](https://badge.fury.io/py/toolbox-core) [](https://pypi.org/project/toolbox-core/) [](https://coveralls.io/github/googleapis/genai-toolbox?branch=main)
[](https://opensource.org/licenses/Apache-2.0)
This SDK allows you to seamlessly integrate the functionalities of
[MCP Toolbox](https://github.com/googleapis/genai-toolbox) allowing you to load and
use tools defined in the service as standard Python functions within your GenAI
applications.
For detailed guides, authentication examples, and advanced configuration, visit the [Python SDK Core Guide](https://googleapis.github.io/genai-toolbox/sdks/python-sdk/core/).
<!-- TOC ignore:true -->
<!-- TOC -->
- [Installation](#installation)
- [Quickstart](#quickstart)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
- [Support](#support)
<!-- /TOC -->
## Installation
```bash
pip install toolbox-core
```
## Quickstart
Here's a minimal example to get you started. Ensure your Toolbox service is
running and accessible.
```py
import asyncio
from toolbox_core import ToolboxClient
async def main():
# Replace with the actual URL where your Toolbox service is running
async with ToolboxClient("http://127.0.0.1:5000") as toolbox:
weather_tool = await toolbox.load_tool("get_weather")
result = await weather_tool(location="London")
print(result)
if __name__ == "__main__":
asyncio.run(main())
```
## Usage
The core package provides a framework-agnostic way to interact with your Toolbox server. For detailed guides and advanced configuration, please visit the following sections on our [Documentation Site](https://googleapis.github.io/genai-toolbox/sdks/python-sdk/core/):
- [Transport Protocols](https://googleapis.github.io/genai-toolbox/sdks/python-sdk/core/#transport-protocols)
- [Loading Tools](https://googleapis.github.io/genai-toolbox/sdks/python-sdk/core/#loading-tools)
- [Invoking Tools](https://googleapis.github.io/genai-toolbox/sdks/python-sdk/core/#invoking-tools)
- [Synchronous Usage](https://googleapis.github.io/genai-toolbox/sdks/python-sdk/core/#synchronous-usage)
- [Use With Langraph](https://googleapis.github.io/genai-toolbox/sdks/python-sdk/core/#use-with-langgraph)
- [Client to Server Authentication](https://googleapis.github.io/genai-toolbox/sdks/python-sdk/core/#client-to-server-authentication)
- [Authenticating Tools](https://googleapis.github.io/genai-toolbox/sdks/python-sdk/core/#authenticating-tools)
- [Binding Parameter Values](https://googleapis.github.io/genai-toolbox/sdks/python-sdk/core/#parameter-binding)
- [OpenTelemetry](https://googleapis.github.io/genai-toolbox/sdks/python-sdk/core/#opentelemetry)
# Contributing
Contributions are welcome! Please refer to the [`DEVELOPER.md`](https://github.com/googleapis/mcp-toolbox-sdk-python/blob/main/packages/toolbox-core/DEVELOPER.md) file for guidelines on how to set up a development environment and run tests.
# License
This project is licensed under the Apache License 2.0. See the
[LICENSE](https://github.com/googleapis/genai-toolbox/blob/main/LICENSE) file for details.
# Support
If you encounter issues or have questions, check the existing [GitHub Issues](https://github.com/googleapis/genai-toolbox/issues) for the main Toolbox project.
نیازمندی
| مقدار | نام |
|---|---|
| - | pydantic<3.0.0,>=2.7.0 |
| - | aiohttp<4.0.0,>=3.8.6 |
| - | deprecated<2.0.0,>=1.2.15 |
| - | google-auth<3.0.0,>=2.0.0 |
| - | requests<3.0.0,>=2.19.0 |
| xtr | opentelemetry-api<2.0.0,>=1.20.0; |
| xtr | opentelemetry-sdk<2.0.0,>=1.20.0; |
| xtr | opentelemetry-exporter-otlp<2.0.0,>=1.20.0; |
| xtr | black[jupyter]==26.1.0; |
| xtr | isort==8.0.0; |
| xtr | mypy==1.19.1; |
| xtr | pytest==9.0.2; |
| xtr | pytest-aioresponses==0.3.0; |
| xtr | pytest-asyncio==1.3.0; |
| xtr | pytest-cov==7.0.0; |
| xtr | pytest-mock==3.15.1; |
| xtr | google-cloud-secret-manager==2.26.0; |
| xtr | google-cloud-storage==3.7.0; |
| xtr | aioresponses==0.7.8; |
| xtr | toolbox-core[telemetry]; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl toolbox-core-1.0.0:
pip install toolbox-core-1.0.0.whl
نصب پکیج tar.gz toolbox-core-1.0.0:
pip install toolbox-core-1.0.0.tar.gz